mirror of https://github.com/rancher/dashboard.git
17 lines
536 B
TypeScript
17 lines
536 B
TypeScript
import PagePo from '@/cypress/e2e/po/pages/page.po';
|
|
export default class FleetBundlesCreateEditPo extends PagePo {
|
|
private static createPath(workspace?: string, id?: string ) {
|
|
const root = `/c/_/fleet/fleet.cattle.io.bundle`;
|
|
|
|
return id ? `${ root }/${ workspace }/${ id }` : `${ root }/create`;
|
|
}
|
|
|
|
static goTo(path: string): Cypress.Chainable<Cypress.AUTWindow> {
|
|
throw new Error('invalid');
|
|
}
|
|
|
|
constructor(workspace?: string, id?: string) {
|
|
super(FleetBundlesCreateEditPo.createPath(workspace, id));
|
|
}
|
|
}
|