test: CAT-680 Increase Cypress screen size for testing (no-changelog) (#13590)

This commit is contained in:
shortstacked 2025-02-28 14:28:07 +00:00 committed by GitHub
parent 294f019414
commit aea2e79bf2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 32 additions and 6 deletions

View file

@ -14,6 +14,8 @@ module.exports = defineConfig({
experimentalMemoryManagement: true,
e2e: {
baseUrl: BASE_URL,
viewportWidth: 1536,
viewportHeight: 960,
video: true,
screenshotOnRunFailure: true,
experimentalInteractiveRunEvents: true,

View file

@ -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);
// At this point last added node should be off-screen
WorkflowPage.getters.canvasNodes().last().should('not.be.visible');
WorkflowPage.getters.zoomToFitButton().click();

View file

@ -27,8 +27,8 @@ describe('Workflow Executions', () => {
executionsTab.getters.executionsList().scrollTo(0, 500).wait(0);
executionsTab.getters.executionListItems().should('have.length', 11);
executionsTab.getters.successfulExecutionListItems().should('have.length', 9);
executionsTab.getters.executionListItems().should('have.length', 30);
executionsTab.getters.successfulExecutionListItems().should('have.length', 28);
executionsTab.getters.failedExecutionListItems().should('have.length', 2);
executionsTab.getters
.executionListItems()
@ -185,8 +185,9 @@ describe('Workflow Executions', () => {
.invoke('attr', 'title')
.should('eq', newWorkflowName);
});
it('should load items and auto scroll after filter change', () => {
// This should be a component test. Abstracting this away into to ensure our lists work.
// eslint-disable-next-line n8n-local-rules/no-skipped-tests
it.skip('should load items and auto scroll after filter change', () => {
createMockExecutions();
createMockExecutions();
cy.intercept('GET', '/rest/executions?filter=*').as('getExecutions');
@ -289,15 +290,20 @@ describe('Workflow Executions', () => {
});
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
executionsTab.actions.toggleNodeEnabled('Error');
workflowPage.getters.disabledNodes().should('have.length', 0);
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
executionsTab.actions.toggleNodeEnabled('Error');
workflowPage.getters.disabledNodes().should('have.length', 1);
executionsTab.actions.createManualExecutions(4);
executionsTab.actions.createManualExecutions(15);
};
const checkMainHeaderELements = () => {

View file

@ -25,6 +25,18 @@
"value": "test",
"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",
"name": "=should be visible!",
@ -50,6 +62,10 @@
"blocksUi": "blocks",
"text": "=should be visible",
"otherOptions": {
"includeLinkToWorkflow": true,
"link_names": false,
"mrkdwn": true,
"unfurl_links": false,
"sendAsUser": "=not visible"
}
},
@ -67,6 +83,7 @@
"parameters": {
"rule": {
"interval": [
{},
{},
{
"field": "=should be visible"