Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated steps to get e2e working #1431

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Updated steps to get e2e working #1431

wants to merge 1 commit into from

Conversation

Willyfrog
Copy link
Contributor

Summary

There were some missing steps and some old names that needed updating

Ticket Link

https://hub.mattermost.com/private-core/pl/en363orkeprwpjkti3io65etww

Copy link

Newest code from mattermost has been published to preview environment for Git SHA 2a6aead

1. In one terminal window, run `npm run ios` from the root folder.
2. In another terminal window, run `npm i` then `npm run e2e:ios-test` from the `/detox` folder.
1. In one terminal window, from the root folder run `npm run start` and on another `npm run ios` from the root folder.
2. Once the build is complete and installed, there will be a message informing of the path where the app is installed. Copy that path
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be good to have a few lines of the output. You can redact your mac username here.

3. Edit `/detox/.detoxrc` and
- In **apps > ios.debug**, substitute `binaryPath` by that value.
- In **devices > ios.simulator > device**, substitute `type` and `os` with the values corresponding to the ones being used by the simulator. If unsure wich ones, either open the simulator or go to Xcode to see where it is being built.
4. Export the values for `ADMIN_USERNAME` and `ADMIN_PASSWORD` with the appropiate values for your test server. Check the Environment Variables section below to learn more about default values and other variables available.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about adding code snippet:

export SITE_1_URL=http://your-test-server.com
export ADMIN_USERNAME=admin
export ADMIN_PASSWORD=some-admin-password

- In **apps > ios.debug**, substitute `binaryPath` by that value.
- In **devices > ios.simulator > device**, substitute `type` and `os` with the values corresponding to the ones being used by the simulator. If unsure wich ones, either open the simulator or go to Xcode to see where it is being built.
4. Export the values for `ADMIN_USERNAME` and `ADMIN_PASSWORD` with the appropiate values for your test server. Check the Environment Variables section below to learn more about default values and other variables available.
5. In another terminal window, run `npm i` then `npm run e2e:ios-test` from the `/detox` folder.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same thing:

cd detox
npm i
npm run e2e:ios-test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants