Skip to content

Commit 5a9235f

Browse files
committed
test: assert dialog text
1 parent 1a4897c commit 5a9235f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

e2e/tests/functional/plugins/flexibleLayout/flexibleLayout.e2e.spec.js

+6
Original file line numberDiff line numberDiff line change
@@ -289,13 +289,19 @@ test.describe('Flexible Layout Toolbar Actions @localStorage', () => {
289289
await page.getByTitle('Add Container').click();
290290
expect(await page.getByRole('group', { name: 'Container' }).count()).toEqual(3);
291291
await page.getByTitle('Remove Container').click();
292+
await expect(page.getByRole('dialog')).toHaveText(
293+
'This action will permanently delete this container from this Flexible Layout. Do you want to continue?'
294+
);
292295
await page.getByRole('button', { name: 'OK' }).click();
293296
expect(await page.getByRole('group', { name: 'Container' }).count()).toEqual(2);
294297
});
295298
test('Remove Frame', async ({ page }) => {
296299
expect(await page.getByRole('group', { name: 'Frame' }).count()).toEqual(2);
297300
await page.getByRole('group', { name: 'Child Layout 1' }).click();
298301
await page.getByTitle('Remove Frame').click();
302+
await expect(page.getByRole('dialog')).toHaveText(
303+
'This action will remove this frame from this Flexible Layout. Do you want to continue?'
304+
);
299305
await page.getByRole('button', { name: 'OK' }).click();
300306
expect(await page.getByRole('group', { name: 'Frame' }).count()).toEqual(1);
301307
});

0 commit comments

Comments
 (0)