Skip to content

Commit

Permalink
wait for element (#10914)
Browse files Browse the repository at this point in the history
  • Loading branch information
PrajwolAmatya authored May 16, 2024
1 parent 13d73ec commit d243b4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/e2e/support/objects/app-files/spaces/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void> => {
await sidebar.open({ page })
Expand Down Expand Up @@ -71,6 +72,7 @@ export interface openSpaceArgs {
export const openSpace = async (args: openSpaceArgs): Promise<void> => {
const { page, id } = args
await page.locator(util.format(spaceIdSelector, id)).click()
await page.locator(spaceHeaderSelector).waitFor()
}
/**/

Expand Down

0 comments on commit d243b4d

Please sign in to comment.