From 38f9e9d57388029c16f455cb5f27fb85b406af31 Mon Sep 17 00:00:00 2001 From: WilliamThorenfeldt <133344438+WilliamThorenfeldt@users.noreply.github.com> Date: Tue, 9 Apr 2024 15:13:28 +0200 Subject: [PATCH] Trying to fix the broken playwright tests (#12647) * Trying to fix the broken playwright tests * fixing import --- frontend/testing/playwright/enum/ComponentType.ts | 1 + frontend/testing/playwright/tests/git-sync/git-sync.spec.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/frontend/testing/playwright/enum/ComponentType.ts b/frontend/testing/playwright/enum/ComponentType.ts index 8ed05d04109..d6e7ef46464 100644 --- a/frontend/testing/playwright/enum/ComponentType.ts +++ b/frontend/testing/playwright/enum/ComponentType.ts @@ -2,4 +2,5 @@ export enum ComponentType { Input = 'Input', Header = 'Header', + NavigationButtons = 'NavigationButtons', } diff --git a/frontend/testing/playwright/tests/git-sync/git-sync.spec.ts b/frontend/testing/playwright/tests/git-sync/git-sync.spec.ts index e50b1d8f4ea..d6206c19afd 100644 --- a/frontend/testing/playwright/tests/git-sync/git-sync.spec.ts +++ b/frontend/testing/playwright/tests/git-sync/git-sync.spec.ts @@ -8,6 +8,7 @@ import { LocalChangesModal } from '../../components/LocalChangesModal'; import { UiEditorPage } from '../../pages/UiEditorPage'; import { GiteaPage } from '../../pages/GiteaPage'; import { Gitea } from '../../helpers/Gitea'; +import { ComponentType } from '../../enum/ComponentType'; // Before the tests starts, we need to create the data model app test.beforeAll(async ({ testAppName, request, storageState }) => { @@ -98,6 +99,7 @@ const makeChangesOnUiEditorPage = async (uiEditorPage: UiEditorPage, newPageName await uiEditorPage.verifyThatNewPageIsHidden(newPageName); await uiEditorPage.clickOnAddNewPage(); await uiEditorPage.verifyThatNewPageIsVisible(newPageName); + await uiEditorPage.waitForDraggableToolbarItemToBeVisible(ComponentType.NavigationButtons); }; const goToGiteaAndNavigateToUiLayoutFiles = async (header: Header, giteaPage: GiteaPage) => {