From 358ab848a7fc06346a8527b142035c1fb3004033 Mon Sep 17 00:00:00 2001 From: Dan Good Date: Tue, 14 Nov 2023 11:38:32 +0000 Subject: [PATCH] Changed locator value when clicking a JAMTrust from the autocomplete dropdown list on the JAMAddTrust page on line 922 in commands.ts --- .../CypressTests/cypress/support/commands.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dfe.Academies.External.Web/CypressTests/cypress/support/commands.ts b/Dfe.Academies.External.Web/CypressTests/cypress/support/commands.ts index 8aab52243..41b5fa505 100644 --- a/Dfe.Academies.External.Web/CypressTests/cypress/support/commands.ts +++ b/Dfe.Academies.External.Web/CypressTests/cypress/support/commands.ts @@ -919,7 +919,7 @@ Cypress.Commands.add('selectTrustName', (trustName:string):void => { trustName = 'Plym' cy.get('.autocomplete__wrapper > #SearchQueryInput').click() cy.get('.autocomplete__wrapper > #SearchQueryInput').type(trustName) - cy.get('#SearchQueryInput__option--4').click() + cy.get('#SearchQueryInput__option--0').click() }) Cypress.Commands.add('youDontHavePermissionsElementsVisible', () => {