mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-21 11:49:59 +00:00
test: Migrate UI tests from Cypress -> Playwright (no-changelog) (#18201)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { test, expect } from '../../fixtures/base';
|
||||
|
||||
test.describe('Admin user', () => {
|
||||
test('should see same Settings sub menu items as instance owner', async ({ n8n, api }) => {
|
||||
await api.setupTest('signin-only', 'owner');
|
||||
await n8n.settings.goToSettings();
|
||||
|
||||
const ownerMenuItems = await n8n.settings.getMenuItems().count();
|
||||
|
||||
await api.setupTest('signin-only', 'admin');
|
||||
await n8n.settings.goToSettings();
|
||||
|
||||
await expect(n8n.settings.getMenuItems()).toHaveCount(ownerMenuItems);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user