feat(e2e): add a job to run e2e on linux os (#2796)
This commit is contained in:
@@ -203,7 +203,7 @@ module.exports = {
|
||||
RESOURCES_PATH: userDataDir,
|
||||
},
|
||||
executablePath: electronBinaryPath,
|
||||
args: [`${path.join(sourceRootDir, 'dist')}`, `--user-data-dir=${userDataDir}`, '--disable-dev-mode', ...args],
|
||||
args: [`${path.join(sourceRootDir, 'dist')}`, `--user-data-dir=${userDataDir}`, '--disable-dev-mode', '--no-sandbox', ...args],
|
||||
};
|
||||
|
||||
// if (process.env.MM_DEBUG_SETTINGS) {
|
||||
@@ -246,18 +246,14 @@ module.exports = {
|
||||
},
|
||||
|
||||
async loginToMattermost(window) {
|
||||
await window.waitForSelector('#input_loginId');
|
||||
await window.waitForSelector('#input_password-input');
|
||||
await window.waitForSelector('#saveSetting');
|
||||
|
||||
// Do this twice because sometimes the app likes to load the login screen, then go to Loading... again
|
||||
await asyncSleep(1000);
|
||||
await window.waitForSelector('#input_loginId');
|
||||
await window.waitForSelector('#input_password-input');
|
||||
await window.waitForSelector('#saveSetting');
|
||||
|
||||
await window.type('#input_loginId', 'user-1');
|
||||
await window.type('#input_password-input', 'SampleUs@r-1');
|
||||
await window.type('#input_loginId', 'sysadmin');
|
||||
await window.type('#input_password-input', 'Sys@dmin123');
|
||||
await window.click('#saveSetting');
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user