Skip to content

Commit

Permalink
observability test fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Sebastian <[email protected]>
  • Loading branch information
paulstn committed Sep 10, 2024
1 parent bceec36 commit 9db44e5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ describe('Testing services table', () => {
.first()
.focus()
.type(`${SERVICE_NAME}{enter}`);
cy.get('.euiButton__text').contains('Refresh').click();
cy.get('button[data-test-subj="superDatePickerApplyTimeButton"]').click();
cy.contains(' (1)').should('exist');
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('Testing traces table', () => {

it('Searches correctly', () => {
cy.get('input[type="search"]').focus().type(`${TRACE_ID}{enter}`);
cy.get('.euiButton__text').contains('Refresh').click();
cy.get('button[data-test-subj="superDatePickerApplyTimeButton"]').click();
cy.contains(' (1)').should('exist');
cy.get('.euiTableCellContent')
.eq(11)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const makeTestNotebook = () => {

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

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

Expand Down
4 changes: 3 additions & 1 deletion cypress/utils/plugins/observability-dashboards/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ export const setTimeFilter = (setEndTime = false, refresh = true) => {
timeout: TIMEOUT_DELAY,
}).type('{selectall}' + endTime, { force: true });
}
if (refresh) cy.get('.euiButton__text').contains('Refresh').click();
if (refresh) {
cy.get('button[data-test-subj="superDatePickerApplyTimeButton"]').click();
}
cy.wait(delayTime);
};

Expand Down

0 comments on commit 9db44e5

Please sign in to comment.