fix(e2e): интеграционные тесты на стендах без mocks.
CI / test (push) Has been cancelled
CI / push-image (push) Has been cancelled
CI / ci-done (push) Has been cancelled

ift-ui/stage-ui гоняют stand/integration против живого API; mock-suite остаётся в CI.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-16 14:11:54 +03:00
parent d200260497
commit 7bd186eace
7 changed files with 109 additions and 28 deletions
+13 -17
View File
@@ -10,6 +10,16 @@ const liveChrome = {
ignoreHTTPSErrors: true,
};
/** Mock-suite (CI / локально): preview + page.route mocks. */
const mockProject = {
name: 'mock',
use: { ...devices['Desktop Chrome'] },
testIgnore: [/stand\//, /ift\//],
};
/** IFT/stage после деплоя: живой SPA + admin-api, без mocks. */
const standTestMatch = /stand\//;
export default defineConfig({
testDir: './e2e/tests',
fullyParallel: false,
@@ -25,30 +35,16 @@ export default defineConfig({
locale: 'ru-RU',
},
projects: [
{
name: 'mock',
use: { ...devices['Desktop Chrome'] },
testIgnore: /ift\//,
},
mockProject,
{
name: 'ift-ui',
use: { ...liveChrome, baseURL: iftBaseURL },
testIgnore: /ift\//,
},
{
name: 'ift-smoke',
use: { ...liveChrome, baseURL: iftBaseURL },
testMatch: /ift\//,
testMatch: standTestMatch,
},
{
name: 'stage-ui',
use: { ...liveChrome, baseURL: stageBaseURL },
testIgnore: /ift\//,
},
{
name: 'stage-smoke',
use: { ...liveChrome, baseURL: stageBaseURL },
testMatch: /ift\//,
testMatch: standTestMatch,
},
],
webServer: liveTarget