mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
33 lines
910 B
TypeScript
33 lines
910 B
TypeScript
import workflow from '../fixtures/Manual_wait_set.json';
|
|
import { importWorkflow, visitDemoPage } from '../pages/demo';
|
|
import { WorkflowPage } from '../pages/workflow';
|
|
import { errorToast } from '../pages/notifications';
|
|
|
|
const workflowPage = new WorkflowPage();
|
|
|
|
describe('Demo', () => {
|
|
beforeEach(() => {
|
|
cy.overrideSettings({ previewMode: true });
|
|
cy.signout();
|
|
});
|
|
|
|
it('can import template', () => {
|
|
visitDemoPage();
|
|
errorToast().should('not.exist');
|
|
importWorkflow(workflow);
|
|
workflowPage.getters.canvasNodes().should('have.length', 3);
|
|
});
|
|
|
|
it('can override theme to dark', () => {
|
|
visitDemoPage('dark');
|
|
cy.get('body').should('have.attr', 'data-theme', 'dark');
|
|
errorToast().should('not.exist');
|
|
});
|
|
|
|
it('can override theme to light', () => {
|
|
visitDemoPage('light');
|
|
cy.get('body').should('have.attr', 'data-theme', 'light');
|
|
errorToast().should('not.exist');
|
|
});
|
|
});
|