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

Add further creation waits to notebooks tests #1270

Merged
merged 4 commits into from
May 6, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Re-add refresh/reload with issue ref
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
Swiddis committed May 6, 2024

Verified

This commit was signed with the committer’s verified signature.
Swiddis Simeon Widdis
commit 6dca5a7ed773b0ba57f0b12f14ee78c80682c87c
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@ import {
BASE_PATH,
delayTime,
MARKDOWN_TEXT,
OBSERVABILITY_INDEX_NAME,
} from '../../../utils/constants';

import { skipOn } from '@cypress/skip-test';
@@ -34,6 +35,25 @@ const makeTestNotebook = () => {

cy.contains(`Notebook "${notebookName}" successfully created`);

// Force refresh/reload due to concurrency bug:
// https://github.com/opensearch-project/dashboards-observability/issues/1822
// TODO delete the refresh/reload when the issue is closed
cy.request({
method: 'POST',
failOnStatusCode: false,
form: false,
url: 'api/console/proxy',
headers: {
'content-type': 'application/json;charset=UTF-8',
'osd-xsrf': true,
},
qs: {
path: `${OBSERVABILITY_INDEX_NAME}/_refresh`,
method: 'POST',
},
});
cy.reload();

cy.get('h1[data-test-subj="notebookTitle"]')
.contains(notebookName)
.should('exist');