
* feat: introduce playwright * test: migrate apps folder to playwright (#1201) * test: rewrite connections tests with playwright (#1203) * test: rewrite executions tests with playwright (#1207) * test: rewrite flow editor tests with playwright (#1212) * test(flow-editor): rewrite tests using serial mode (#1218) * test: update custom connection creation paths * test: move login logic to page fixture * test: remove cypress tests and deps --------- Co-authored-by: Ali BARIN <ali.barin53@gmail.com>
29 lines
865 B
JavaScript
29 lines
865 B
JavaScript
const base = require('@playwright/test');
|
|
const { ApplicationsPage } = require('./applications-page');
|
|
const { ConnectionsPage } = require('./connections-page');
|
|
const { ExecutionsPage } = require('./executions-page');
|
|
const { FlowEditorPage } = require('./flow-editor-page');
|
|
const { LoginPage } = require('./login-page');
|
|
|
|
exports.test = base.test.extend({
|
|
page: async ({ page }, use) => {
|
|
await new LoginPage(page).login();
|
|
|
|
await use(page);
|
|
},
|
|
applicationsPage: async ({ page }, use) => {
|
|
await use(new ApplicationsPage(page));
|
|
},
|
|
connectionsPage: async ({ page }, use) => {
|
|
await use(new ConnectionsPage(page));
|
|
},
|
|
executionsPage: async ({ page }, use) => {
|
|
await use(new ExecutionsPage(page));
|
|
},
|
|
flowEditorPage: async ({ page }, use) => {
|
|
await use(new FlowEditorPage(page));
|
|
},
|
|
});
|
|
|
|
exports.expect = base.expect;
|