From 2e4db50781c0a0dc9d0242f227eb6d044707a5fd Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Mon, 12 Dec 2022 16:58:56 +0100 Subject: [PATCH] Fix wrong expectation in the security health checks --- .../DefaultConfig/Settings/healthChecks.spec.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Settings/healthChecks.spec.ts b/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Settings/healthChecks.spec.ts index e163a91576..9f48260302 100644 --- a/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Settings/healthChecks.spec.ts +++ b/tests/Umbraco.Tests.AcceptanceTest/tests/DefaultConfig/Settings/healthChecks.spec.ts @@ -1,26 +1,26 @@ -import {test, ApiHelpers, UiHelpers, ConstantHelper} from '@umbraco/playwright-testhelpers'; -import {expect} from "@playwright/test"; +import { test, ApiHelpers, UiHelpers, ConstantHelper } from '@umbraco/playwright-testhelpers'; +import { expect } from "@playwright/test"; test.describe('Health Checks', () => { - test.beforeEach(async ({page, umbracoApi}) => { + test.beforeEach(async ({ page, umbracoApi }) => { await umbracoApi.login(); }); - test('Can check all groups', async ({page, umbracoApi, umbracoUi}) => { + test('Can check all groups', async ({ page, umbracoApi, umbracoUi }) => { await umbracoUi.goToSection("settings"); - + await page.locator('[data-element="tab-settingsHealthCheck"]').click(); await page.waitForSelector('.umb-panel-group__details-status-actions > .ng-isolate-scope > .umb-button > .btn > .umb-button__content'); await page.click('.umb-panel-group__details-status-actions > .ng-isolate-scope > .umb-button > .btn > .umb-button__content'); - + await expect(await page.locator('text=Configuration 2 failed')).toBeVisible(); await expect(await page.locator('text=Data Integrity 2 passed')).toBeVisible(); await expect(await page.locator('text=Live Environment 1 failed')).toBeVisible(); await expect(await page.locator('text=Permissions 4 passed')).toBeVisible(); - await expect(await page.locator('text=Security 3 passed 2 warning 4 failed')).toBeVisible(); + await expect(await page.locator('text=Security 2 passed 2 warning 5 failed')).toBeVisible(); await expect(await page.locator('text=Services 1 failed')).toBeVisible(); - + }); });