From ba54c770ccd4ca8b1e05fe0c7da268460d5978f1 Mon Sep 17 00:00:00 2001 From: Chris Hirt Date: Thu, 10 Feb 2022 05:50:28 +0700 Subject: [PATCH] tweak E2E tests change assertion to isDisplayed() --- test/app/bellows/project-settings.e2e-spec.ts | 2 +- .../lexicon/settings/config-input-systems.e2e-spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/app/bellows/project-settings.e2e-spec.ts b/test/app/bellows/project-settings.e2e-spec.ts index e6509a4bb0..a30ecc8307 100644 --- a/test/app/bellows/project-settings.e2e-spec.ts +++ b/test/app/bellows/project-settings.e2e-spec.ts @@ -15,7 +15,7 @@ describe('Bellows E2E Project Settings app', () => { await loginPage.loginAsMember(); await projectsPage.get(); await projectsPage.clickOnProject(constants.testProjectName); - expect(await settingsPage.settingsMenuLink.getAttribute('class')).not.toContain('app-settings-available'); + expect(await settingsPage.settingsMenuLink.isDisplayed()).toBe(false); }); it('System Admin can manage project', async () => { diff --git a/test/app/languageforge/lexicon/settings/config-input-systems.e2e-spec.ts b/test/app/languageforge/lexicon/settings/config-input-systems.e2e-spec.ts index 2d3d776b6e..2827bd4b11 100644 --- a/test/app/languageforge/lexicon/settings/config-input-systems.e2e-spec.ts +++ b/test/app/languageforge/lexicon/settings/config-input-systems.e2e-spec.ts @@ -17,7 +17,7 @@ describe('Lexicon E2E Configuration Input Systems', () => { await loginPage.loginAsUser(); await projectsPage.get(); await projectsPage.clickOnProject(constants.testProjectName); - expect(await configPage.settingsMenuLink.getAttribute('class')).not.toContain('app-settings-available'); + expect(await configPage.settingsMenuLink.isDisplayed()).toBe(false); }); it('setup: login as manager, select test project, goto configuration', async () => {