Skip to content

Commit

Permalink
Trying to fix the broken playwright tests (#12647)
Browse files Browse the repository at this point in the history
* Trying to fix the broken playwright tests

* fixing import
  • Loading branch information
WilliamThorenfeldt authored Apr 9, 2024
1 parent 418866d commit 38f9e9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/testing/playwright/enum/ComponentType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
export enum ComponentType {
Input = 'Input',
Header = 'Header',
NavigationButtons = 'NavigationButtons',
}
2 changes: 2 additions & 0 deletions frontend/testing/playwright/tests/git-sync/git-sync.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down Expand Up @@ -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) => {
Expand Down

0 comments on commit 38f9e9d

Please sign in to comment.