Skip to content

Commit

Permalink
wait for page load complete
Browse files Browse the repository at this point in the history
Signed-off-by: Hailong Cui <[email protected]>
  • Loading branch information
Hailong-am committed Nov 15, 2024
1 parent 0ad1a0c commit e2de997
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,11 @@ if (Cypress.env('WORKSPACE_ENABLED')) {
miscUtils.visitPage(`w/${workspaceId}/app/workspace_detail`);
// wait for page load
cy.contains('h1', 'Workspace details');
// waiting for page load completely
cy.getElementByTestId('recentItemsSectionButton')
.should('exist')
.should('not.have.class', 'headerRecentItemsButton--loadingIndicator', {
timeout: 10000,
})
.click({ force: true });

cy.get('.euiPopover__panel').within(() => {
Expand Down Expand Up @@ -121,8 +124,11 @@ if (Cypress.env('WORKSPACE_ENABLED')) {
});

// check breadcrumbs in recent popover

cy.getElementByTestId('recentItemsSectionButton')
.should('exist')
.should('not.have.class', 'headerRecentItemsButton--loadingIndicator', {
timeout: 10000,
})
.click({ force: true });

cy.get('.euiPopover__panel').within(() => {
Expand Down

0 comments on commit e2de997

Please sign in to comment.