Skip to content

Commit d18c708

Browse files
committed
fix: HAR replay test assertion and Electron sandbox error
- Update HAR replay test to check for actual page content 'Render a List of Fruits' - Add --no-sandbox flag to Electron args to fix chrome-sandbox SUID permission error in CI
1 parent ac55d77 commit d18c708

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/helper/Playwright_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,7 +1578,7 @@ describe('Playwright - Electron', function () {
15781578
browser: 'electron',
15791579
electron: {
15801580
executablePath: electron,
1581-
args: [path.join(global.codecept_dir, '/electron/')],
1581+
args: ['--no-sandbox', path.join(global.codecept_dir, '/electron/')],
15821582
},
15831583
})
15841584
try {
@@ -1968,7 +1968,7 @@ describe('Playwright - HAR', () => {
19681968
const harFile = './test/data/sandbox/testHar.har'
19691969
await I.replayFromHar(harFile, { url: '*/**/api-mocking' })
19701970
await I.amOnPage('https://demo.playwright.dev/api-mocking')
1971-
await I.see('API Mocking')
1971+
await I.see('Render a List of Fruits')
19721972
})
19731973

19741974
describe('#grabWebElements, #grabWebElement', () => {

0 commit comments

Comments
 (0)