Skip to content

Commit

Permalink
fix: fix gui tests and update hermione local config
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowusr committed Oct 30, 2023
1 parent d644def commit 6e4733a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion test/func/tests/common-gui/index.hermione.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe('GUI mode', () => {
beforeEach(async ({browser}) => {
await fs.cp(reportDir, reportBackupDir, {recursive: true});

guiProcess = await runGui();
guiProcess = await runGui(projectDir);

await browser.url(guiUrl);
await browser.$('button*=Expand all').click();
Expand Down
2 changes: 1 addition & 1 deletion test/func/tests/common-tinder/index.hermione.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('Tinder mode', () => {
beforeEach(async ({browser}) => {
await fs.cp(reportDir, reportBackupDir, {recursive: true});

guiProcess = await runGui();
guiProcess = await runGui(projectDir);

await browser.url(guiUrl);
await browser.$('button*=Expand all').click();
Expand Down
11 changes: 4 additions & 7 deletions test/func/tests/local.hermione.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,21 @@ const _ = require('lodash');

const mainConfig = require('./.hermione.conf.js');

// Make sure to adjust chromium binary path to a desired Chromium location.
const CHROME_BINARY_PATH = '/Applications/Chromium.app/Contents/MacOS/Chromium';

const config = _.merge(mainConfig, {
// Default chromedriver host and port. Adjust to your needs.
gridUrl: 'http://localhost:9515/',

browsers: {
chrome: {
automationProtocol: 'devtools',
desiredCapabilities: {
'goog:chromeOptions': {
args: ['no-sandbox', 'hide-scrollbars'],

Check failure on line 20 in test/func/tests/local.hermione.conf.js

View workflow job for this annotation

GitHub Actions / build (16.x)

Unexpected trailing comma

Check failure on line 20 in test/func/tests/local.hermione.conf.js

View workflow job for this annotation

GitHub Actions / build (20.x)

Unexpected trailing comma
binary: CHROME_BINARY_PATH
}
},
waitTimeout: 3000
}
}
});

delete config.gridUrl;
delete config.browsers.chrome.desiredCapabilities['goog:chromeOptions'].binary;

module.exports = config;

0 comments on commit 6e4733a

Please sign in to comment.