mirror of
https://github.com/n8n-io/n8n.git
synced 2025-12-05 19:27:26 -06:00
test: Move auth tests to separate folder (#22726)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { test, expect } from '../../fixtures/base';
|
||||
import { test, expect } from '../../../fixtures/base';
|
||||
|
||||
test.describe('Admin user', () => {
|
||||
test('should see same Settings sub menu items as instance owner', async ({ n8n }) => {
|
||||
@@ -1,4 +1,4 @@
|
||||
import { test, expect } from '../../fixtures/base';
|
||||
import { test, expect } from '../../../fixtures/base';
|
||||
|
||||
test.describe('Authentication', () => {
|
||||
const testCases = [
|
||||
@@ -1,4 +1,4 @@
|
||||
import { test, expect } from '../../fixtures/base';
|
||||
import { test, expect } from '../../../fixtures/base';
|
||||
|
||||
test.use({ addContainerCapability: { email: true } });
|
||||
|
||||
@@ -4,11 +4,14 @@ import { test, expect } from '../../../fixtures/base';
|
||||
test.describe('Sign In', () => {
|
||||
test('should login and logout @auth:none', async ({ n8n }) => {
|
||||
await n8n.goHome();
|
||||
|
||||
await n8n.signIn.goToSignIn();
|
||||
|
||||
await n8n.signIn.loginWithEmailAndPassword(
|
||||
INSTANCE_OWNER_CREDENTIALS.email,
|
||||
INSTANCE_OWNER_CREDENTIALS.password,
|
||||
);
|
||||
|
||||
await expect(n8n.sideBar.getUserMenu()).toBeVisible();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user