From 32519d5ee923f2c856f9466717f87a631141ba08 Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Mon, 8 Jul 2024 10:10:35 +0000 Subject: [PATCH] fix: without auth playwright tests, they are in tests-with-auth dir. testing --- .../2-auth-topics-actions.spec.ts | 1 + .../3-auth-drafts-actions.spec.ts | 1 + .../4-auth-user-actions.spec.ts | 1 + tests-with-auth/readme.txt | 1 + tests/{page-sections.spec.ts => 1-page-sections.spec.ts} | 1 + 5 files changed, 5 insertions(+) rename tests/auth-topics-actions.spec.ts => tests-with-auth/2-auth-topics-actions.spec.ts (99%) rename tests/auth-drafts-actions.spec.ts => tests-with-auth/3-auth-drafts-actions.spec.ts (99%) rename tests/auth-user-actions.spec.ts => tests-with-auth/4-auth-user-actions.spec.ts (99%) create mode 100644 tests-with-auth/readme.txt rename tests/{page-sections.spec.ts => 1-page-sections.spec.ts} (98%) diff --git a/tests/auth-topics-actions.spec.ts b/tests-with-auth/2-auth-topics-actions.spec.ts similarity index 99% rename from tests/auth-topics-actions.spec.ts rename to tests-with-auth/2-auth-topics-actions.spec.ts index f94e16cd..29f03204 100644 --- a/tests/auth-topics-actions.spec.ts +++ b/tests-with-auth/2-auth-topics-actions.spec.ts @@ -45,6 +45,7 @@ test.beforeAll(async ({ browser }) => { console.log('Waiting for the server to start...') await new Promise((resolve) => setTimeout(resolve, 5000)) const baseURL = process.env.BASE_URL || 'https://localhost:3000' + console.log('Base URL:', baseURL) await waitForServer(baseURL) page = await browser.newPage() test.setTimeout(150000) diff --git a/tests/auth-drafts-actions.spec.ts b/tests-with-auth/3-auth-drafts-actions.spec.ts similarity index 99% rename from tests/auth-drafts-actions.spec.ts rename to tests-with-auth/3-auth-drafts-actions.spec.ts index 4c804d4a..650cdab8 100644 --- a/tests/auth-drafts-actions.spec.ts +++ b/tests-with-auth/3-auth-drafts-actions.spec.ts @@ -45,6 +45,7 @@ test.beforeAll(async ({ browser }) => { console.log('Waiting for the server to start...') await new Promise((resolve) => setTimeout(resolve, 5000)) const baseURL = process.env.BASE_URL || 'https://localhost:3000' + console.log('Base URL:', baseURL) await waitForServer(baseURL) page = await browser.newPage() test.setTimeout(150000) diff --git a/tests/auth-user-actions.spec.ts b/tests-with-auth/4-auth-user-actions.spec.ts similarity index 99% rename from tests/auth-user-actions.spec.ts rename to tests-with-auth/4-auth-user-actions.spec.ts index 9323519e..11f5a5a6 100644 --- a/tests/auth-user-actions.spec.ts +++ b/tests-with-auth/4-auth-user-actions.spec.ts @@ -47,6 +47,7 @@ test.beforeAll(async ({ browser }) => { console.log('Waiting for the server to start...') await new Promise((resolve) => setTimeout(resolve, 5000)) const baseURL = process.env.BASE_URL || 'https://localhost:3000' + console.log('Base URL:', baseURL) await waitForServer(baseURL) context = await browser.newContext() page = await context.newPage() diff --git a/tests-with-auth/readme.txt b/tests-with-auth/readme.txt new file mode 100644 index 00000000..02a91b29 --- /dev/null +++ b/tests-with-auth/readme.txt @@ -0,0 +1 @@ +This is folder with Playwright tests, that are needed to move in /tests dir for wrking on playwright circle \ No newline at end of file diff --git a/tests/page-sections.spec.ts b/tests/1-page-sections.spec.ts similarity index 98% rename from tests/page-sections.spec.ts rename to tests/1-page-sections.spec.ts index f3c36901..8f51104b 100644 --- a/tests/page-sections.spec.ts +++ b/tests/1-page-sections.spec.ts @@ -45,6 +45,7 @@ test.beforeAll(async ({ browser }) => { console.log('Waiting for the server to start...') await new Promise((resolve) => setTimeout(resolve, 5000)) const baseURL = process.env.BASE_URL || 'https://localhost:3000' + console.log('Base URL:', baseURL) await waitForServer(baseURL) page = await browser.newPage() test.setTimeout(150000)