You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to write a playwright test for a Theia based electron app. The first test itself works alright but there's a problem in the background and it throws errors like these:
Error: TypeError: Cannot read properties of undefined (reading 'require')
at <anonymous>:1:20
at /home/vivien/projects/martini-ide/node_modules/dugite-extra/lib/core/git.js:201:43
at step (/home/vivien/projects/martini-ide/node_modules/dugite-extra/lib/core/git.js:59:23)
at Object.next (/home/vivien/projects/martini-ide/node_modules/dugite-extra/lib/core/git.js:40:53)
at /home/vivien/projects/martini-ide/node_modules/dugite-extra/lib/core/git.js:34:71
at new Promise (<anonymous>)
at __awaiter (/home/vivien/projects/martini-ide/node_modules/dugite-extra/lib/core/git.js:30:12)
at git (/home/vivien/projects/martini-ide/node_modules/dugite-extra/lib/core/git.js:199:12)
at /home/vivien/projects/martini-ide/node_modules/@theia/git/lib/node/dugite-git.js:546:34
at /home/vivien/projects/martini-ide/e2e-tests/<anonymous>:1:20
at /home/vivien/projects/martini-ide/node_modules/dugite-extra/lib/core/git.js:201:43
at step (/home/vivien/projects/martini-ide/node_modules/dugite-extra/lib/core/git.js:59:23)
at Object.next (/home/vivien/projects/martini-ide/node_modules/dugite-extra/lib/core/git.js:40:53)
at /home/vivien/projects/martini-ide/node_modules/dugite-extra/lib/core/git.js:34:71
at __awaiter (/home/vivien/projects/martini-ide/node_modules/dugite-extra/lib/core/git.js:30:12)
at git (/home/vivien/projects/martini-ide/node_modules/dugite-extra/lib/core/git.js:199:12)
at /home/vivien/projects/martini-ide/node_modules/@theia/git/lib/node/dugite-git.js:546:34
Error: TypeError: Cannot read properties of undefined (reading 'require')
at <anonymous>:1:20
at setupEnvironment (/home/vivien/projects/martini-ide/node_modules/dugite-no-gpl/build/lib/git-environment.js:72:26)
at /home/vivien/projects/martini-ide/node_modules/dugite-no-gpl/build/lib/git-process.js:87:81
at new Promise (<anonymous>)
at GitProcess.execTask (/home/vivien/projects/martini-ide/node_modules/dugite-no-gpl/build/lib/git-process.js:82:34)
at GitProcess.exec (/home/vivien/projects/martini-ide/node_modules/dugite-no-gpl/build/lib/git-process.js:60:21)
at /home/vivien/projects/martini-ide/node_modules/dugite-extra/lib/core/git.js:233:69
at step (/home/vivien/projects/martini-ide/node_modules/dugite-extra/lib/core/git.js:59:23)
at Object.next (/home/vivien/projects/martini-ide/node_modules/dugite-extra/lib/core/git.js:40:53)
at fulfilled (/home/vivien/projects/martini-ide/node_modules/dugite-extra/lib/core/git.js:31:58)
at /home/vivien/projects/martini-ide/e2e-tests/<anonymous>:1:20
at setupEnvironment (/home/vivien/projects/martini-ide/node_modules/dugite-no-gpl/build/lib/git-environment.js:72:26)
at /home/vivien/projects/martini-ide/node_modules/dugite-no-gpl/build/lib/git-process.js:87:81
at GitProcess.execTask (/home/vivien/projects/martini-ide/node_modules/dugite-no-gpl/build/lib/git-process.js:82:34)
at GitProcess.exec (/home/vivien/projects/martini-ide/node_modules/dugite-no-gpl/build/lib/git-process.js:60:21)
at /home/vivien/projects/martini-ide/node_modules/dugite-extra/lib/core/git.js:233:69
at step (/home/vivien/projects/martini-ide/node_modules/dugite-extra/lib/core/git.js:59:23)
at Object.next (/home/vivien/projects/martini-ide/node_modules/dugite-extra/lib/core/git.js:40:53)
at fulfilled (/home/vivien/projects/martini-ide/node_modules/dugite-extra/lib/core/git.js:31:58)
The errors are not always the same, sometimes it's an error related to the plugin API.
Did anyone else encounter something similar and knows how to resolve it?
I run the tests via playwright test --config=./configs/playwright.config.ts and the config is:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm trying to write a playwright test for a Theia based electron app. The first test itself works alright but there's a problem in the background and it throws errors like these:
The errors are not always the same, sometimes it's an error related to the plugin API.
Did anyone else encounter something similar and knows how to resolve it?
I run the tests via
playwright test --config=./configs/playwright.config.ts
and the config is:The app loading:
Beta Was this translation helpful? Give feedback.
All reactions