diff --git a/ghost/core/test/e2e-browser/portal/member-actions.spec.js b/ghost/core/test/e2e-browser/portal/member-actions.spec.js index e0ac61631a..c6a16aa3af 100644 --- a/ghost/core/test/e2e-browser/portal/member-actions.spec.js +++ b/ghost/core/test/e2e-browser/portal/member-actions.spec.js @@ -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);