mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
test(editor): Add deprecation warnings for e2e page classes (no-changelog) (#12489)
This commit is contained in:
parent
491cb605e3
commit
803960e092
|
@ -52,6 +52,10 @@ export function getNodeByName(name: string) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function getWorkflowHistoryCloseButton() {
|
||||||
|
return cy.getByTestId('workflow-history-close-button');
|
||||||
|
}
|
||||||
|
|
||||||
export function disableNode(name: string) {
|
export function disableNode(name: string) {
|
||||||
const target = getNodeByName(name);
|
const target = getNodeByName(name);
|
||||||
target.rightclick(name ? 'center' : 'topLeft', { force: true });
|
target.rightclick(name ? 'center' : 'topLeft', { force: true });
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import planData from '../fixtures/Plan_data_opt_in_trial.json';
|
import planData from '../fixtures/Plan_data_opt_in_trial.json';
|
||||||
import {
|
import {
|
||||||
BannerStack,
|
|
||||||
MainSidebar,
|
MainSidebar,
|
||||||
WorkflowPage,
|
WorkflowPage,
|
||||||
visitPublicApiPage,
|
visitPublicApiPage,
|
||||||
|
@ -11,7 +10,6 @@ import {
|
||||||
const NUMBER_OF_AI_CREDITS = 100;
|
const NUMBER_OF_AI_CREDITS = 100;
|
||||||
|
|
||||||
const mainSidebar = new MainSidebar();
|
const mainSidebar = new MainSidebar();
|
||||||
const bannerStack = new BannerStack();
|
|
||||||
const workflowPage = new WorkflowPage();
|
const workflowPage = new WorkflowPage();
|
||||||
const workflowsPage = new WorkflowsPage();
|
const workflowsPage = new WorkflowsPage();
|
||||||
|
|
||||||
|
@ -48,11 +46,11 @@ describe('Cloud', () => {
|
||||||
it('should render trial banner for opt-in cloud user', () => {
|
it('should render trial banner for opt-in cloud user', () => {
|
||||||
visitWorkflowPage();
|
visitWorkflowPage();
|
||||||
|
|
||||||
bannerStack.getters.banner().should('be.visible');
|
cy.getByTestId('banner-stack').should('be.visible');
|
||||||
|
|
||||||
mainSidebar.actions.signout();
|
mainSidebar.actions.signout();
|
||||||
|
|
||||||
bannerStack.getters.banner().should('not.be.visible');
|
cy.getByTestId('banner-stack').should('not.be.visible');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,18 +1,14 @@
|
||||||
|
import { getWorkflowHistoryCloseButton } from '../composables/workflow';
|
||||||
import {
|
import {
|
||||||
CODE_NODE_NAME,
|
CODE_NODE_NAME,
|
||||||
EDIT_FIELDS_SET_NODE_NAME,
|
EDIT_FIELDS_SET_NODE_NAME,
|
||||||
IF_NODE_NAME,
|
IF_NODE_NAME,
|
||||||
SCHEDULE_TRIGGER_NODE_NAME,
|
SCHEDULE_TRIGGER_NODE_NAME,
|
||||||
} from '../constants';
|
} from '../constants';
|
||||||
import {
|
import { WorkflowExecutionsTab, WorkflowPage as WorkflowPageClass } from '../pages';
|
||||||
WorkflowExecutionsTab,
|
|
||||||
WorkflowPage as WorkflowPageClass,
|
|
||||||
WorkflowHistoryPage,
|
|
||||||
} from '../pages';
|
|
||||||
|
|
||||||
const workflowPage = new WorkflowPageClass();
|
const workflowPage = new WorkflowPageClass();
|
||||||
const executionsTab = new WorkflowExecutionsTab();
|
const executionsTab = new WorkflowExecutionsTab();
|
||||||
const workflowHistoryPage = new WorkflowHistoryPage();
|
|
||||||
|
|
||||||
const createNewWorkflowAndActivate = () => {
|
const createNewWorkflowAndActivate = () => {
|
||||||
workflowPage.actions.visit();
|
workflowPage.actions.visit();
|
||||||
|
@ -92,7 +88,7 @@ const switchBetweenEditorAndHistory = () => {
|
||||||
cy.wait(['@getVersion']);
|
cy.wait(['@getVersion']);
|
||||||
|
|
||||||
cy.intercept('GET', '/rest/workflows/*').as('workflowGet');
|
cy.intercept('GET', '/rest/workflows/*').as('workflowGet');
|
||||||
workflowHistoryPage.getters.workflowHistoryCloseButton().click();
|
getWorkflowHistoryCloseButton().click();
|
||||||
cy.wait(['@workflowGet']);
|
cy.wait(['@workflowGet']);
|
||||||
cy.wait(1000);
|
cy.wait(1000);
|
||||||
|
|
||||||
|
@ -168,7 +164,7 @@ describe('Editor actions should work', () => {
|
||||||
cy.wait(['@getVersion']);
|
cy.wait(['@getVersion']);
|
||||||
|
|
||||||
cy.intercept('GET', '/rest/workflows/*').as('workflowGet');
|
cy.intercept('GET', '/rest/workflows/*').as('workflowGet');
|
||||||
workflowHistoryPage.getters.workflowHistoryCloseButton().click();
|
getWorkflowHistoryCloseButton().click();
|
||||||
cy.wait(['@workflowGet']);
|
cy.wait(['@workflowGet']);
|
||||||
cy.wait(1000);
|
cy.wait(1000);
|
||||||
|
|
||||||
|
|
|
@ -1,22 +1,20 @@
|
||||||
import { SettingsPage } from '../pages/settings';
|
const url = '/settings';
|
||||||
|
|
||||||
const settingsPage = new SettingsPage();
|
|
||||||
|
|
||||||
describe('Admin user', { disableAutoLogin: true }, () => {
|
describe('Admin user', { disableAutoLogin: true }, () => {
|
||||||
it('should see same Settings sub menu items as instance owner', () => {
|
it('should see same Settings sub menu items as instance owner', () => {
|
||||||
cy.signinAsOwner();
|
cy.signinAsOwner();
|
||||||
cy.visit(settingsPage.url);
|
cy.visit(url);
|
||||||
|
|
||||||
let ownerMenuItems = 0;
|
let ownerMenuItems = 0;
|
||||||
|
|
||||||
settingsPage.getters.menuItems().then(($el) => {
|
cy.getByTestId('menu-item').then(($el) => {
|
||||||
ownerMenuItems = $el.length;
|
ownerMenuItems = $el.length;
|
||||||
});
|
});
|
||||||
|
|
||||||
cy.signout();
|
cy.signout();
|
||||||
cy.signinAsAdmin();
|
cy.signinAsAdmin();
|
||||||
cy.visit(settingsPage.url);
|
cy.visit(url);
|
||||||
|
|
||||||
settingsPage.getters.menuItems().should('have.length', ownerMenuItems);
|
cy.getByTestId('menu-item').should('have.length', ownerMenuItems);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
import { BasePage } from './base';
|
|
||||||
|
|
||||||
export class BannerStack extends BasePage {
|
|
||||||
getters = {
|
|
||||||
banner: () => cy.getByTestId('banner-stack'),
|
|
||||||
};
|
|
||||||
|
|
||||||
actions = {};
|
|
||||||
}
|
|
|
@ -1,5 +1,13 @@
|
||||||
import type { IE2ETestPage } from '../types';
|
import type { IE2ETestPage } from '../types';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use functional composables from @composables instead.
|
||||||
|
* If a composable doesn't exist for your use case, please create a new one in:
|
||||||
|
* cypress/composables
|
||||||
|
*
|
||||||
|
* This class-based approach is being phased out in favor of more modular functional composables.
|
||||||
|
* Each getter and action in this class should be moved to individual composable functions.
|
||||||
|
*/
|
||||||
export class BasePage implements IE2ETestPage {
|
export class BasePage implements IE2ETestPage {
|
||||||
getters = {};
|
getters = {};
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
import { BasePage } from './base';
|
import { BasePage } from './base';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use functional composables from @composables instead.
|
||||||
|
* If a composable doesn't exist for your use case, please create a new one in:
|
||||||
|
* cypress/composables
|
||||||
|
*
|
||||||
|
* This class-based approach is being phased out in favor of more modular functional composables.
|
||||||
|
* Each getter and action in this class should be moved to individual composable functions.
|
||||||
|
*/
|
||||||
export class CredentialsPage extends BasePage {
|
export class CredentialsPage extends BasePage {
|
||||||
url = '/home/credentials';
|
url = '/home/credentials';
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,14 @@ const AI_ASSISTANT_FEATURE = {
|
||||||
disabledFor: 'control',
|
disabledFor: 'control',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use functional composables from @composables instead.
|
||||||
|
* If a composable doesn't exist for your use case, please create a new one in:
|
||||||
|
* cypress/composables
|
||||||
|
*
|
||||||
|
* This class-based approach is being phased out in favor of more modular functional composables.
|
||||||
|
* Each getter and action in this class should be moved to individual composable functions.
|
||||||
|
*/
|
||||||
export class AIAssistant extends BasePage {
|
export class AIAssistant extends BasePage {
|
||||||
url = '/workflows/new';
|
url = '/workflows/new';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
import { BasePage } from '../base';
|
import { BasePage } from '../base';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use functional composables from @composables instead.
|
||||||
|
* If a composable doesn't exist for your use case, please create a new one in:
|
||||||
|
* cypress/composables
|
||||||
|
*
|
||||||
|
* This class-based approach is being phased out in favor of more modular functional composables.
|
||||||
|
* Each getter and action in this class should be moved to individual composable functions.
|
||||||
|
*/
|
||||||
export class NodeCreator extends BasePage {
|
export class NodeCreator extends BasePage {
|
||||||
url = '/workflow/new';
|
url = '/workflow/new';
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,7 @@ export * from './settings-users';
|
||||||
export * from './settings-log-streaming';
|
export * from './settings-log-streaming';
|
||||||
export * from './sidebar';
|
export * from './sidebar';
|
||||||
export * from './ndv';
|
export * from './ndv';
|
||||||
export * from './bannerStack';
|
|
||||||
export * from './workflow-executions-tab';
|
export * from './workflow-executions-tab';
|
||||||
export * from './signin';
|
export * from './signin';
|
||||||
export * from './workflow-history';
|
|
||||||
export * from './workerView';
|
export * from './workerView';
|
||||||
export * from './settings-public-api';
|
export * from './settings-public-api';
|
||||||
|
|
|
@ -3,6 +3,14 @@ import { SigninPage } from './signin';
|
||||||
import { WorkflowsPage } from './workflows';
|
import { WorkflowsPage } from './workflows';
|
||||||
import { N8N_AUTH_COOKIE } from '../constants';
|
import { N8N_AUTH_COOKIE } from '../constants';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use functional composables from @composables instead.
|
||||||
|
* If a composable doesn't exist for your use case, please create a new one in:
|
||||||
|
* cypress/composables
|
||||||
|
*
|
||||||
|
* This class-based approach is being phased out in favor of more modular functional composables.
|
||||||
|
* Each getter and action in this class should be moved to individual composable functions.
|
||||||
|
*/
|
||||||
export class MfaLoginPage extends BasePage {
|
export class MfaLoginPage extends BasePage {
|
||||||
url = '/mfa';
|
url = '/mfa';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
import { BasePage } from './../base';
|
import { BasePage } from './../base';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use functional composables from @composables instead.
|
||||||
|
* If a composable doesn't exist for your use case, please create a new one in:
|
||||||
|
* cypress/composables
|
||||||
|
*
|
||||||
|
* This class-based approach is being phased out in favor of more modular functional composables.
|
||||||
|
* Each getter and action in this class should be moved to individual composable functions.
|
||||||
|
*/
|
||||||
export class ChangePasswordModal extends BasePage {
|
export class ChangePasswordModal extends BasePage {
|
||||||
getters = {
|
getters = {
|
||||||
modalContainer: () => cy.getByTestId('changePassword-modal').last(),
|
modalContainer: () => cy.getByTestId('changePassword-modal').last(),
|
||||||
|
|
|
@ -2,6 +2,14 @@ import { getCredentialSaveButton, saveCredential } from '../../composables/modal
|
||||||
import { getVisibleSelect } from '../../utils';
|
import { getVisibleSelect } from '../../utils';
|
||||||
import { BasePage } from '../base';
|
import { BasePage } from '../base';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use functional composables from @composables instead.
|
||||||
|
* If a composable doesn't exist for your use case, please create a new one in:
|
||||||
|
* cypress/composables
|
||||||
|
*
|
||||||
|
* This class-based approach is being phased out in favor of more modular functional composables.
|
||||||
|
* Each getter and action in this class should be moved to individual composable functions.
|
||||||
|
*/
|
||||||
export class CredentialsModal extends BasePage {
|
export class CredentialsModal extends BasePage {
|
||||||
getters = {
|
getters = {
|
||||||
newCredentialModal: () => cy.getByTestId('selectCredential-modal', { timeout: 5000 }),
|
newCredentialModal: () => cy.getByTestId('selectCredential-modal', { timeout: 5000 }),
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
import { BasePage } from '../base';
|
import { BasePage } from '../base';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use functional composables from @composables instead.
|
||||||
|
* If a composable doesn't exist for your use case, please create a new one in:
|
||||||
|
* cypress/composables
|
||||||
|
*
|
||||||
|
* This class-based approach is being phased out in favor of more modular functional composables.
|
||||||
|
* Each getter and action in this class should be moved to individual composable functions.
|
||||||
|
*/
|
||||||
export class MessageBox extends BasePage {
|
export class MessageBox extends BasePage {
|
||||||
getters = {
|
getters = {
|
||||||
modal: () => cy.get('.el-message-box', { withinSubject: null }),
|
modal: () => cy.get('.el-message-box', { withinSubject: null }),
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
import { BasePage } from './../base';
|
import { BasePage } from './../base';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use functional composables from @composables instead.
|
||||||
|
* If a composable doesn't exist for your use case, please create a new one in:
|
||||||
|
* cypress/composables
|
||||||
|
*
|
||||||
|
* This class-based approach is being phased out in favor of more modular functional composables.
|
||||||
|
* Each getter and action in this class should be moved to individual composable functions.
|
||||||
|
*/
|
||||||
export class MfaSetupModal extends BasePage {
|
export class MfaSetupModal extends BasePage {
|
||||||
getters = {
|
getters = {
|
||||||
modalContainer: () => cy.getByTestId('changePassword-modal').last(),
|
modalContainer: () => cy.getByTestId('changePassword-modal').last(),
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
import { BasePage } from '../base';
|
import { BasePage } from '../base';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use functional composables from @composables instead.
|
||||||
|
* If a composable doesn't exist for your use case, please create a new one in:
|
||||||
|
* cypress/composables
|
||||||
|
*
|
||||||
|
* This class-based approach is being phased out in favor of more modular functional composables.
|
||||||
|
* Each getter and action in this class should be moved to individual composable functions.
|
||||||
|
*/
|
||||||
export class WorkflowSharingModal extends BasePage {
|
export class WorkflowSharingModal extends BasePage {
|
||||||
getters = {
|
getters = {
|
||||||
modal: () => cy.getByTestId('workflowShare-modal', { timeout: 5000 }),
|
modal: () => cy.getByTestId('workflowShare-modal', { timeout: 5000 }),
|
||||||
|
|
|
@ -1,6 +1,14 @@
|
||||||
import { BasePage } from './base';
|
import { BasePage } from './base';
|
||||||
import { getVisiblePopper, getVisibleSelect } from '../utils';
|
import { getVisiblePopper, getVisibleSelect } from '../utils';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use functional composables from @composables instead.
|
||||||
|
* If a composable doesn't exist for your use case, please create a new one in:
|
||||||
|
* cypress/composables
|
||||||
|
*
|
||||||
|
* This class-based approach is being phased out in favor of more modular functional composables.
|
||||||
|
* Each getter and action in this class should be moved to individual composable functions.
|
||||||
|
*/
|
||||||
export class NDV extends BasePage {
|
export class NDV extends BasePage {
|
||||||
getters = {
|
getters = {
|
||||||
container: () => cy.getByTestId('ndv'),
|
container: () => cy.getByTestId('ndv'),
|
||||||
|
|
|
@ -1,6 +1,14 @@
|
||||||
import { BasePage } from './base';
|
import { BasePage } from './base';
|
||||||
import { getVisibleSelect } from '../utils';
|
import { getVisibleSelect } from '../utils';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use functional composables from @composables instead.
|
||||||
|
* If a composable doesn't exist for your use case, please create a new one in:
|
||||||
|
* cypress/composables
|
||||||
|
*
|
||||||
|
* This class-based approach is being phased out in favor of more modular functional composables.
|
||||||
|
* Each getter and action in this class should be moved to individual composable functions.
|
||||||
|
*/
|
||||||
export class SettingsLogStreamingPage extends BasePage {
|
export class SettingsLogStreamingPage extends BasePage {
|
||||||
url = '/settings/log-streaming';
|
url = '/settings/log-streaming';
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,14 @@ import { MfaSetupModal } from './modals/mfa-setup-modal';
|
||||||
const changePasswordModal = new ChangePasswordModal();
|
const changePasswordModal = new ChangePasswordModal();
|
||||||
const mfaSetupModal = new MfaSetupModal();
|
const mfaSetupModal = new MfaSetupModal();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use functional composables from @composables instead.
|
||||||
|
* If a composable doesn't exist for your use case, please create a new one in:
|
||||||
|
* cypress/composables
|
||||||
|
*
|
||||||
|
* This class-based approach is being phased out in favor of more modular functional composables.
|
||||||
|
* Each getter and action in this class should be moved to individual composable functions.
|
||||||
|
*/
|
||||||
export class PersonalSettingsPage extends BasePage {
|
export class PersonalSettingsPage extends BasePage {
|
||||||
url = '/settings/personal';
|
url = '/settings/personal';
|
||||||
|
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
import { BasePage } from './base';
|
|
||||||
|
|
||||||
export class SettingsUsagePage extends BasePage {
|
|
||||||
url = '/settings/usage';
|
|
||||||
|
|
||||||
getters = {};
|
|
||||||
|
|
||||||
actions = {};
|
|
||||||
}
|
|
|
@ -9,6 +9,14 @@ const workflowsPage = new WorkflowsPage();
|
||||||
const mainSidebar = new MainSidebar();
|
const mainSidebar = new MainSidebar();
|
||||||
const settingsSidebar = new SettingsSidebar();
|
const settingsSidebar = new SettingsSidebar();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use functional composables from @composables instead.
|
||||||
|
* If a composable doesn't exist for your use case, please create a new one in:
|
||||||
|
* cypress/composables
|
||||||
|
*
|
||||||
|
* This class-based approach is being phased out in favor of more modular functional composables.
|
||||||
|
* Each getter and action in this class should be moved to individual composable functions.
|
||||||
|
*/
|
||||||
export class SettingsUsersPage extends BasePage {
|
export class SettingsUsersPage extends BasePage {
|
||||||
url = '/settings/users';
|
url = '/settings/users';
|
||||||
|
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
import { BasePage } from './base';
|
|
||||||
|
|
||||||
export class SettingsPage extends BasePage {
|
|
||||||
url = '/settings';
|
|
||||||
|
|
||||||
getters = {
|
|
||||||
menuItems: () => cy.getByTestId('menu-item'),
|
|
||||||
};
|
|
||||||
|
|
||||||
actions = {};
|
|
||||||
}
|
|
|
@ -1,6 +1,14 @@
|
||||||
import { BasePage } from '../base';
|
import { BasePage } from '../base';
|
||||||
import { WorkflowsPage } from '../workflows';
|
import { WorkflowsPage } from '../workflows';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use functional composables from @composables instead.
|
||||||
|
* If a composable doesn't exist for your use case, please create a new one in:
|
||||||
|
* cypress/composables
|
||||||
|
*
|
||||||
|
* This class-based approach is being phased out in favor of more modular functional composables.
|
||||||
|
* Each getter and action in this class should be moved to individual composable functions.
|
||||||
|
*/
|
||||||
export class MainSidebar extends BasePage {
|
export class MainSidebar extends BasePage {
|
||||||
getters = {
|
getters = {
|
||||||
menuItem: (id: string) => cy.getByTestId('menu-item').get('#' + id),
|
menuItem: (id: string) => cy.getByTestId('menu-item').get('#' + id),
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
import { BasePage } from '../base';
|
import { BasePage } from '../base';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use functional composables from @composables instead.
|
||||||
|
* If a composable doesn't exist for your use case, please create a new one in:
|
||||||
|
* cypress/composables
|
||||||
|
*
|
||||||
|
* This class-based approach is being phased out in favor of more modular functional composables.
|
||||||
|
* Each getter and action in this class should be moved to individual composable functions.
|
||||||
|
*/
|
||||||
export class SettingsSidebar extends BasePage {
|
export class SettingsSidebar extends BasePage {
|
||||||
getters = {
|
getters = {
|
||||||
menuItem: (id: string) => cy.getByTestId('menu-item').get('#' + id),
|
menuItem: (id: string) => cy.getByTestId('menu-item').get('#' + id),
|
||||||
|
|
|
@ -2,6 +2,14 @@ import { BasePage } from './base';
|
||||||
import { WorkflowsPage } from './workflows';
|
import { WorkflowsPage } from './workflows';
|
||||||
import { N8N_AUTH_COOKIE } from '../constants';
|
import { N8N_AUTH_COOKIE } from '../constants';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use functional composables from @composables instead.
|
||||||
|
* If a composable doesn't exist for your use case, please create a new one in:
|
||||||
|
* cypress/composables
|
||||||
|
*
|
||||||
|
* This class-based approach is being phased out in favor of more modular functional composables.
|
||||||
|
* Each getter and action in this class should be moved to individual composable functions.
|
||||||
|
*/
|
||||||
export class SigninPage extends BasePage {
|
export class SigninPage extends BasePage {
|
||||||
url = '/signin';
|
url = '/signin';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
import { BasePage } from './base';
|
import { BasePage } from './base';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use functional composables from @composables instead.
|
||||||
|
* If a composable doesn't exist for your use case, please create a new one in:
|
||||||
|
* cypress/composables
|
||||||
|
*
|
||||||
|
* This class-based approach is being phased out in favor of more modular functional composables.
|
||||||
|
* Each getter and action in this class should be moved to individual composable functions.
|
||||||
|
*/
|
||||||
export class TemplatesPage extends BasePage {
|
export class TemplatesPage extends BasePage {
|
||||||
url = '/templates';
|
url = '/templates';
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,14 @@ import { BasePage } from './base';
|
||||||
|
|
||||||
import Chainable = Cypress.Chainable;
|
import Chainable = Cypress.Chainable;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use functional composables from @composables instead.
|
||||||
|
* If a composable doesn't exist for your use case, please create a new one in:
|
||||||
|
* cypress/composables
|
||||||
|
*
|
||||||
|
* This class-based approach is being phased out in favor of more modular functional composables.
|
||||||
|
* Each getter and action in this class should be moved to individual composable functions.
|
||||||
|
*/
|
||||||
export class VariablesPage extends BasePage {
|
export class VariablesPage extends BasePage {
|
||||||
url = '/variables';
|
url = '/variables';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
import { BasePage } from './base';
|
import { BasePage } from './base';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use functional composables from @composables instead.
|
||||||
|
* If a composable doesn't exist for your use case, please create a new one in:
|
||||||
|
* cypress/composables
|
||||||
|
*
|
||||||
|
* This class-based approach is being phased out in favor of more modular functional composables.
|
||||||
|
* Each getter and action in this class should be moved to individual composable functions.
|
||||||
|
*/
|
||||||
export class WorkerViewPage extends BasePage {
|
export class WorkerViewPage extends BasePage {
|
||||||
url = '/settings/workers';
|
url = '/settings/workers';
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,14 @@ import { WorkflowPage } from './workflow';
|
||||||
|
|
||||||
const workflowPage = new WorkflowPage();
|
const workflowPage = new WorkflowPage();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use functional composables from @composables instead.
|
||||||
|
* If a composable doesn't exist for your use case, please create a new one in:
|
||||||
|
* cypress/composables
|
||||||
|
*
|
||||||
|
* This class-based approach is being phased out in favor of more modular functional composables.
|
||||||
|
* Each getter and action in this class should be moved to individual composable functions.
|
||||||
|
*/
|
||||||
export class WorkflowExecutionsTab extends BasePage {
|
export class WorkflowExecutionsTab extends BasePage {
|
||||||
getters = {
|
getters = {
|
||||||
executionsTabButton: () => cy.getByTestId('radio-button-executions'),
|
executionsTabButton: () => cy.getByTestId('radio-button-executions'),
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
import { BasePage } from './base';
|
|
||||||
|
|
||||||
export class WorkflowHistoryPage extends BasePage {
|
|
||||||
getters = {
|
|
||||||
workflowHistoryCloseButton: () => cy.getByTestId('workflow-history-close-button'),
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -6,6 +6,15 @@ import { getVisibleSelect } from '../utils';
|
||||||
import { getUniqueWorkflowName, isCanvasV2 } from '../utils/workflowUtils';
|
import { getUniqueWorkflowName, isCanvasV2 } from '../utils/workflowUtils';
|
||||||
|
|
||||||
const nodeCreator = new NodeCreator();
|
const nodeCreator = new NodeCreator();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use functional composables from @composables instead.
|
||||||
|
* If a composable doesn't exist for your use case, please create a new one in:
|
||||||
|
* cypress/composables
|
||||||
|
*
|
||||||
|
* This class-based approach is being phased out in favor of more modular functional composables.
|
||||||
|
* Each getter and action in this class should be moved to individual composable functions.
|
||||||
|
*/
|
||||||
export class WorkflowPage extends BasePage {
|
export class WorkflowPage extends BasePage {
|
||||||
url = '/workflow/new';
|
url = '/workflow/new';
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
import { BasePage } from './base';
|
import { BasePage } from './base';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated Use functional composables from @composables instead.
|
||||||
|
* If a composable doesn't exist for your use case, please create a new one in:
|
||||||
|
* cypress/composables
|
||||||
|
*
|
||||||
|
* This class-based approach is being phased out in favor of more modular functional composables.
|
||||||
|
* Each getter and action in this class should be moved to individual composable functions.
|
||||||
|
*/
|
||||||
export class WorkflowsPage extends BasePage {
|
export class WorkflowsPage extends BasePage {
|
||||||
url = '/home/workflows';
|
url = '/home/workflows';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue