Skip to content

Commit 6a82130

Browse files
Increase delay times in gantt charts (#1090) (#1098)
* increase delay times in gantt charts Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> (cherry picked from commit 508fd25) * update create button text Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> * revert create button change Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> --------- Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> (cherry picked from commit 87681ef) Co-authored-by: Shenoy Pratik <sgguruda@amazon.com>
1 parent ebf0300 commit 6a82130

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

cypress/integration/plugins/gantt-chart-dashboards/gantt_ui.spec.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { BASE_PATH } from '../../../utils/constants';
1111

1212
dayjs.extend(customParseFormat);
1313

14-
const delay = 100;
14+
const delay = 5000;
1515
const GANTT_VIS_NAME =
1616
'A test gantt chart ' + Math.random().toString(36).substring(2);
1717
const Y_LABEL = 'A unique label for Y-axis';
@@ -57,6 +57,7 @@ describe('Dump test data', () => {
5757
describe('Save a gantt chart', () => {
5858
beforeEach(() => {
5959
cy.visit(`${BASE_PATH}/app/visualize#`);
60+
cy.wait(delay);
6061
});
6162

6263
it('Creates and saves a gantt chart', () => {
@@ -83,8 +84,10 @@ describe('Save a gantt chart', () => {
8384

8485
describe('Render and configure a gantt chart', () => {
8586
beforeEach(() => {
87+
cy.wait(delay);
8688
cy.visit(`${BASE_PATH}/app/visualize#`);
8789
cy.contains(GANTT_VIS_NAME).click({ force: true });
90+
cy.wait(delay);
8891
});
8992

9093
it('Renders no data message', () => {
@@ -114,7 +117,7 @@ describe('Render and configure a gantt chart', () => {
114117
cy.wait(delay);
115118

116119
cy.get('.traces').should('have.length', DEFAULT_SIZE);
117-
120+
cy.wait(delay);
118121
cy.get('.euiButton__text').contains('Save').click({ force: true });
119122
cy.wait(delay);
120123
cy.get('button[data-test-subj="confirmSaveSavedObjectButton"]').click({
@@ -128,6 +131,7 @@ describe('Configure panel settings', () => {
128131
cy.visit(`${BASE_PATH}/app/visualize#`);
129132
cy.contains(GANTT_VIS_NAME).click({ force: true });
130133
cy.contains('Panel settings').click({ force: true });
134+
cy.wait(delay);
131135
});
132136

133137
it('Changes y-axis label', () => {
@@ -244,7 +248,7 @@ describe('Configure panel settings', () => {
244248
describe('Add gantt chart to dashboard', () => {
245249
it('Adds gantt chart to dashboard', () => {
246250
cy.visit(`${BASE_PATH}/app/dashboards#/create`);
247-
251+
cy.wait(delay);
248252
cy.contains('Add an existing').click({ force: true });
249253
cy.wait(delay);
250254
cy.get('input[data-test-subj="savedObjectFinderSearchInput"]')

0 commit comments

Comments
 (0)