Skip to content

Commit 617c8d3

Browse files
author
Eric Olkowski
committed
Updated selectors in notifDrawer test
1 parent a71eaa2 commit 617c8d3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ describe('Notification Drawer Groups Demo Test', () => {
5858
// then press Tab on toggle button, check whether the dropdown menu is closed
5959
cy.get('#toggle-id-0').then((toggleButton: JQuery<HTMLButtonElement>) => {
6060
cy.wrap(toggleButton).type('{enter}', { waitForAnimations: true });
61-
cy.get('#notification-0').find('.pf-v6-c-menu').should('exist');
61+
cy.get('.notification-0.pf-v6-c-menu').should('exist');
6262
cy.wrap(toggleButton).type('{esc}', { waitForAnimations: true });
63-
cy.get('#notification-0').find('.pf-v6-c-menu').should('not.exist');
63+
cy.get('.notification-0.pf-v6-c-menu').should('not.exist');
6464
});
6565
// Verify the group header keyboard interactivity opens/closes the whole group
6666
// check whether the whole group is expanded, then press Enter on the group header and check whether the whole group is closed
@@ -70,9 +70,9 @@ describe('Notification Drawer Groups Demo Test', () => {
7070
// Verify the list item header toggle button keyboard interactivity opens/closes dropdown menu
7171
cy.get('#toggle-id-9').then((toggleButton: JQuery<HTMLButtonElement>) => {
7272
cy.wrap(toggleButton).type('{enter}', { waitForAnimations: true });
73-
cy.get('#notification-9').find('.pf-v6-c-menu').should('exist');
73+
cy.get('.notification-9.pf-v6-c-menu').should('exist');
7474
cy.wrap(toggleButton).type('{esc}', { waitForAnimations: true });
75-
cy.get('#notification-9').find('.pf-v6-c-menu').should('not.exist');
75+
cy.get('.notification-9.pf-v6-c-menu').should('not.exist');
7676
});
7777
});
7878

0 commit comments

Comments
 (0)