mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
test: CAT-680 Increase Cypress screen size for testing (no-changelog) (#13590)
This commit is contained in:
parent
294f019414
commit
aea2e79bf2
|
@ -14,6 +14,8 @@ module.exports = defineConfig({
|
||||||
experimentalMemoryManagement: true,
|
experimentalMemoryManagement: true,
|
||||||
e2e: {
|
e2e: {
|
||||||
baseUrl: BASE_URL,
|
baseUrl: BASE_URL,
|
||||||
|
viewportWidth: 1536,
|
||||||
|
viewportHeight: 960,
|
||||||
video: true,
|
video: true,
|
||||||
screenshotOnRunFailure: true,
|
screenshotOnRunFailure: true,
|
||||||
experimentalInteractiveRunEvents: true,
|
experimentalInteractiveRunEvents: true,
|
||||||
|
|
|
@ -384,6 +384,7 @@ describe('Canvas Node Manipulation and Navigation', () => {
|
||||||
WorkflowPage.actions.addNodeToCanvas(CODE_NODE_NAME);
|
WorkflowPage.actions.addNodeToCanvas(CODE_NODE_NAME);
|
||||||
WorkflowPage.actions.addNodeToCanvas(CODE_NODE_NAME);
|
WorkflowPage.actions.addNodeToCanvas(CODE_NODE_NAME);
|
||||||
WorkflowPage.actions.addNodeToCanvas(CODE_NODE_NAME);
|
WorkflowPage.actions.addNodeToCanvas(CODE_NODE_NAME);
|
||||||
|
WorkflowPage.actions.addNodeToCanvas(CODE_NODE_NAME);
|
||||||
// At this point last added node should be off-screen
|
// At this point last added node should be off-screen
|
||||||
WorkflowPage.getters.canvasNodes().last().should('not.be.visible');
|
WorkflowPage.getters.canvasNodes().last().should('not.be.visible');
|
||||||
WorkflowPage.getters.zoomToFitButton().click();
|
WorkflowPage.getters.zoomToFitButton().click();
|
||||||
|
|
|
@ -27,8 +27,8 @@ describe('Workflow Executions', () => {
|
||||||
|
|
||||||
executionsTab.getters.executionsList().scrollTo(0, 500).wait(0);
|
executionsTab.getters.executionsList().scrollTo(0, 500).wait(0);
|
||||||
|
|
||||||
executionsTab.getters.executionListItems().should('have.length', 11);
|
executionsTab.getters.executionListItems().should('have.length', 30);
|
||||||
executionsTab.getters.successfulExecutionListItems().should('have.length', 9);
|
executionsTab.getters.successfulExecutionListItems().should('have.length', 28);
|
||||||
executionsTab.getters.failedExecutionListItems().should('have.length', 2);
|
executionsTab.getters.failedExecutionListItems().should('have.length', 2);
|
||||||
executionsTab.getters
|
executionsTab.getters
|
||||||
.executionListItems()
|
.executionListItems()
|
||||||
|
@ -185,8 +185,9 @@ describe('Workflow Executions', () => {
|
||||||
.invoke('attr', 'title')
|
.invoke('attr', 'title')
|
||||||
.should('eq', newWorkflowName);
|
.should('eq', newWorkflowName);
|
||||||
});
|
});
|
||||||
|
// This should be a component test. Abstracting this away into to ensure our lists work.
|
||||||
it('should load items and auto scroll after filter change', () => {
|
// eslint-disable-next-line n8n-local-rules/no-skipped-tests
|
||||||
|
it.skip('should load items and auto scroll after filter change', () => {
|
||||||
createMockExecutions();
|
createMockExecutions();
|
||||||
createMockExecutions();
|
createMockExecutions();
|
||||||
cy.intercept('GET', '/rest/executions?filter=*').as('getExecutions');
|
cy.intercept('GET', '/rest/executions?filter=*').as('getExecutions');
|
||||||
|
@ -289,15 +290,20 @@ describe('Workflow Executions', () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const createMockExecutions = () => {
|
const createMockExecutions = () => {
|
||||||
executionsTab.actions.createManualExecutions(5);
|
executionsTab.actions.createManualExecutions(15);
|
||||||
|
// This wait is added to allow time for the notifications to expire
|
||||||
|
cy.wait(2000);
|
||||||
// Make some failed executions by enabling Code node with syntax error
|
// Make some failed executions by enabling Code node with syntax error
|
||||||
executionsTab.actions.toggleNodeEnabled('Error');
|
executionsTab.actions.toggleNodeEnabled('Error');
|
||||||
workflowPage.getters.disabledNodes().should('have.length', 0);
|
workflowPage.getters.disabledNodes().should('have.length', 0);
|
||||||
executionsTab.actions.createManualExecutions(2);
|
executionsTab.actions.createManualExecutions(2);
|
||||||
|
// This wait is added to allow time for the notifications to expire
|
||||||
|
cy.wait(2000);
|
||||||
|
|
||||||
// Then add some more successful ones
|
// Then add some more successful ones
|
||||||
executionsTab.actions.toggleNodeEnabled('Error');
|
executionsTab.actions.toggleNodeEnabled('Error');
|
||||||
workflowPage.getters.disabledNodes().should('have.length', 1);
|
workflowPage.getters.disabledNodes().should('have.length', 1);
|
||||||
executionsTab.actions.createManualExecutions(4);
|
executionsTab.actions.createManualExecutions(15);
|
||||||
};
|
};
|
||||||
|
|
||||||
const checkMainHeaderELements = () => {
|
const checkMainHeaderELements = () => {
|
||||||
|
|
|
@ -25,6 +25,18 @@
|
||||||
"value": "test",
|
"value": "test",
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"id": "85095836-4e94-442f-9270-e1a89008c125",
|
||||||
|
"name": "test",
|
||||||
|
"value": "test",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "85095836-4e94-442f-9270-e1a89008c121",
|
||||||
|
"name": "test",
|
||||||
|
"value": "test",
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"id": "b6163f8a-bca6-4364-8b38-182df37c55cd",
|
"id": "b6163f8a-bca6-4364-8b38-182df37c55cd",
|
||||||
"name": "=should be visible!",
|
"name": "=should be visible!",
|
||||||
|
@ -50,6 +62,10 @@
|
||||||
"blocksUi": "blocks",
|
"blocksUi": "blocks",
|
||||||
"text": "=should be visible",
|
"text": "=should be visible",
|
||||||
"otherOptions": {
|
"otherOptions": {
|
||||||
|
"includeLinkToWorkflow": true,
|
||||||
|
"link_names": false,
|
||||||
|
"mrkdwn": true,
|
||||||
|
"unfurl_links": false,
|
||||||
"sendAsUser": "=not visible"
|
"sendAsUser": "=not visible"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -67,6 +83,7 @@
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"rule": {
|
"rule": {
|
||||||
"interval": [
|
"interval": [
|
||||||
|
{},
|
||||||
{},
|
{},
|
||||||
{
|
{
|
||||||
"field": "=should be visible"
|
"field": "=should be visible"
|
||||||
|
|
Loading…
Reference in a new issue