2023-11-10 14:48:31 -08:00
|
|
|
import { BasePage } from './base';
|
|
|
|
|
|
|
|
export class WorkerViewPage extends BasePage {
|
2023-11-21 02:29:24 -08:00
|
|
|
url = '/settings/workers';
|
2024-06-10 06:49:50 -07:00
|
|
|
|
2023-11-10 14:48:31 -08:00
|
|
|
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'),
|
2023-11-21 02:29:24 -08:00
|
|
|
menuItem: () => this.getters.menuItems().get('#settings-workersview'),
|
2023-11-10 14:48:31 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
actions = {};
|
|
|
|
}
|