Skip to content

Commit

Permalink
fix page title in inventoriesConstructed and inventorySource tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daphnemaeve committed Aug 26, 2024
1 parent 41b91ff commit 26c4ddd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ describe('Constructed Inventories CRUD Tests', () => {
cy.verifyPageTitle(newInventory.name);
cy.getByDataCy('organization').contains(organization.name);
cy.getByDataCy('edit-inventory').click();
cy.verifyPageTitle(`Edit ${constructedInv.name}`);
cy.verifyPageTitle(`Edit ${newInventory.name}`);
cy.getByDataCy('toggle-json').click();
cy.getByDataCy('source-vars').type(
`{"plugin": "constructed","strict": true,"groups": {"is_shutdown": "state | default('running') == 'shutdown'","product_dev": "account_alias == 'product_dev'"}}`,
Expand Down
4 changes: 2 additions & 2 deletions cypress/e2e/awx/inventories-source/inventorySource.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ describe('Inventory Sources', () => {
cy.getByDataCy('Submit').click();
cy.verifyPageTitle('amazon ec2 source');
cy.clickButton('Edit inventory source');
cy.verifyPageTitle(`Edit ${inventorySource.name}`);
cy.verifyPageTitle(`Edit amazon ec2 source`);
cy.getByDataCy('name').clear().type('updated amazon ec2 source');
cy.getByDataCy('overwrite_vars').check();
cy.getByDataCy('Submit').click();
Expand All @@ -146,7 +146,7 @@ describe('Inventory Sources', () => {
// Edit inventory source
cy.clickButton('Edit inventory source');
cy.location('pathname').should('match', /\/edit$/);
cy.verifyPageTitle(`Edit ${inventorySource.name}`);
cy.verifyPageTitle(`Edit updated amazon ec2 source`);
cy.getByDataCy('name').clear().type('new project');
cy.selectDropdownOptionByResourceName('source_control_type', 'Sourced from a Project');
cy.getByDataCy('overwrite_vars').check();
Expand Down

0 comments on commit 26c4ddd

Please sign in to comment.