-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test: add use database filter and search function * test: add select columns test * fix: missing fields in slowquery * fix: lower case field names in tests * update * update tiup reboot * test: slow query available fields * test: move available fields tests to compatibility test * chore: remove test log * update slowquery * update slow query e2e test * update export slow query csv * add missing regex * update slow query table order * update apiURL * fix time-range selector * update comment * slow query detail * update slow query detail page e2e * update slow query detail page * add statement e2e test * update yarn.lock * update statement list * update statement list * update statement * update statement list * update statement list * update statement list * update statement * update statement list * update statement list * update statement * test statement * test statement * update statement * update statement * resolve comments * fix typo * update statement config * update statement default max size value * remove useless e2e data value Co-authored-by: Suhaha <[email protected]>
- Loading branch information
1 parent
ed6c9e2
commit e74efa7
Showing
24 changed files
with
1,308 additions
and
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright 2022 PingCAP, Inc. Licensed under Apache-2.0. | ||
|
||
export const testBaseSelectorOptions = (optionsList, dataE2EValue) => { | ||
cy.get(`[data-e2e=${dataE2EValue}]`) | ||
.click() | ||
.then(() => { | ||
cy.get('[data-e2e=multi_select_options]') | ||
.should('have.length', optionsList.length) | ||
.each(($option, $idx) => { | ||
cy.wrap($option).should('have.text', optionsList[$idx]) | ||
}) | ||
}) | ||
} | ||
|
||
export const checkAllOptionsInBaseSelector = (dataE2EValue) => { | ||
cy.get(`[data-e2e=${dataE2EValue}]`) | ||
.click() | ||
.then(() => { | ||
if (cy.get('.ant-dropdown').should('exist')) { | ||
cy.get('.ant-dropdown').within(() => { | ||
cy.get('[role=columnheader]') | ||
.eq(0) | ||
.within(() => { | ||
cy.get('.ant-checkbox').click() | ||
}) | ||
}) | ||
} | ||
}) | ||
} |
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
Oops, something went wrong.