mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Fixed e2e test for Portal (#20674)
no ref - updated the locator to use the class
This commit is contained in:
parent
1f05a7890f
commit
ed4b57736a
1 changed files with 2 additions and 2 deletions
|
@ -106,8 +106,8 @@ test.describe('Portal', () => {
|
||||||
await portalTriggerButton.click();
|
await portalTriggerButton.click();
|
||||||
await portalFrame.locator('[data-test-button="manage-newsletters"]').click();
|
await portalFrame.locator('[data-test-button="manage-newsletters"]').click();
|
||||||
|
|
||||||
// check amount of newsletterss
|
// check amount of newsletters
|
||||||
const newsletters = await portalFrame.locator('[data-testid="toggle-wrapper"]');
|
const newsletters = await portalFrame.locator('.gh-portal-list-toggle-wrapper');
|
||||||
const count = await newsletters.count();
|
const count = await newsletters.count();
|
||||||
await expect(count).toEqual(2);
|
await expect(count).toEqual(2);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue