Skip to content

Commit

Permalink
address pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aalves08 committed May 6, 2024
1 parent 3b7d486 commit 7c62f73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cypress/e2e/po/pages/users-and-auth/roles.po.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ export default class RolesPo extends PagePo {
return new GlobalRoleDetailPo(this.clusterId, roleId);
}

goToEditYamlPage(elemName: string) {
return this.list().actionMenu(elemName).getMenuItem('Edit YAML').click();
}

createRole(userId?: string) {
return new RoleTemplateEditPo(this.clusterId, userId);
}
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/tests/pages/users-and-auth/roles.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('Roles', { tags: ['@usersAndAuths', '@adminUser'] }, () => {
roles.waitForPage(undefined, fragment);

// testing https://github.com/rancher/dashboard/issues/9800
roles.list().actionMenu(globalRoleName).getMenuItem('Edit YAML').click();
roles.goToEditYamlPage(globalRoleName);

createGlobalRole.yamlEditor().value().then((val) => {
// convert yaml into json to update values
Expand Down

0 comments on commit 7c62f73

Please sign in to comment.