Move /e2e -> /e2e-tests
Этот коммит содержится в:
13
e2e-tests/cypress/tests/support/api/cluster.js
Обычный файл
13
e2e-tests/cypress/tests/support/api/cluster.js
Обычный файл
@@ -0,0 +1,13 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
Cypress.Commands.add('apiGetClusterStatus', () => {
|
||||
return cy.request({
|
||||
headers: {'X-Requested-With': 'XMLHttpRequest'},
|
||||
url: '/api/v4/cluster/status',
|
||||
method: 'GET',
|
||||
}).then((response) => {
|
||||
expect(response.status).to.equal(200);
|
||||
return cy.wrap({clusterInfo: response.body});
|
||||
});
|
||||
});
|
||||
Ссылка в новой задаче
Block a user