Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.x] [Cypress Updates] Fix flaky notebooks test #2286

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .cypress/integration/notebooks_test/notebooks.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@

it('Renders input only mode', () => {
cy.get('input[data-test-subj="input_only"]').should('exist');
cy.get('input[data-test-subj="input_only"]').click({ force: true });

Check warning on line 190 in .cypress/integration/notebooks_test/notebooks.spec.js

View workflow job for this annotation

GitHub Actions / Lint

Do not use force on click and type calls

cy.get('div.markdown-body').should('not.exist');
cy.get('button[data-test-subj="viewBothLink"]').should('exist');
Expand All @@ -199,7 +199,7 @@

it('Renders output only mode', () => {
cy.get('input[data-test-subj="output_only"]').should('exist');
cy.get('input[data-test-subj="output_only"]').click({ force: true });

Check warning on line 202 in .cypress/integration/notebooks_test/notebooks.spec.js

View workflow job for this annotation

GitHub Actions / Lint

Do not use force on click and type calls
cy.get('button[aria-label="Open paragraph menu"]').should('not.exist');
cy.get('button[data-test-subj="paragraphToggleInputBtn"]').should('not.exist');
cy.get('code').contains('POST').should('exist');
Expand Down Expand Up @@ -309,7 +309,7 @@
cy.get('input[data-test-subj="comboBoxSearchInput"]')
.focus()
.type('[Logs] Count total requests by t');
cy.get('.euiComboBoxOption__content').contains('[Logs] Count total requests by tags').click({ force: true });

Check warning on line 312 in .cypress/integration/notebooks_test/notebooks.spec.js

View workflow job for this annotation

GitHub Actions / Lint

Do not use force on click and type calls
cy.get('button[data-test-subj="runRefreshBtn-0"]').click();
cy.get('h5').contains('[Logs] Count total requests by tags').should('exist');
});
Expand Down Expand Up @@ -380,11 +380,11 @@
cy.get('h3[data-test-subj="notebookTitle"]').contains(TEST_NOTEBOOK).should('exist');
cy.get('[data-test-subj="notebook-duplicate-icon"]').click();
cy.get('.euiButton__text').contains('Duplicate').click();
cy.get('h3[data-test-subj="notebookTitle"]').contains(TEST_NOTEBOOK + ' (copy)').should('exist');

cy.get('[data-test-subj="notebook-edit-icon"]').click();
cy.get('input.euiFieldText[data-autofocus="true"]').focus().type(' (rename)');
cy.get('input.euiFieldText[data-autofocus="true"]').clear().type(TEST_NOTEBOOK + ' (rename)');
cy.get('.euiButton__text').last().contains('Rename').click();
cy.reload();

cy.get('h3[data-test-subj="notebookTitle"]')
.contains(TEST_NOTEBOOK + ' (rename)')
Expand Down
Loading