forked from rancher/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Yonas Berhe
authored and
Yonas Berhe
committed
Jun 4, 2024
1 parent
5efe60e
commit 2ddcf4d
Showing
15 changed files
with
672 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import PagePo from '@/cypress/e2e/po/pages/page.po'; | ||
import TabbedPo from '@/cypress/e2e/po/components/tabbed.po'; | ||
import FleetGitRepoList from '~/cypress/e2e/po/lists/fleet/fleet.cattle.io.gitrepo.po'; | ||
|
||
/** | ||
* Details component for fleet.cattle.io.gitrepo resources | ||
*/ | ||
export default class FleetClusterDetailsPo extends PagePo { | ||
private static createPath(fleetWorkspace: string, clusterName: string) { | ||
return `/c/_/fleet/fleet.cattle.io.cluster/${ fleetWorkspace }/${ clusterName }`; | ||
} | ||
|
||
static goTo(path: string): Cypress.Chainable<Cypress.AUTWindow> { | ||
throw new Error('invalid'); | ||
} | ||
|
||
constructor(fleetWorkspace: string, clusterName: string) { | ||
super(FleetClusterDetailsPo.createPath(fleetWorkspace, clusterName)); | ||
} | ||
|
||
clusterTabs(): TabbedPo { | ||
return new TabbedPo(); | ||
} | ||
|
||
gitReposList(): FleetGitRepoList { | ||
return new FleetGitRepoList(this.self()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import PagePo from '@/cypress/e2e/po/pages/page.po'; | ||
import AsyncButtonPo from '~/cypress/e2e/po/components/async-button.po'; | ||
import NameNsDescription from '~/cypress/e2e/po/components/name-ns-description.po'; | ||
import ResourceDetailPo from '~/cypress/e2e/po/edit/resource-detail.po'; | ||
|
||
export default class FleetClusterEditPo extends PagePo { | ||
private static createPath(fleetWorkspace: string, clusterName: string) { | ||
return `/c/_/fleet/fleet.cattle.io.cluster/${ fleetWorkspace }/${ clusterName }`; | ||
} | ||
|
||
static goTo(path: string): Cypress.Chainable<Cypress.AUTWindow> { | ||
throw new Error('invalid'); | ||
} | ||
|
||
constructor(fleetWorkspace = 'fleet-default', clusterName: string) { | ||
super(FleetClusterEditPo.createPath(fleetWorkspace, clusterName)); | ||
} | ||
|
||
nameNsDescription() { | ||
return new NameNsDescription(this.self()); | ||
} | ||
|
||
saveCreateForm(): ResourceDetailPo { | ||
return new ResourceDetailPo(this.self()); | ||
} | ||
|
||
saveButton() { | ||
return new AsyncButtonPo('[data-testid="form-save"]', this.self()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.