Fix Flaky Cypress tests, Issue 3594 (#3595)

* Attempt to fix flaky tests
* Increased Cypress retries, removed retries for openMode
This commit is contained in:
Florian Giroud 2021-02-08 14:47:52 +01:00 committed by GitHub
parent ec4a1f431f
commit a1209f9702
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -2,8 +2,8 @@
"integrationFolder": "./cypress/integration",
"nodeVersion": "system",
"retries": {
"runMode": 2,
"openMode": 1
"runMode": 3,
"openMode": 0
},
"env": {
"OPENREFINE_URL": "http://localhost:3333"

View File

@ -182,6 +182,7 @@ Cypress.Commands.add('confirmDialogPanel', () => {
* Will click on a menu entry for a given column name
*/
Cypress.Commands.add('columnActionClick', (columnName, actions) => {
cy.get('body[ajax_in_progress="false"]'); // OR must not be loading at the moment, column headers will be detached from the dom
cy.get(
'.data-table th:contains("' + columnName + '") .column-header-menu'
).click();