hopefully fix the e2e

This commit is contained in:
Norbert de Langen 2024-04-18 15:27:01 +02:00
parent 03039b675a
commit 2a4c289635

View File

@ -33,7 +33,7 @@ test.describe('save-from-controls', () => {
await sbPage.panelContent().locator('[data-short-label="Unsaved changes"]').isVisible();
// update the story
await sbPage.panelContent().locator('button').getByText('Update story').click();
await sbPage.panelContent().locator('button').getByText('Update story').click({ force: true });
// Assert the file is saved
const notification1 = await sbPage.page.waitForSelector('[title="Story saved"]');
@ -49,12 +49,12 @@ test.describe('save-from-controls', () => {
// Assert the footer is shown
await sbPage.panelContent().locator('[data-short-label="Unsaved changes"]').isVisible();
// clone the story
await sbPage
const buttons = await sbPage
.panelContent()
.locator('button')
.getByLabel(/Create new story/)
.click();
.locator('[aria-label="Create new story with these settings"]');
// clone the story
await buttons.click({ force: true });
const input = await sbPage.page.waitForSelector('[placeholder="Story export name"]');
await input.fill('ClonedStory' + id);