[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/
|
.vscode/
|
||||||
e2e/docker/rc_test_env/docker-compose.yml
|
e2e/docker/rc_test_env/docker-compose.yml
|
||||||
e2e/docker/data/db
|
e2e/docker/data/db
|
||||||
|
e2e/e2e_account.js
|
||||||
|
|
||||||
*.p8
|
*.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).
|
* 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`:
|
* Edit `e2e/data.js`:
|
||||||
* Set the `server` to the address of the server under test
|
* 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
|
* 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
|
### 3. Running tests
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
const random = require('./helpers/random');
|
const random = require('./helpers/random');
|
||||||
|
// eslint-disable-next-line import/no-unresolved
|
||||||
|
const account = require('./e2e_account');
|
||||||
|
|
||||||
const value = random(20);
|
const value = random(20);
|
||||||
const data = {
|
const data = {
|
||||||
server: 'https://mobile.rocket.chat',
|
server: 'https://mobile.rocket.chat',
|
||||||
adminUser: 'e2e_admin',
|
...account,
|
||||||
adminPassword: 'p7mFh4yLwCRXSnMvG',
|
|
||||||
alternateServer: 'https://stable.rocket.chat',
|
alternateServer: 'https://stable.rocket.chat',
|
||||||
users: {
|
users: {
|
||||||
regular: {
|
regular: {
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
// eslint-disable-next-line import/no-unresolved
|
// eslint-disable-next-line import/no-unresolved
|
||||||
const random = require('./helpers/random');
|
const random = require('./helpers/random');
|
||||||
|
// eslint-disable-next-line import/no-unresolved
|
||||||
|
const account = require('./e2e_account');
|
||||||
|
|
||||||
const value = random(20);
|
const value = random(20);
|
||||||
const data = {
|
const data = {
|
||||||
server: 'https://mobile.rocket.chat',
|
server: 'https://mobile.rocket.chat',
|
||||||
adminUser: 'e2e_admin',
|
...account,
|
||||||
adminPassword: 'p7mFh4yLwCRXSnMvG',
|
|
||||||
alternateServer: 'https://stable.rocket.chat',
|
alternateServer: 'https://stable.rocket.chat',
|
||||||
users: {
|
users: {
|
||||||
regular: {
|
regular: {
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
const account = {
|
||||||
|
adminUser: 'Change_here',
|
||||||
|
adminPassword: 'Change_here'
|
||||||
|
};
|
||||||
|
|
||||||
|
module.exports = account;
|
Loading…
Reference in New Issue