Skip to content

Commit

Permalink
Bugfix - fix intermittent issue with focussing
Browse files Browse the repository at this point in the history
* Sometimes typing into the search directly after another action results in an error: cypress-io/cypress#5830 (comment)
* added force: true as a workaround
  • Loading branch information
joefitter authored and roc committed May 17, 2022
1 parent e0b5af6 commit 2f2df3e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ui/cypress/integration/standards/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,16 @@ describe('Standards Listing Index', () => {

it('Matches various variations of prsb', () => {
cy.visit('/standards');
cy.get('input[name="q"]').type('professional record standards body');
cy.get('input[name="q"]').type('professional record standards body', { force: true });

cy.contains('Search').click();
cy.get('#browse-results li a').eq(0).click();

cy.contains('td', 'Professional Record Standards Body');
cy.contains('td', 'Professional Record Standards Body', { force: true });

cy.go('back');

cy.get('input[name="q"]').type('professional records standards body');
cy.get('input[name="q"]').type('professional records standards body', { force: true });

cy.contains('Search').click();
cy.get('#browse-results li a').eq(0).click();
Expand All @@ -85,7 +85,7 @@ describe('Standards Listing Index', () => {

it('Matches various variations of nhs', () => {
cy.visit('/standards');
cy.get('input[name="q"]').type('nhsd');
cy.get('input[name="q"]').type('nhsd', { force: true });

cy.contains('Search').click();
cy.get('#browse-results li a').eq(0).click();
Expand All @@ -94,7 +94,7 @@ describe('Standards Listing Index', () => {

cy.go('back');

cy.get('input[name="q"]').type('nhsx');
cy.get('input[name="q"]').type('nhsx', { force: true });

cy.contains('Search').click();
cy.get('#browse-results li a').eq(0).click();
Expand All @@ -103,7 +103,7 @@ describe('Standards Listing Index', () => {

cy.go('back');

cy.get('input[name="q"]').type('nhs digital');
cy.get('input[name="q"]').type('nhs digital', { force: true });

cy.contains('Search').click();
cy.get('#browse-results li a').eq(0).click();
Expand Down

0 comments on commit 2f2df3e

Please sign in to comment.