mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
feat(editor): Adds a EE view to show worker details and job status (#7600)
This change expands on the command channel communication introduced lately between the main instance(s) and the workers. The frontend gets a new menu entry "Workers" which will, when opened, trigger a regular call to getStatus from the workers. The workers then respond via their response channel to the backend, which then pushes the status to the frontend. This introduces the use of ChartJS for metrics. This feature is still in MVP state and thus disabled by default for the moment.
This commit is contained in:
committed by
GitHub
parent
0ddafd2b82
commit
cbc690907f
15
cypress/pages/workerView.ts
Normal file
15
cypress/pages/workerView.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { BasePage } from './base';
|
||||
|
||||
export class WorkerViewPage extends BasePage {
|
||||
url = '/workers';
|
||||
getters = {
|
||||
workerCards: () => cy.getByTestId('worker-card'),
|
||||
workerCard: (workerId: string) => this.getters.workerCards().contains(workerId),
|
||||
workerViewLicensed: () => cy.getByTestId('worker-view-licensed'),
|
||||
workerViewUnlicensed: () => cy.getByTestId('worker-view-unlicensed'),
|
||||
menuItems: () => cy.get('.el-menu-item'),
|
||||
menuItem: () => this.getters.menuItems().get('#workersview'),
|
||||
};
|
||||
|
||||
actions = {};
|
||||
}
|
||||
Reference in New Issue
Block a user