From 4a831c8ff60f0160f6b072bb573bea7a60069032 Mon Sep 17 00:00:00 2001 From: Tina Yip Date: Mon, 26 Aug 2024 10:02:47 -0400 Subject: [PATCH] updates to failing tests --- cypress/e2e/awx/infrastructure/hosts/hosts.cy.ts | 2 +- cypress/e2e/awx/inventories-source/inventorySource.cy.ts | 2 +- .../inventories/hooks/useInventoriesSourcesToolbarActions.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cypress/e2e/awx/infrastructure/hosts/hosts.cy.ts b/cypress/e2e/awx/infrastructure/hosts/hosts.cy.ts index 7c09e48abc..3a5cda09fa 100644 --- a/cypress/e2e/awx/infrastructure/hosts/hosts.cy.ts +++ b/cypress/e2e/awx/infrastructure/hosts/hosts.cy.ts @@ -48,7 +48,7 @@ describe('Host Tests', () => { cy.navigateTo('awx', 'hosts'); cy.filterTableByMultiSelect('name', [hostName]); cy.getByDataCy('edit-host').click(); - cy.verifyPageTitle('Edit host'); + cy.verifyPageTitle(`Edit ${hostName}`); cy.getByDataCy('description').clear().type('This is the description edited'); cy.getByDataCy('Submit').click(); cy.hasDetail(/^Description$/, 'This is the description edited'); diff --git a/cypress/e2e/awx/inventories-source/inventorySource.cy.ts b/cypress/e2e/awx/inventories-source/inventorySource.cy.ts index e8b8995e9c..2bb0b21e39 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 source'); + cy.verifyPageTitle(`Edit ${inventorySource.name}`); cy.getByDataCy('name').clear().type('updated amazon ec2 source'); cy.getByDataCy('overwrite_vars').check(); cy.getByDataCy('Submit').click(); diff --git a/frontend/awx/resources/inventories/hooks/useInventoriesSourcesToolbarActions.tsx b/frontend/awx/resources/inventories/hooks/useInventoriesSourcesToolbarActions.tsx index 5036c8406d..e26d994a9e 100644 --- a/frontend/awx/resources/inventories/hooks/useInventoriesSourcesToolbarActions.tsx +++ b/frontend/awx/resources/inventories/hooks/useInventoriesSourcesToolbarActions.tsx @@ -66,7 +66,7 @@ export function useInventoriesSourcesToolbarActions( variant: ButtonVariant.primary, isPinned: true, icon: PlusCircleIcon, - label: t('Add source'), + label: t('Create source'), onClick: () => pageNavigate(String(AwxRoute.InventorySourcesAdd), { params: { inventory_type: params.inventory_type, id: params.id },