From 6fef877cd1f4f8b488fcd7d7fe0a04b909ff6c89 Mon Sep 17 00:00:00 2001 From: "josh.bagwell" Date: Mon, 18 Nov 2024 14:42:33 -0700 Subject: [PATCH] fix: Updated Select Preview spec --- cypress/component/SelectPreview.spec.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/cypress/component/SelectPreview.spec.tsx b/cypress/component/SelectPreview.spec.tsx index 6752bed16f..708bbb582c 100644 --- a/cypress/component/SelectPreview.spec.tsx +++ b/cypress/component/SelectPreview.spec.tsx @@ -205,7 +205,7 @@ describe('Select', () => { }); }); - context.only('when the down arrow key is pressed for a second time', () => { + context('when the down arrow key is pressed for a second time', () => { beforeEach(() => { cy.realType('{downarrow}'); }); @@ -233,7 +233,7 @@ describe('Select', () => { }); }); - context.only('when the enter key is pressed', () => { + context('when the enter key is pressed', () => { beforeEach(() => { cy.findByRole('button', {name: 'Label'}) .pipe(h.selectPreview.getMenu) @@ -242,18 +242,15 @@ describe('Select', () => { context('the select button', () => { it(`should read "Mail"`, () => { - cy.findByRole('button', {name: 'Label'}).should('exist'); cy.findByRole('button', {name: 'Label'}).should('have.text', 'Mail'); }); it(`should have a value of "mail"`, () => { - cy.findByRole('button', {name: 'Label'}).should('exist'); cy.findByRole('button', {name: 'Label'}).should('have.value', 'mail'); }); it(`should re-acquire focus`, () => { - cy.findByRole('button', {name: 'Label'}).should('exist'); - cy.findByRole('button', {name: 'Label'}).should('be.focused'); + cy.findByRole('button', {name: 'Label'}).should('have.focus'); }); });