diff --git a/tests/e2e/support/objects/app-files/spaces/actions.ts b/tests/e2e/support/objects/app-files/spaces/actions.ts index d8cf69e479b..01231f5ab85 100644 --- a/tests/e2e/support/objects/app-files/spaces/actions.ts +++ b/tests/e2e/support/objects/app-files/spaces/actions.ts @@ -21,6 +21,7 @@ const quotaValueDropDown = `.vs__dropdown-option :text-is("%s")` const editSpacesDescription = '.oc-files-actions-edit-readme-content-trigger:visible' const spacesDescriptionInputArea = '.md-mode .ProseMirror' const spacesDescriptionSaveTextFileInEditorButton = '#app-save-action:visible' +const spaceHeaderSelector = '.space-header' export const openActionsPanel = async (page: Page): Promise => { await sidebar.open({ page }) @@ -71,6 +72,7 @@ export interface openSpaceArgs { export const openSpace = async (args: openSpaceArgs): Promise => { const { page, id } = args await page.locator(util.format(spaceIdSelector, id)).click() + await page.locator(spaceHeaderSelector).waitFor() } /**/