mattermost / mattermost

Mattermost is an open source platform for secure collaboration across the entire software development lifecycle..
https://mattermost.com
Other
30.66k stars 7.35k forks source link

Write Mobile App E2E test with Detox: "MM-T3206 Edit private channel" #15709

Closed saturninoabril closed 3 years ago

saturninoabril commented 4 years ago

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

MM-T3206 Edit private channel

Steps

Edit private channel
————————————————————————————
  1. On a private channel where policy allows you to edit channel header etc., tap a channel name
  2. Tap `Edit Channel`, verify Save button is dimmed until changes are made
  3. Add text to the channel name
  4. Type text in Purpose field
  5. Type text in Header field and tap Return to get new line
  6. Tap a second line of text
  7. Tap Save

Expected

  • Edit modal closes, channel info is displayed
  • The changes you made are displayed

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

describe('Smoke Tests', () => {
    it('MM-T3206 Edit private 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.

josephbaylon commented 3 years ago

Detox PR: https://github.com/mattermost/mattermost-mobile/pull/5352