Mattermost-server: Write Mobile App E2E test with Detox: "MM-T3202 Leave public channel"

Created on 1 Oct 2020  ยท  3Comments  ยท  Source: mattermost/mattermost-server

See our documentation for Mobile app end-to-end testing with Detox for reference.

MM-T3202 Leave public channel

Steps #1

Leave public channel
โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”โ€”
  1. Tap on "leave channel"

Expected

  • A message is displayed on screen asking whether or not you want to leave the channel

Steps #2

  1. Tap on "yes"

Expected

  • You should be removed from the channel and be redirected to Town Square
  • If you had tapped on "no", the message should just close and your view remains in channel info

Test Folder: /detox/e2e/test/smoke_tests
Test code arrangement:

describe('Smoke Tests', () => {
    it('MM-T3202 Leave public channel', () => {
        // code
    });
});

Notes:
1. Mobile App E2E requires Mattermost server instance.
- See our documentation on how to run a local server instance.
- If server is running and accessible other than the default http://localhost:8065, you may pass SITE_URL environment variable.
2. The default sysadmin credential is username:"sysadmin" and password:"Sys@dmin-sample1"
- It's automatically generated by make test-data at mattermost-server folder
- If using credential other than the said default, you may pass ADMIN_USERNAME and ADMIN_PASSWORD environment variables.

If you're interested, please comment here and come join our "Contributors" community channel on our daily build server, where you can discuss questions with community members and the Mattermost core team. For technical advice or questions, please join our "Developers" community channel.

New contributors please see our Developer's Guide.

AreE2E Tests Easy Help Wanted TecAutomation Up For Grabs

Most helpful comment

:hand: I would like to work on this.

All 3 comments

:hand: I would like to work on this.

Sorry I will not be able to do it, I turned myself to more Javascript oriented issues. You can add the Up-For-Grabs label again.

@cinlloc No worries and thanks!

Was this page helpful?
0 / 5 - 0 ratings