Move /e2e -> /e2e-tests
Этот коммит содержится в:
9
e2e-tests/cypress/tests/support/ui/modal.js
Обычный файл
9
e2e-tests/cypress/tests/support/ui/modal.js
Обычный файл
@@ -0,0 +1,9 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
import * as TIMEOUTS from '../../fixtures/timeouts';
|
||||
|
||||
Cypress.Commands.add('uiCloseModal', (headerLabel) => {
|
||||
// # Close modal with modal label
|
||||
cy.get('#genericModalLabel', {timeout: TIMEOUTS.HALF_MIN}).should('have.text', headerLabel).parents().find('.modal-dialog').findByLabelText('Close').click();
|
||||
});
|
||||
Ссылка в новой задаче
Block a user