Skip to content

Commit

Permalink
adds assertion for role check
Browse files Browse the repository at this point in the history
  • Loading branch information
vishsanghishetty committed Aug 14, 2024
1 parent f7c4fd7 commit 118dff7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cypress/e2e/hub/hub-ee-access.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ describe.skip('Execution Environment User Access tab', () => {
cy.getByDataCy('add-roles').click();
cy.getWizard().within(() => {
cy.selectTableRow(hubUser.username);
//cy.selectTableRowByCheckbox('name', hubUser.username, { disableFilter: true });
cy.clickButton(/^Next/);
cy.contains('h1', 'Select roles to apply').should('be.visible');
cy.filterTableByTextFilter('name', 'galaxy.execution_environment_collaborator', {
Expand Down Expand Up @@ -97,10 +96,12 @@ describe.skip('Execution Environment User Access tab', () => {
cy.selectTableRowByCheckbox('username', hubUser.username, {
disableFilter: true,
});
cy.contains('galaxy.execution_environment_publisher').should('be.visible');
removeRoleFromListRow('galaxy.execution_environment_publisher');
cy.selectTableRowByCheckbox('username', hubUser.username, {
disableFilter: true,
});
cy.contains('galaxy.execution_environment_namespace_owner').should('be.visible');
removeRoleFromListRow('galaxy.execution_environment_namespace_owner');
cy.deleteHubUser(hubUser, { failOnStatusCode: false });
});
Expand Down
4 changes: 4 additions & 0 deletions cypress/e2e/hub/namespace-access.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,12 @@ describe.skip('Namespace - team and user access', () => {
cy.selectTableRowByCheckbox('username', hubUser.username, {
disableFilter: true,
});
cy.contains('galaxy.collection_namespace_owner').should('be.visible');
removeRoleFromListRow('galaxy.collection_namespace_owner');
cy.selectTableRowByCheckbox('username', hubUser.username, {
disableFilter: true,
});
cy.contains('galaxy.collection_publisher').should('be.visible');
removeRoleFromListRow('galaxy.collection_publisher');
cy.deleteHubUser(hubUser, { failOnStatusCode: false });
});
Expand Down Expand Up @@ -139,10 +141,12 @@ describe.skip('Namespace - team and user access', () => {
cy.selectTableRowByCheckbox('team-name', hubTeam.name, {
disableFilter: false,
});
cy.contains('galaxy.collection_namespace_owner').should('be.visible');
removeRoleFromListRow('galaxy.collection_namespace_owner');
cy.selectTableRowByCheckbox('team-name', hubTeam.name, {
disableFilter: false,
});
cy.contains('galaxy.collection_publisher').should('be.visible');
removeRoleFromListRow('galaxy.collection_publisher');
cy.deleteHubTeam(hubTeam, { failOnStatusCode: false });
});
Expand Down
2 changes: 2 additions & 0 deletions cypress/e2e/hub/remotes-access.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ describe.skip('Remotes User Access tab', () => {
cy.selectTableRowByCheckbox('username', hubUser.username, {
disableFilter: true,
});
cy.contains('galaxy.collection_remote_owner').should('be.visible');
removeRoleFromListRow('galaxy.collection_remote_owner');
cy.deleteHubUser(hubUser, { failOnStatusCode: false });
});
Expand Down Expand Up @@ -119,6 +120,7 @@ describe.skip('Remotes User Access tab', () => {
cy.selectTableRowByCheckbox('team-name', hubTeam.name, {
disableFilter: false,
});
cy.contains('galaxy.collection_remote_owner').should('be.visible');
removeRoleFromListRow('galaxy.collection_remote_owner');
cy.deleteHubTeam(hubTeam, { failOnStatusCode: false });
});
Expand Down

0 comments on commit 118dff7

Please sign in to comment.