[FIX] Hardcoded E2E password for Detox workflow (#3809)
* [FIX] Removed account from E2E Data and create a file responsible for this account * Updated e2e/README.md * minor tweak * Update e2e/README.md Co-authored-by: Gerzon Z. <gerzonzcanario@gmail.com> Co-authored-by: Gerzon Z. <gerzonzcanario@gmail.com>
This commit is contained in:
parent
b7e523a267
commit
8a01552b4b
|
@ -64,5 +64,6 @@ artifacts
|
|||
.vscode/
|
||||
e2e/docker/rc_test_env/docker-compose.yml
|
||||
e2e/docker/data/db
|
||||
e2e/e2e_account.js
|
||||
|
||||
*.p8
|
|
@ -28,7 +28,7 @@ Or
|
|||
* If you're running your own Rocket.Chat server, ensure it's started (e.g. `meteor npm start` in the server project directory).
|
||||
* Edit `e2e/data.js`:
|
||||
* Set the `server` to the address of the server under test
|
||||
* Set the `adminUser` and `adminPassword` to an admin user on that environment (or a user with at least `create-user` and `create-c`).
|
||||
* Create a file called `e2e_account.js`, in the same folder as `data.js`. Set the `adminUser` and `adminPassword` to an admin user on that environment (or a user with at least `create-user` and `create-c` permissions). The example of how to create this file is on `e2e/e2e_account.example.js`
|
||||
* Working example configs exist in `./e2e/data/`. Setting `FORCE_DEFAULT_DOCKER_DATA` to `1` in the `runTestsInDocker.sh` script will use the example config automatically
|
||||
|
||||
### 3. Running tests
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
const random = require('./helpers/random');
|
||||
// eslint-disable-next-line import/no-unresolved
|
||||
const account = require('./e2e_account');
|
||||
|
||||
const value = random(20);
|
||||
const data = {
|
||||
server: 'https://mobile.rocket.chat',
|
||||
adminUser: 'e2e_admin',
|
||||
adminPassword: 'p7mFh4yLwCRXSnMvG',
|
||||
...account,
|
||||
alternateServer: 'https://stable.rocket.chat',
|
||||
users: {
|
||||
regular: {
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
// eslint-disable-next-line import/no-unresolved
|
||||
const random = require('./helpers/random');
|
||||
// eslint-disable-next-line import/no-unresolved
|
||||
const account = require('./e2e_account');
|
||||
|
||||
const value = random(20);
|
||||
const data = {
|
||||
server: 'https://mobile.rocket.chat',
|
||||
adminUser: 'e2e_admin',
|
||||
adminPassword: 'p7mFh4yLwCRXSnMvG',
|
||||
...account,
|
||||
alternateServer: 'https://stable.rocket.chat',
|
||||
users: {
|
||||
regular: {
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
const account = {
|
||||
adminUser: 'Change_here',
|
||||
adminPassword: 'Change_here'
|
||||
};
|
||||
|
||||
module.exports = account;
|
Loading…
Reference in New Issue