Skip to content

Commit

Permalink
fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
karesti committed Jan 8, 2025
1 parent aff0b47 commit 27e8335
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cypress/e2e/1_acess_management.cy.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
describe('Global stats', () => {
describe('Access Management', () => {
beforeEach(() => {
cy.login(Cypress.env('username'), Cypress.env('password'), '/access-management');
});

it('successfully loads Access Management page', () => {
it('successfully loads the page', () => {
cy.get('h1').should('contain', 'Access management');
cy.contains('admin');
cy.contains('Superuser');
Expand Down
4 changes: 2 additions & 2 deletions src/app/AccessManagement/AccessManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ const AccessManager = () => {
const handleTabClick = (index: number) => {
setActiveTabKey(index);
setShowRoles(index == 0);
setShowAccessControl(index == 1);
setShowUsers(index == 2);
setShowUsers(index == 1);
setShowAccessControl(index == 2);
};

const buildTabs = () => {
Expand Down

0 comments on commit 27e8335

Please sign in to comment.