Skip to content

Commit 07ac0d8

Browse files
authored
Merge branch 'main' into import-ft
2 parents 5e01374 + 2881c0f commit 07ac0d8

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

cypress/integration/core-opensearch-dashboards/opensearch-dashboards/apps/data_explorer/discover.spec.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,15 +279,12 @@ describe('discover app', { scrollBehavior: false }, () => {
279279
.should('be.visible')
280280
.clear()
281281
.type('2');
282-
283-
cy.makeDatePickerMenuOpen();
284282
cy.getElementByTestId('superDatePickerToggleRefreshButton').click();
285283

286284
// Let auto refresh run
287285
cy.wait(100);
288286

289287
// Close the auto refresh
290-
cy.makeDatePickerMenuOpen();
291288
cy.getElementByTestId('superDatePickerToggleRefreshButton').click();
292289

293290
// Check the timestamp of the last request, it should be different than the first timestamp

cypress/utils/dashboards/data_explorer/commands.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -156,18 +156,6 @@ Cypress.Commands.add('switchDiscoverTable', (name) => {
156156
});
157157
});
158158

159-
Cypress.Commands.add('makeDatePickerMenuOpen', () => {
160-
cy.get(
161-
'[class="euiFormControlLayout euiFormControlLayout--group euiSuperDatePicker"]'
162-
).then(($popover) => {
163-
// Check if the popover does not have the 'euiPopover-isOpen' class
164-
if (!$popover.hasClass('euiPopover-isOpen')) {
165-
// If not open, click the button to open the quick menu
166-
cy.getElementByTestId('superDatePickerToggleQuickMenuButton').click();
167-
}
168-
});
169-
});
170-
171159
function checkForElementVisibility() {
172160
cy.getElementsByTestIds('queryInput')
173161
.should('be.visible')

cypress/utils/dashboards/data_explorer/index.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@ declare namespace Cypress {
1717
clearSaveQuery(): Chainable<any>;
1818
deleteSaveQuery(name: string): Chainable<any>;
1919
switchDiscoverTable(name: string): Chainable<any>;
20-
makeDatePickerMenuOpen(): Chainable<any>;
2120
}
2221
}

0 commit comments

Comments
 (0)