Skip to content

Commit

Permalink
Add e2e test for solving single warning for invalid field data via de…
Browse files Browse the repository at this point in the history
…letion in warnings modal
  • Loading branch information
tkleinke committed Nov 10, 2023
1 parent 4b255f2 commit 41967a5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions desktop/test/e2e/warnings/warnings.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,27 @@ test.describe('warnings --', () => {
});


test('solve single warning 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 waitForExist(await WarningsModalPage.getResource('1'));
await waitForExist(await WarningsModalPage.getResource('2'));

await WarningsModalPage.clickDeleteFieldDataButton(0);
await DeleteFieldDataModalPage.clickConfirmButton();
await waitForNotExist(await WarningsModalPage.getResource('1'));
await waitForExist(await WarningsModalPage.getResource('2'));

await WarningsModalPage.clickCloseButton();
expect(await NavbarPage.getNumberOfWarnings()).toBe('1');
});


test('solve warning for missing identifier prefix via resources view', async () => {

await waitForNotExist(await NavbarPage.getWarnings());
Expand Down

0 comments on commit 41967a5

Please sign in to comment.