-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Qingyang(Abby) Hu <[email protected]>
- Loading branch information
1 parent
d9dbe42
commit 64a54d4
Showing
6 changed files
with
96 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
Cypress.Commands.add('waitForLoaderNewHeader', () => { | ||
const opts = { log: false }; | ||
|
||
Cypress.log({ | ||
name: 'waitForPageLoad', | ||
displayName: 'wait', | ||
message: 'page load', | ||
}); | ||
cy.wait(Cypress.env('WAIT_FOR_LOADER_BUFFER_MS')); | ||
cy.getElementByTestId('recentItemsSectionButton', opts); | ||
}); | ||
|
||
Cypress.Commands.add('setSingleLineQueryEditor', (value, submit = true) => { | ||
const opts = { log: false }; | ||
|
||
Cypress.log({ | ||
name: 'setSingleLineQueryEditor', | ||
displayName: 'set query', | ||
message: value, | ||
}); | ||
|
||
cy.getElementByTestId('osdQueryEditor__singleLine', opts).type(value, opts); | ||
|
||
if (submit) { | ||
cy.updateTopNav(opts); | ||
} | ||
}); | ||
|
||
Cypress.Commands.add('setQueryLanguage', (value, submit = true) => { | ||
const opts = { log: false }; | ||
|
||
Cypress.log({ | ||
name: 'setQueryLanguage', | ||
displayName: 'set language', | ||
message: value, | ||
}); | ||
|
||
cy.getElementByTestId(`queryEditorLanguageSelector`).click(); | ||
cy.get(`[class~="languageSelector__menuItem"]`).contains(value).click({ | ||
force: true, | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
export const clusterName = 'test_cluster'; | ||
export const clusterConnection = 'http://localhost:9200'; |