Move /e2e -> /e2e-tests
Этот коммит содержится в:
20
e2e-tests/cypress/tests/support/extended_commands.js
Обычный файл
20
e2e-tests/cypress/tests/support/extended_commands.js
Обычный файл
@@ -0,0 +1,20 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
import * as TIMEOUTS from '../fixtures/timeouts';
|
||||
|
||||
Cypress.Commands.overwrite('reload', (originalFn, forceReload, options, duration = TIMEOUTS.THREE_SEC) => {
|
||||
localStorage.setItem('__landingPageSeen__', 'true');
|
||||
originalFn(forceReload, options);
|
||||
cy.wait(duration);
|
||||
});
|
||||
|
||||
Cypress.Commands.overwrite('visit', (originalFn, url, options, duration = TIMEOUTS.THREE_SEC) => {
|
||||
localStorage.setItem('__landingPageSeen__', 'true');
|
||||
originalFn(url, options);
|
||||
cy.wait(duration);
|
||||
});
|
||||
|
||||
Cypress.Commands.add('typeWithForce', {prevSubject: true}, (subject, text, options = {}) => {
|
||||
cy.get(subject).type(text, {force: true, ...options});
|
||||
});
|
||||
Ссылка в новой задаче
Block a user