From 4d8d37bc5e32d2d83582462ea33639a87891cbed Mon Sep 17 00:00:00 2001 From: Tina Yip Date: Tue, 20 Aug 2024 09:21:47 -0400 Subject: [PATCH] try to fix failing test --- frontend/awx/administration/instances/InstanceForm.cy.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/awx/administration/instances/InstanceForm.cy.tsx b/frontend/awx/administration/instances/InstanceForm.cy.tsx index e58c7d74aa..e2ff22901a 100644 --- a/frontend/awx/administration/instances/InstanceForm.cy.tsx +++ b/frontend/awx/administration/instances/InstanceForm.cy.tsx @@ -5,7 +5,7 @@ describe('Add instance Form', () => { it('should validate required fields on save', () => { cy.mount(); cy.get('[data-cy="listener-port"]').type('0'); - cy.clickButton(/^Save instance$/); + cy.clickButton(/^Create instance$/); cy.contains('Host name is required.').should('be.visible'); }); @@ -16,7 +16,7 @@ describe('Add instance Form', () => { body: { hostname: ['whitespaces in hostnames are illegal'] }, }).as('postInstance'); cy.get('[data-cy="hostname"]').type('illegal hostname test'); - cy.clickButton(/^Save instance$/); + cy.clickButton(/^Create instance$/); cy.wait('@postInstance'); cy.contains('whitespaces in hostnames are illegal').should('be.visible'); }); @@ -34,7 +34,7 @@ describe('Add instance Form', () => { }, }).as('addInstance'); cy.get('[data-cy="hostname"]').type('AddInstanceMock'); - cy.clickButton(/^Save instance$/); + cy.clickButton(/^Create instance$/); cy.wait('@addInstance') .its('request.body') .then((instance: Instance) => { @@ -81,7 +81,7 @@ describe('Add instance Form', () => { cy.get('[data-cy="managed_by_policy"]').click(); cy.get('[data-cy="peers_from_control_nodes"]').click(); - cy.clickButton(/^Save instance$/); + cy.clickButton(/^Create instance$/); cy.wait('@addInstanceWithPeers') .its('request.body') .then((instance: Instance) => {