test: Move auth tests to separate folder (#22726)

This commit is contained in:
Artem Sorokin
2025-12-04 23:01:55 +01:00
committed by GitHub
parent 6e77f0eb81
commit e219e7e915
4 changed files with 6 additions and 3 deletions

View File

@@ -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 }) => {

View File

@@ -1,4 +1,4 @@
import { test, expect } from '../../fixtures/base';
import { test, expect } from '../../../fixtures/base';
test.describe('Authentication', () => {
const testCases = [

View File

@@ -1,4 +1,4 @@
import { test, expect } from '../../fixtures/base';
import { test, expect } from '../../../fixtures/base';
test.use({ addContainerCapability: { email: true } });

View File

@@ -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();
});
});