Skip to content

Commit

Permalink
Increase delay times in gantt charts (#1090) (#1099)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
opensearch-trigger-bot[bot] and ps48 authored Feb 16, 2024
1 parent 34a2630 commit 7e0a925
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { BASE_PATH } from '../../../utils/constants';

dayjs.extend(customParseFormat);

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

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

describe('Render and configure a gantt chart', () => {
beforeEach(() => {
cy.wait(delay);
cy.visit(`${BASE_PATH}/app/visualize#`);
cy.contains(GANTT_VIS_NAME).click({ force: true });
cy.wait(delay);
});

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

cy.get('.traces').should('have.length', DEFAULT_SIZE);

cy.wait(delay);
cy.get('.euiButton__text').contains('Save').click({ force: true });
cy.wait(delay);
cy.get('button[data-test-subj="confirmSaveSavedObjectButton"]').click({
Expand All @@ -128,6 +131,7 @@ describe('Configure panel settings', () => {
cy.visit(`${BASE_PATH}/app/visualize#`);
cy.contains(GANTT_VIS_NAME).click({ force: true });
cy.contains('Panel settings').click({ force: true });
cy.wait(delay);
});

it('Changes y-axis label', () => {
Expand Down Expand Up @@ -244,7 +248,7 @@ describe('Configure panel settings', () => {
describe('Add gantt chart to dashboard', () => {
it('Adds gantt chart to dashboard', () => {
cy.visit(`${BASE_PATH}/app/dashboards#/create`);

cy.wait(delay);
cy.contains('Add an existing').click({ force: true });
cy.wait(delay);
cy.get('input[data-test-subj="savedObjectFinderSearchInput"]')
Expand Down

0 comments on commit 7e0a925

Please sign in to comment.