diff --git a/cypress/e2e/awx/inventories-constructed/inventoriesConstructed.cy.ts b/cypress/e2e/awx/inventories-constructed/inventoriesConstructed.cy.ts index c06099314a..8740d9a599 100644 --- a/cypress/e2e/awx/inventories-constructed/inventoriesConstructed.cy.ts +++ b/cypress/e2e/awx/inventories-constructed/inventoriesConstructed.cy.ts @@ -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'"}}`, diff --git a/cypress/e2e/awx/inventories-source/inventorySource.cy.ts b/cypress/e2e/awx/inventories-source/inventorySource.cy.ts index 494bf5f5b8..a8353f3bd3 100644 --- a/cypress/e2e/awx/inventories-source/inventorySource.cy.ts +++ b/cypress/e2e/awx/inventories-source/inventorySource.cy.ts @@ -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(); @@ -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();