Skip to content

Commit

Permalink
fix: Updated Select Preview spec
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-bagwell committed Nov 25, 2024
1 parent 48116da commit 5d8a646
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions cypress/component/SelectPreview.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down Expand Up @@ -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', () => {
Expand Down Expand Up @@ -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', () => {
Expand Down

0 comments on commit 5d8a646

Please sign in to comment.