-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathplaywright.modelbank.config.ts
64 lines (61 loc) · 2.29 KB
/
playwright.modelbank.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import { defineConfig, devices } from '@playwright/test';
import 'dotenv/config';
import baseConfig from './playwright.config';
import { join } from 'path';
export default defineConfig<any>({
...baseConfig,
projects: [
/**
* Configuration for running tests on ephemeral environment.
*/
{
name: 'remote-ephemeral',
use: {
...devices['Desktop Chrome'],
viewport: { width: 1723, height: 896 },
configPath: join(__dirname, 'apps/golden-sample-app-e2e/config/ephemeral.config.json'), // config for login details
baseURL: process.env['REMOTE_URL'] ?? 'http://localhost:4200', // path to the ephemeral env
},
testIgnore: /mocked-.*/, // we want to run every test here except mocked ones
},
/**
* Configuration for modelbank staging env.
*/
{
name: 'remote-mb-stg',
use: {
...devices['Desktop Chrome'],
viewport: { width: 1723, height: 896 },
configPath: join(__dirname, 'apps/golden-sample-app-e2e/config/mb-stg.config.json'),
baseURL: process.env['REMOTE_URL'] ?? 'https://business.mb-stg.reference.azure.backbaseservices.com',
},
testMatch: /mb-.*\.(e2e-spec|spec)\.ts/, // we just want to run all tests with file names starting from mb-*.ts.
},
/**
* Configuration for modelbank stable env.
*/
{
name: 'remote-mb-stable',
use: {
...devices['Desktop Chrome'],
viewport: { width: 1723, height: 896 },
configPath: join(__dirname, 'src/config/mb-stable.config.json'),
baseURL: process.env['REMOTE_URL'] ?? 'https://business.mb-stable.reference.azure.backbaseservices.com',
},
testMatch: /mb-.*\.(e2e-spec|spec)\.ts/, // we just want to run all tests with file names starting from mb-*.ts.
},
/**
* Configuration for US latest env.
*/
{
name: 'remote-us-latest',
use: {
...devices['Desktop Chrome'],
viewport: { width: 1723, height: 896 },
configPath: join(__dirname, 'src/config/us-latest.config.json'),
baseURL: process.env['REMOTE_URL'] ?? 'https://business.us-latest.rndbb.azure.backbaseservices.com',
},
testMatch: /mb-.*\.(e2e-spec|spec)\.ts/, // we just want to run all tests with file names starting from mb-*.ts.
},
],
})