Skip to content

Commit

Permalink
Re-add refresh/reload with issue ref
Browse files Browse the repository at this point in the history
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
  • Loading branch information
Swiddis committed May 6, 2024
1 parent d6f0790 commit 6dca5a7
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import {
BASE_PATH,
delayTime,
MARKDOWN_TEXT,
OBSERVABILITY_INDEX_NAME,
} from '../../../utils/constants';

import { skipOn } from '@cypress/skip-test';
Expand All @@ -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');
Expand Down

0 comments on commit 6dca5a7

Please sign in to comment.