Skip to content

Commit 8a0de0b

Browse files
committed
chore(DescriptionList): added keyboard interaction cypress test
1 parent 42eea0f commit 8a0de0b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/react-integration/cypress/integration/descriptionlist.spec.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,16 @@ describe('Description List Demo Test', () => {
1010
'#description-list-help-text > :nth-child(1) > .pf-v6-c-description-list__term .pf-v6-c-description-list__text'
1111
).click();
1212
cy.get('.pf-v6-c-popover__content').should('exist');
13+
cy.get('.pf-v6-c-popover__close').click();
14+
cy.get('.pf-v6-c-popover__content').should('not.exist');
15+
});
16+
17+
it('Verify list with help text using keyboard', () => {
18+
cy.get('#description-list-help-text').should('exist').children('.pf-v6-c-description-list__group');
19+
cy.get('.pf-v6-c-popover__content').should('not.exist');
20+
cy.tab().type('{enter}');
21+
cy.get('.pf-v6-c-popover__content').should('exist');
22+
cy.get('.pf-v6-c-popover__close').type('{enter}');
23+
cy.get('.pf-v6-c-popover__content').should('not.exist');
1324
});
1425
});

0 commit comments

Comments
 (0)