2025-01-08 00:36:44 -08:00
|
|
|
const url = '/settings';
|
2023-12-08 03:52:25 -08:00
|
|
|
|
|
|
|
describe('Admin user', { disableAutoLogin: true }, () => {
|
|
|
|
it('should see same Settings sub menu items as instance owner', () => {
|
2024-06-11 05:45:15 -07:00
|
|
|
cy.signinAsOwner();
|
2025-01-08 00:36:44 -08:00
|
|
|
cy.visit(url);
|
2023-12-08 03:52:25 -08:00
|
|
|
|
|
|
|
let ownerMenuItems = 0;
|
|
|
|
|
2025-01-08 00:36:44 -08:00
|
|
|
cy.getByTestId('menu-item').then(($el) => {
|
2023-12-08 03:52:25 -08:00
|
|
|
ownerMenuItems = $el.length;
|
|
|
|
});
|
|
|
|
|
|
|
|
cy.signout();
|
2024-06-11 05:45:15 -07:00
|
|
|
cy.signinAsAdmin();
|
2025-01-08 00:36:44 -08:00
|
|
|
cy.visit(url);
|
2023-12-08 03:52:25 -08:00
|
|
|
|
2025-01-08 00:36:44 -08:00
|
|
|
cy.getByTestId('menu-item').should('have.length', ownerMenuItems);
|
2023-12-08 03:52:25 -08:00
|
|
|
});
|
|
|
|
});
|