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) => {