mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-07-13 08:36:34 +02:00
852657c17e
Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
27 lines
757 B
TypeScript
27 lines
757 B
TypeScript
import { test, expect } from '../fixtures/base';
|
|
|
|
test('default signin is as owner', async ({ n8n }) => {
|
|
await n8n.goHome();
|
|
await expect(n8n.page).toHaveURL(/\/workflow/);
|
|
});
|
|
|
|
test('owner can access dashboard @auth:owner', async ({ n8n }) => {
|
|
await n8n.goHome();
|
|
await expect(n8n.page).toHaveURL(/\/workflow/);
|
|
});
|
|
|
|
test('admin can access dashboard @auth:admin', async ({ n8n }) => {
|
|
await n8n.goHome();
|
|
await expect(n8n.page).toHaveURL(/\/workflow/);
|
|
});
|
|
|
|
test('member can access dashboard @auth:member', async ({ n8n }) => {
|
|
await n8n.goHome();
|
|
await expect(n8n.page).toHaveURL(/\/workflow/);
|
|
});
|
|
|
|
test('no auth can not access dashboard @auth:none', async ({ n8n }) => {
|
|
await n8n.goHome();
|
|
await expect(n8n.page).toHaveURL(/\/signin/);
|
|
});
|