Fixed e2e test for Portal (#20674)

no ref
- updated the locator to use the class
This commit is contained in:
Steve Larson 2024-07-27 07:59:45 -05:00 committed by GitHub
parent 1f05a7890f
commit ed4b57736a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,8 +106,8 @@ test.describe('Portal', () => {
await portalTriggerButton.click();
await portalFrame.locator('[data-test-button="manage-newsletters"]').click();
// check amount of newsletterss
const newsletters = await portalFrame.locator('[data-testid="toggle-wrapper"]');
// check amount of newsletters
const newsletters = await portalFrame.locator('.gh-portal-list-toggle-wrapper');
const count = await newsletters.count();
await expect(count).toEqual(2);