From 6aa9f9e980338273a680a47d806f22a5c5ba3d21 Mon Sep 17 00:00:00 2001 From: tkleinke Date: Fri, 10 Nov 2023 12:36:44 +0100 Subject: [PATCH] Add e2e test for solving multiple warnings for invalid field data via deletion in warnings modal --- desktop/test/e2e/warnings/warnings.spec.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/desktop/test/e2e/warnings/warnings.spec.ts b/desktop/test/e2e/warnings/warnings.spec.ts index d02f1e5e11..fcbfb7a775 100644 --- a/desktop/test/e2e/warnings/warnings.spec.ts +++ b/desktop/test/e2e/warnings/warnings.spec.ts @@ -216,6 +216,24 @@ test.describe('warnings --', () => { }); + test('solve multiple warnings for invalid field data via deletion in warnings modal', async () => { + + await waitForNotExist(await NavbarPage.getWarnings()); + await createInvalidFieldDataWarnings(['1', '2'], 'field'); + + expect(await NavbarPage.getNumberOfWarnings()).toBe('2'); + + await NavbarPage.clickWarningsButton(); + await WarningsModalPage.clickDeleteFieldDataButton(0); + await DeleteFieldDataModalPage.clickDeleteAllSwitch(); + await DeleteFieldDataModalPage.typeInConfirmFieldName('test:field'); + await DeleteFieldDataModalPage.clickConfirmButton(); + + await waitForNotExist(await WarningsModalPage.getModalBody()); + await waitForNotExist(await NavbarPage.getWarnings()); + }); + + test('solve warning for missing identifier prefix via resources view', async () => { await waitForNotExist(await NavbarPage.getWarnings());