
* Fix bad path name for user data dir, upgrade node-abi * Run windows e2e * Enable Windows tests and fix linux e2e crash * chore: remove redundant dependencies and environment variables in e2e workflow * fix: resolve Linux GPU process initialization errors in GitHub Actions * Fix linux tests * Fix lint * fix: Enhance GPU handling to prevent process crashes in E2E tests This commit addresses GPU-related stability issues in our E2E test environment by: 1. Updating GPU helper utility with more comprehensive disabling methods 2. Adding environment variables to force software rendering 3. Configuring Electron to use in-process GPU rendering 4. Adding additional Linux dependencies for better GPU support 5. Expanding command-line flags to mitigate GPU process crashes The changes include modifications to: - e2e/utils/gpu-helper.js - e2e/modules/environment.js - .github/workflows/e2e-functional-template.yml - .github/actions/install-os-dependencies/action.yaml * Fix linux tests * Fix linux tests * Fix linux tests * Fix linux tests * Fix linux tests * Revert "chore: remove redundant dependencies and environment variables in e2e workflow" This reverts commit 6a8eb0cbee155c3fd3f26df8d45af8c1f5cf2f12. * run tests with xvfb-run --auto-servernum * change ubuntu-runner to use latest * change ubuntu-runner to use 24.04 version * fix linux tests * fix linux tests * add preload test script * add preload test script * add preload test script * update preload script * reset all changes made to fix linux e2e error * reset all changes made to fix linux e2e error * reset all changes made to fix linux e2e error * fix linux package instalation * fix chrome sandbox permission issue * bump electron version to 36.1.0 * Revert "bump electron version to 36.1.0" This reverts commit 4a9bf858754c0c1909b3626f703578913adf3714. * install dbus and declare DBUS_SYSTEM_BUS_ADDRESS * fix dbus error * fix dbus error * fix dbus error * fix dbus error * fix: Try the community suggestion - https://github.com/actions/runner-images/issues/12127#issuecomment-2854346891 * change libasound2 to libasound2t64 * use gcc-12-aarch64-linux-gnu instead of gcc-aarch64-linux-gnu * remove multilib * fix xvfb crash * fix: add PW_CHROMIUM_ARGS * fix: add --disable-gpu-sandbox to the e2e run command * fix: windows job * pass version to electron rebuild * fix post install script under /e2e * Revert "fix post install script under /e2e" This reverts commit 01efeed2e5038684c0aea5bb0be837b7041be8ca. * skip postinstall scipt for windows job * hardcode electron version in the e2e/package.json * update script * Revert "update script" This reverts commit 078d197e44dc78972876a977f4a91182d89024b6. * update script * reset * upgrade electron/rebuild package * Revert "upgrade electron/rebuild package" This reverts commit 25b144df05152b0bc112db6473263bfd68850874. * Patch electron/rebuild * Fix macOS test --------- Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com> Co-authored-by: Mattermost Build <build@mattermost.com>
46 lines
1.6 KiB
JSON
46 lines
1.6 KiB
JSON
{
|
|
"name": "desktop-e2e",
|
|
"version": "1.0.0",
|
|
"description": "E2E tests for the Desktop App",
|
|
"main": "dist/e2e_bundle.js",
|
|
"scripts": {
|
|
"clean": "rm -rf dist/ mochawesome-report/ node_modules/ testUserData/",
|
|
"run:e2e": "npm run build && npm run test",
|
|
"build": "webpack-cli --config webpack.config.js",
|
|
"build:performance": "webpack-cli --config webpack.config.performance.js",
|
|
"test": "electron-mocha --no-sandbox --disable-gpu-sandbox --reporter mochawesome dist/e2e_bundle.js",
|
|
"test:performance": "electron-mocha --reporter json --reporter-option output=./performance/perf-test-report.json dist/e2e_bundle.js",
|
|
"send-report": "node ./save_report.js",
|
|
"postinstall": "patch-package && cross-env CL='/std:c++17' electron-rebuild -m ./node_modules/robotjs"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+ssh://git@github.com/mattermost/desktop.git"
|
|
},
|
|
"author": "Mattermost, Inc. <feedback@mattermost.com>",
|
|
"license": "Apache-2.0",
|
|
"bugs": {
|
|
"url": "https://github.com/mattermost/desktop/issues"
|
|
},
|
|
"homepage": "https://github.com/mattermost/desktop#readme",
|
|
"dependencies": {
|
|
"@aws-sdk/client-s3": "3.758.0",
|
|
"@aws-sdk/lib-storage": "3.758.0",
|
|
"@electron/rebuild": "4.0.0",
|
|
"axios": "1.9.0",
|
|
"chai": "5.2.0",
|
|
"electron-mocha": "13.1.0",
|
|
"fast-xml-parser": "^4.4.1",
|
|
"mochawesome": "7.1.3",
|
|
"nan": "2.22.2",
|
|
"node-abi": "4.5.0",
|
|
"playwright": "1.52.0",
|
|
"ps-node": "0.1.6",
|
|
"recursive-readdir": "2.2.3",
|
|
"robotjs": "0.6.0"
|
|
},
|
|
"devDependencies": {
|
|
"mochawesome-report-generator": "^6.2.0"
|
|
}
|
|
}
|