mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-26 05:04:05 -08:00
24 lines
657 B
TypeScript
24 lines
657 B
TypeScript
|
import workflow from '../fixtures/Manual_wait_set.json';
|
||
|
import { importWorkflow, vistDemoPage } from '../pages/demo';
|
||
|
import { WorkflowPage } from '../pages/workflow';
|
||
|
|
||
|
const workflowPage = new WorkflowPage();
|
||
|
|
||
|
describe('Demo', () => {
|
||
|
it('can import template', () => {
|
||
|
vistDemoPage();
|
||
|
importWorkflow(workflow);
|
||
|
workflowPage.getters.canvasNodes().should('have.length', 3);
|
||
|
});
|
||
|
|
||
|
it('can override theme to dark', () => {
|
||
|
vistDemoPage('dark');
|
||
|
cy.get('body').should('have.attr', 'data-theme', 'dark');
|
||
|
});
|
||
|
|
||
|
it('can override theme to light', () => {
|
||
|
vistDemoPage('light');
|
||
|
cy.get('body').should('have.attr', 'data-theme', 'light');
|
||
|
});
|
||
|
});
|