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 f2afb50 commit eac34b4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cypress/component/SelectPreview.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,18 +176,16 @@ describe('Select', () => {
});

it('the button should have focus', () => {
cy.findByRole('button', {name: 'Label'}).should('exist');
cy.findByRole('button', {name: 'Label'}).should('have.focus');
});

context('when the down arrow key is pressed', () => {
beforeEach(() => {
cy.findByRole('button', {name: 'Label'}).should('have.focus');
cy.findByRole('button', {name: 'Label'}).realPress('{downarrow}');
cy.findByRole('button', {name: 'Label'}).should('exist').type('{downArrow}');
});

context('the select button', () => {
it('should have an aria-expanded attribute set to "true"', () => {
it.only('should have an aria-expanded attribute set to "true"', () => {
cy.findByRole('button', {name: 'Label'}).should('have.attr', 'aria-expanded', 'true');
});
});
Expand Down

0 comments on commit eac34b4

Please sign in to comment.