Skip to content

Commit

Permalink
move visit below
Browse files Browse the repository at this point in the history
Signed-off-by: Lin Wang <[email protected]>
  • Loading branch information
wanglam committed Jan 26, 2024
1 parent 9bb8fe4 commit 7212c1e
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ if (Cypress.env('DASHBOARDS_ASSISTANT_ENABLED')) {
'home:newThemeModal:show',
'false'
);
// Visit OSD
cy.visit(`${BASE_PATH}/app/home`);
// Common text to wait for to confirm page loaded, give up to 60 seconds for initial load
cy.get(`input[placeholder="Ask question"]`, { timeout: 60000 }).should(
'be.length',
1
);
});
after(() => {
if (restoreShowHome) {
Expand All @@ -59,6 +52,13 @@ if (Cypress.env('DASHBOARDS_ASSISTANT_ENABLED')) {

describe('panel operations', () => {
it.only('should toggle history list', () => {
// Visit OSD
cy.visit(`${BASE_PATH}/app/home`);
// Common text to wait for to confirm page loaded, give up to 60 seconds for initial load
cy.get(`input[placeholder="Ask question"]`, { timeout: 60000 }).should(
'be.length',
1
);
cy.get('img[aria-label="toggle chat flyout icon"]')
.should('be.visible')
.click();
Expand Down

0 comments on commit 7212c1e

Please sign in to comment.