Skip to content

Commit

Permalink
test: fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowusr committed Oct 20, 2023
1 parent 643285b commit c097402
Show file tree
Hide file tree
Showing 13 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/func/common.hermione.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports.getCommonConfig = (projectDir) => ({
desiredCapabilities: {
browserName: 'chrome',
'goog:chromeOptions': {
args: ['headless', 'no-sandbox'],
args: ['headless', 'no-sandbox', 'hide-scrollbars'],
binary: CHROME_BINARY_PATH
}
},
Expand Down
1 change: 1 addition & 0 deletions test/func/tests/common-gui/index.hermione.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ describe('GUI mode', () => {
);

await retryButton.click();
await retryButton.waitForClickable({reverse: true, timeout: 10000});
await retryButton.waitForClickable({timeout: 10000});

// Verify green retry button
Expand Down
12 changes: 9 additions & 3 deletions test/func/tests/common/test-results-appearance.hermione.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
const {getTestSectionByNameSelector, getImageSectionSelector, getTestStateByNameSelector, getElementWithTextSelector, hideHeader} = require('../utils');
const {
getTestSectionByNameSelector,
getImageSectionSelector,
getTestStateByNameSelector,
getElementWithTextSelector,
hideHeader
} = require('../utils');

describe('Test results appearance', () => {
beforeEach(async ({browser}) => {
Expand Down Expand Up @@ -66,7 +72,7 @@ describe('Test results appearance', () => {
);

await hideHeader(browser);
await browser.execute(() =>{
await browser.execute(() => {
window.scrollTo(0, 10000);
});

Expand Down Expand Up @@ -122,7 +128,7 @@ describe('Test results appearance', () => {
});
});

describe('Test with successful describe and error', () => {
describe('Test with successful assertView and error', () => {
it('should display error message, name and stack', async ({browser}) => {
for (const field of ['message', 'name', 'stack']) {
const errorMessage = browser.$(
Expand Down
Binary file modified test/func/tests/screens/07c99c0/chrome/retry-switcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/func/tests/screens/5c90021/chrome/basic plugins.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/func/tests/screens/67cd8d8/chrome/retry-switcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/func/tests/screens/be4ff5b/chrome/basic plugins clicked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/func/tests/screens/c0db305/chrome-pwt/details summary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/func/tests/screens/c0db305/chrome/details summary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/func/tests/screens/d8c5b8a/chrome/redux plugin clicked.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/func/tests/screens/d90f7de/chrome-pwt/retry-selector.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/func/tests/screens/d90f7de/chrome/retry-selector.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c097402

Please sign in to comment.