From 5d8a646fa188bc8bacd398981d858dfd85882026 Mon Sep 17 00:00:00 2001 From: "josh.bagwell" Date: Sun, 24 Nov 2024 18:07:30 -0700 Subject: [PATCH] fix: Updated Select Preview spec --- cypress/component/SelectPreview.spec.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cypress/component/SelectPreview.spec.tsx b/cypress/component/SelectPreview.spec.tsx index 856b83ac09..e3f40bbb97 100644 --- a/cypress/component/SelectPreview.spec.tsx +++ b/cypress/component/SelectPreview.spec.tsx @@ -635,7 +635,7 @@ describe('Select', () => { context('when "s{500ms delay}s" is typed', () => { beforeEach(() => { - cy.findByRole('button', {name: 'Label'}).type('s', {delay: 500}).type('s'); + cy.findByRole('button', {name: 'Label'}).should('exist').type('ss', {delay: 500}); }); context('the select button', () => { @@ -795,8 +795,8 @@ describe('Select', () => { beforeEach(() => { cy.findByRole('button', {name: 'Label'}) .pipe(h.selectPreview.getMenu) - .type('s', {delay: 500}) - .type('d'); + .should('exist') + .type('sd', {delay: 500}); }); context('the menu', () => { @@ -884,8 +884,7 @@ describe('Select', () => { beforeEach(() => { cy.findByRole('button', {name: 'Label'}) .pipe(h.selectPreview.getMenu) - .type('san ', {delay: 100}) - .type('m'); + .type('san m', {delay: 50}); }); context('the menu', () => {