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.
Run pagination regressions tests against a system with server-side pa…
…gination enabled (rancher#11358) * Add tests for setting up vai env in rancher * workflow hack * testing * add user tag to @vai tests * more shippable trigger, in the hope it fixes the looong test run due to tests with no tests in... * test - rely on filename sort order for priority * test - rely on spec order for priority * test - rely on spec order for priority - take 2 * add setup for vai... * Apply tags to new tests * fix global roles - cluster different if run directly - there was a more complex solution here (hence abstract) but it ended up needing to go to a cluster page anyway, so might as well just nav to desired page * fix users - cluster different if run directly * Fix other revisions (probably more TODO...) * Fixes for event and crd tables * Tweaks * Revert temp changes --------- Co-authored-by: Richard <[email protected]>
- Loading branch information
1 parent
ba39a4a
commit ddd2dee
Showing
44 changed files
with
219 additions
and
109 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
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,18 @@ | ||
import PagePo from '@/cypress/e2e/po/pages/page.po'; | ||
|
||
export default abstract class ClusterPage extends PagePo { | ||
private static createPath(clusterId: string, pathAfterCluster: string) { | ||
return `/c/${ clusterId }/${ pathAfterCluster }`; | ||
} | ||
|
||
/** | ||
* Fetch the cluster id from the url... (note - you need to be on a cluster page for this to work) | ||
*/ | ||
static clusterId() { | ||
return cy.url().then((url: string) => /\/c\/([a-z\-_]*)\/\S*/.exec(url)?.[1]); | ||
} | ||
|
||
constructor(clusterId = '_', pathAfterCluster = '') { | ||
super(ClusterPage.createPath(clusterId, pathAfterCluster)); | ||
} | ||
} |
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,22 @@ | ||
import ComponentPo from '@/cypress/e2e/po/components/component.po'; | ||
import CardPo from '@/cypress/e2e/po/components/card.po'; | ||
|
||
export default class GenericPrompt extends ComponentPo { | ||
card = new CardPo(); | ||
|
||
getTitle() { | ||
return this.card.getTitle(); | ||
} | ||
|
||
getBody() { | ||
return this.card.getBody(); | ||
} | ||
|
||
cancel() { | ||
return this.self().find('.btn role-secondary'); | ||
} | ||
|
||
submit(text: string) { | ||
return this.card.getActionButton().contains(text).click(); | ||
} | ||
} |
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.