Skip to content

Commit 4a14356

Browse files
committed
delte wait 2 minutes
Signed-off-by: yyfamazon <[email protected]>
1 parent 07ed061 commit 4a14356

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

cypress/integration/plugins/dashboards-assistant/conversation_save_to_notebook_spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ if (Cypress.env('DASHBOARDS_ASSISTANT_ENABLED')) {
3636
// Visit OSD
3737
cy.visit(`${BASE_PATH}/app/home`);
3838

39-
cy.wait(120000);
39+
cy.get(`button[aria-label="toggle chat flyout icon"]`, {
40+
timeout: 60000,
41+
}).should('be.length', 1);
4042

4143
// enable to toggle and show Chatbot
4244
cy.get(`button[aria-label="toggle chat flyout icon"]`).click();

cypress/integration/plugins/dashboards-assistant/mds_chatbot_interaction_trace_spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ if (Cypress.env('DASHBOARDS_ASSISTANT_ENABLED')) {
1717
cy.visit(`${BASE_PATH}/app/home`);
1818
// cy.waitForLoader();
1919

20-
cy.wait(120000);
20+
cy.get(`button[aria-label="toggle chat flyout icon"]`, {
21+
timeout: 60000,
22+
}).should('be.length', 1);
2123

2224
// enable to toggle and show Chatbot
2325
cy.get(`button[aria-label="toggle chat flyout icon"]`).click();

cypress/integration/plugins/dashboards-assistant/mds_chatbot_sidecar_spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ if (Cypress.env('DASHBOARDS_ASSISTANT_ENABLED')) {
1717
// Visit OSD
1818
cy.visit(`${BASE_PATH}/app/home`);
1919

20-
cy.wait(120000);
20+
cy.get(`button[aria-label="toggle chat flyout icon"]`, {
21+
timeout: 60000,
22+
}).should('be.length', 1);
2123
});
2224

2325
describe('sidecar spec', () => {

cypress/integration/plugins/dashboards-assistant/mds_conversation_history_spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ if (Cypress.env('DASHBOARDS_ASSISTANT_ENABLED')) {
3030
// Visit OSD
3131
cy.visit(`${BASE_PATH}/app/home`);
3232
// Common text to wait for to confirm page loaded, give up to 60 seconds for initial load
33-
cy.wait(120000);
33+
cy.get(`button[aria-label="toggle chat flyout icon"]`, {
34+
timeout: 60000,
35+
}).should('be.length', 1);
3436

3537
// Open assistant flyout
3638
// The flyout button will be detached and can't be clicked, add 10s delayed fix it.

cypress/integration/plugins/dashboards-assistant/mds_feedback_spec.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ if (Cypress.env('DASHBOARDS_ASSISTANT_ENABLED')) {
1818
// Visit ISM OSD
1919
cy.visit(`${BASE_PATH}/app/home`);
2020

21-
cy.wait(120000);
21+
cy.get(`button[aria-label="toggle chat flyout icon"]`, {
22+
timeout: 60000,
23+
}).should('be.length', 1);
2224
});
2325

2426
// clean up localStorage items

0 commit comments

Comments
 (0)