-
Notifications
You must be signed in to change notification settings - Fork 15
/
wdio.local.conf.js
50 lines (48 loc) · 1.87 KB
/
wdio.local.conf.js
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
const path = require('node:path');
const sharedConfig = require('./wdio.shared.conf.js').config;
const config = {
...sharedConfig,
...{
// specs: [
// './src/test/js/integration/specs/pwa/InstallationSpec.js'
// ],
maxInstances: 1,
// services: ['devtools'],
capabilities: [{
browserName: 'chrome',
'goog:chromeOptions': {
// args: ['--auto-open-devtools-for-tabs','disable-gpu']
args: ['headless', 'disable-gpu', '--window-size=1280,1024']
// args: ['disable-gpu', '--window-size=1280,1024']
},
'wdio:chromedriverOptions': {
binary: "./node_modules/chromedriver/lib/chromedriver/chromedriver"
}
}],
testConfig: {
baseUrl: 'http://localhost:8087',
serverUrl: 'http://localhost:8087',
wireMockBaseUrl: 'http://localhost:8018',
pwaUrl: 'http://localhost:5173/mobile-app',
proxyUrl: 'http://localhost:8081',
proxyPort: 8081,
dirName: __dirname,
resourceDir: path.resolve(__dirname, 'src', 'integration-test', 'resources'),
datasetLoadScript: path.resolve(__dirname, 'src', 'main', 'scripts', 'loadFunctionalTestData.sh'),
databaseName: "ecodata-functional-test",
databaseUserName: undefined,
databasePassword: undefined,
oidc: {
clientId: 'oidcId',
secret: 'oidcSecret',
scope: "openid profile email roles user_defined ala"
},
webservice: {
"client-id": "jwtId",
"client-secret": "jwtSecret",
"jwt-scopes": "ala/internal users/read ala/attrs ecodata/read_test ecodata/write_test"
}
}
}
}
module.exports = { config };