fix(e2e): интеграционные тесты на стендах без mocks.
ift-ui/stage-ui гоняют stand/integration против живого API; mock-suite остаётся в CI. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+13
-17
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user