fix(editor): Show workflow data in header when execution page is hard reloaded (#9529)

This commit is contained in:
Csaba Tuncsik
2024-05-30 16:47:02 +02:00
committed by GitHub
parent dda56aa6d3
commit e68a3fd6ce
4 changed files with 48 additions and 12 deletions

View File

@@ -133,6 +133,17 @@ describe('Current Workflow Executions', () => {
executionsTab.getters.executionListItems().first().should('be.visible');
executionsTab.getters.executionListItems().eq(14).should('not.be.visible');
});
it('should show workflow data in executions tab after hard reload', () => {
executionsTab.actions.switchToExecutionsTab();
checkMainHeaderELements();
cy.reload();
checkMainHeaderELements();
executionsTab.actions.switchToEditorTab();
checkMainHeaderELements();
});
});
const createMockExecutions = () => {
@@ -144,3 +155,10 @@ const createMockExecutions = () => {
executionsTab.actions.toggleNodeEnabled('Error');
executionsTab.actions.createManualExecutions(4);
};
const checkMainHeaderELements = () => {
workflowPage.getters.workflowNameInputContainer().should('be.visible');
workflowPage.getters.workflowTagsContainer().should('be.visible');
workflowPage.getters.workflowMenu().should('be.visible');
workflowPage.getters.saveButton().should('be.visible');
};

View File

@@ -65,5 +65,19 @@
]
]
}
}
},
"tags": [
{
"name": "some-tag-1",
"createdAt": "2022-11-10T13:43:34.001Z",
"updatedAt": "2022-11-10T13:43:34.001Z",
"id": "6"
},
{
"name": "some-tag-2",
"createdAt": "2022-11-10T13:43:39.778Z",
"updatedAt": "2022-11-10T13:43:39.778Z",
"id": "7"
}
]
}