mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-13 16:14:07 -08:00
23 lines
547 B
TypeScript
23 lines
547 B
TypeScript
import { SettingsPage } from '../pages/settings';
|
|
|
|
const settingsPage = new SettingsPage();
|
|
|
|
describe('Admin user', { disableAutoLogin: true }, () => {
|
|
it('should see same Settings sub menu items as instance owner', () => {
|
|
cy.signinAsOwner();
|
|
cy.visit(settingsPage.url);
|
|
|
|
let ownerMenuItems = 0;
|
|
|
|
settingsPage.getters.menuItems().then(($el) => {
|
|
ownerMenuItems = $el.length;
|
|
});
|
|
|
|
cy.signout();
|
|
cy.signinAsAdmin();
|
|
cy.visit(settingsPage.url);
|
|
|
|
settingsPage.getters.menuItems().should('have.length', ownerMenuItems);
|
|
});
|
|
});
|