-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add e2e test for cluster manager namespace bug (#10964)
- Loading branch information
Showing
4 changed files
with
37 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import PagePo from '@/cypress/e2e/po/pages/page.po'; | ||
|
||
export default class ClusterManagerNamespacePagePo extends PagePo { | ||
private static createPath(clusterId: string, namespace) { | ||
return `/c/${ clusterId }/manager/namespace/${ namespace }`; | ||
} | ||
|
||
constructor(clusterId = 'local', namespace = 'fleet-local') { | ||
super(ClusterManagerNamespacePagePo.createPath(clusterId, namespace)); | ||
} | ||
|
||
namespace() { | ||
return cy.get('.mastehead-resource-title'); | ||
} | ||
} |
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