Skip to content

Commit f2d977c

Browse files
committed
Updated timeout
1 parent 040bf68 commit f2d977c

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

ui-tests/cypress/support/commands.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'cypress-file-upload';
22
import { setDebugContext, clearDebugContext } from './debugContext';
3+
import { cy } from '@faker-js/faker';
34
const helper = require('./helper');
45
const chai = require('chai');
56
const expect = chai.expect;
@@ -375,20 +376,21 @@ Cypress.Commands.add("shouldNotExist", (element) => {
375376
});
376377

377378
Cypress.Commands.add('checkPaceRunning', () => {
378-
cy.get('.pace-running', { timeout: 10000 }).should('not.exist');
379-
// cy.get('body', { timeout: 90000 })
380-
// .invoke('hasClass', 'pace-running')
381-
// .should('eq', false);
379+
cy.get('body', { timeout: 35000 })
380+
.invoke('hasClass', 'pace-running')
381+
.should('eq', false);
382382
});
383383

384384
Cypress.Commands.add('checkPaceActive', () => {
385-
cy.get('.pace-active', { timeout: 10000 }).should('not.exist');
385+
cy.get('body', { timeout: 35000 })
386+
.invoke('hasClass', 'pace-active')
387+
.should('eq', false);
386388
});
387389

388390
Cypress.Commands.add('checkLoading', () => {
389391
cy.get('body').then($body => {
390392
if ($body.find('.el-loading-mask').length) {
391-
cy.get('.el-loading-mask', { timeout: 20000 })
393+
cy.get('.el-loading-mask', { timeout: 35000 })
392394
.should('not.be.visible');
393395
}
394396
});

0 commit comments

Comments
 (0)