Skip to content

Commit

Permalink
Add e2e test for solving multiple warnings for invalid field data via…
Browse files Browse the repository at this point in the history
… deletion in warnings modal
  • Loading branch information
tkleinke committed Nov 10, 2023
1 parent 9bb009c commit 6aa9f9e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions desktop/test/e2e/warnings/warnings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 6aa9f9e

Please sign in to comment.