diff --git a/apps/ng-remote-config-example/e2e/app.spec.ts b/apps/ng-remote-config-example/e2e/app.spec.ts index dec3bdd..bcd1134 100644 --- a/apps/ng-remote-config-example/e2e/app.spec.ts +++ b/apps/ng-remote-config-example/e2e/app.spec.ts @@ -18,7 +18,7 @@ test("Has JSON Viewer for 'config.json'", async ({ page }) => { await page.goto('/'); expect(await page.locator('h2').first().innerText()).toContain('Config'); - expect(await page.locator('app-editor').first().isVisible()).toBeTruthy(); + await expect(page.locator('app-editor').first()).toBeVisible(); }); test('Has same config as in config.json', async ({ page, request }) => { @@ -41,7 +41,7 @@ test("Has JSON Viewer for 'features.json'", async ({ page }) => { expect(await page.locator('h2').last().innerText()).toContain( 'Feature Flags' ); - expect(await page.locator('app-editor').last().isVisible()).toBeTruthy(); + await expect(page.locator('app-editor').last()).toBeVisible(); }); test('Has same config as in features.json', async ({ page, request }) => {