aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e
diff options
context:
space:
mode:
Diffstat (limited to 'client/e2e')
-rw-r--r--client/e2e/src/po/my-account.ts2
-rw-r--r--client/e2e/wdio.local-test.conf.ts4
-rw-r--r--client/e2e/wdio.local.conf.ts4
3 files changed, 9 insertions, 1 deletions
diff --git a/client/e2e/src/po/my-account.ts b/client/e2e/src/po/my-account.ts
index 8b5e79b5e..b51614fd9 100644
--- a/client/e2e/src/po/my-account.ts
+++ b/client/e2e/src/po/my-account.ts
@@ -39,7 +39,7 @@ export class MyAccountPage {
39 39
40 await container.$('.dropdown-toggle').click() 40 await container.$('.dropdown-toggle').click()
41 41
42 const dropdownMenu = () => container.$('.dropdown-menu .dropdown-item:nth-child(2)') 42 const dropdownMenu = () => container.$$('.dropdown-menu .dropdown-item')[1]
43 43
44 await dropdownMenu().waitForDisplayed() 44 await dropdownMenu().waitForDisplayed()
45 return dropdownMenu().click() 45 return dropdownMenu().click()
diff --git a/client/e2e/wdio.local-test.conf.ts b/client/e2e/wdio.local-test.conf.ts
index 6ae426322..32e6d340c 100644
--- a/client/e2e/wdio.local-test.conf.ts
+++ b/client/e2e/wdio.local-test.conf.ts
@@ -4,6 +4,9 @@ const prefs = {
4 'intl.accept_languages': 'en' 4 'intl.accept_languages': 'en'
5} 5}
6 6
7// Chrome headless does not support prefs
8process.env.LANG = 'en'
9
7module.exports = { 10module.exports = {
8 config: { 11 config: {
9 ...mainConfig, 12 ...mainConfig,
@@ -18,6 +21,7 @@ module.exports = {
18 browserName: 'chrome', 21 browserName: 'chrome',
19 acceptInsecureCerts: true, 22 acceptInsecureCerts: true,
20 'goog:chromeOptions': { 23 'goog:chromeOptions': {
24 args: [ '--headless', '--disable-gpu', '--window-size=1280,1024' ],
21 prefs 25 prefs
22 } 26 }
23 } 27 }
diff --git a/client/e2e/wdio.local.conf.ts b/client/e2e/wdio.local.conf.ts
index a4c517f5e..43b820ca6 100644
--- a/client/e2e/wdio.local.conf.ts
+++ b/client/e2e/wdio.local.conf.ts
@@ -3,6 +3,7 @@ import { config as mainConfig } from './wdio.main.conf'
3const prefs = { 3const prefs = {
4 'intl.accept_languages': 'en' 4 'intl.accept_languages': 'en'
5} 5}
6process.env.LANG = 'en'
6 7
7module.exports = { 8module.exports = {
8 config: { 9 config: {
@@ -16,6 +17,7 @@ module.exports = {
16 { 17 {
17 browserName: 'chrome', 18 browserName: 'chrome',
18 'goog:chromeOptions': { 19 'goog:chromeOptions': {
20 args: [ '--headless', '--disable-gpu', '--window-size=1280,1024' ],
19 prefs 21 prefs
20 } 22 }
21 }, 23 },
@@ -23,6 +25,8 @@ module.exports = {
23 browserName: 'firefox', 25 browserName: 'firefox',
24 'moz:firefoxOptions': { 26 'moz:firefoxOptions': {
25 binary: '/usr/bin/firefox-developer-edition', 27 binary: '/usr/bin/firefox-developer-edition',
28 args: [ '--headless', '--window-size=1280,1024' ],
29
26 prefs 30 prefs
27 } 31 }
28 } 32 }