mattermost-mobile/detox/e2e/support/server_api
Joseph Baylon f495e1e48d
MM-30289 Detox/E2E - Add e2e tests for MM-T3184 and MM-T3186 (#5133)
* MM-30289 Detox/E2E - Add e2e tests for MM-T3184 and MM-T3186

* Update detox/e2e/support/server_api/preference.js

Co-authored-by: Saturnino Abril <saturnino.abril@gmail.com>

* MM-31322: redirect permalink handler (#5136)

* invert loadTeam.error test

* MM-31322: handle _redirect permalinks

In the webapp, [there is support](7c5a2e3bfd/components/root/root.jsx (L345-L352)) for a special `_redirect` team name in certain contexts that simply means, "the current team". It's used in the context of redirecting to the integrations backstage (not relevant for mobile), for also for resolving post permalinks.

This simplifies certain kinds of integrations which no longer have to know a team name to render a permanent link to a post. An example link looks like:

    http://localhost:8065/_redirect/pl/e3sxrxtwh78jmxawsaqfemxoew

This PR adds support for same in mobile, unintentionally missed on the first round of implementation.

Fixes: https://mattermost.atlassian.net/browse/MM-31322

* Apply suggestions from code review

Co-authored-by: Joseph Baylon <joseph.baylon@mattermost.com>

* linting issues

* Apply suggestions from code review

Co-authored-by: Joseph Baylon <joseph.baylon@mattermost.com>

* revert showPermalink changes

* Revert "invert loadTeam.error test"

This reverts commit accf6c8fb7c56009a393a6e85084d4702deec9ed.

* support _redirect deeplinks

* Apply suggestions from code review

* Update app/components/post_list/index.js

Co-authored-by: Joseph Baylon <joseph.baylon@mattermost.com>

Co-authored-by: Saturnino Abril <saturnino.abril@gmail.com>
Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
2021-02-10 13:55:00 -08:00
..
channel.js MM-30289 Detox/E2E - Add e2e tests for MM-T3184 and MM-T3186 (#5133) 2021-02-10 13:55:00 -08:00
client.js E2E: Initial Detox setup for Mobile UI automation (#4535) 2020-08-29 07:18:41 +08:00
common.js MM-T3180 Detox/E2E for LDAP login (#4863) 2020-10-13 19:13:51 +08:00
default_config.json E2E: Initial Detox setup for Mobile UI automation (#4535) 2020-08-29 07:18:41 +08:00
index.js MM-31272 Detox/E2E - Add e2e test for MM-T3646 (#5092) 2021-01-11 17:10:59 +08:00
ldap.js MM-T3180 Detox/E2E for LDAP login (#4863) 2020-10-13 19:13:51 +08:00
post.js MM-30286 Detox/E2E: Add e2e test for MM-T3222 and some cleanup (#4959) 2020-11-17 10:52:03 -08:00
preference.js MM-30289 Detox/E2E - Add e2e tests for MM-T3184 and MM-T3186 (#5133) 2021-02-10 13:55:00 -08:00
setup.js make error handling on unreachable server to be explicit (#4852) 2020-10-08 11:19:29 -03:00
system.js MM-T3180 Detox/E2E for LDAP login (#4863) 2020-10-13 19:13:51 +08:00
team.js MM-18769 Removed deprecated lifecycles (#4983) 2020-12-02 12:37:04 -08:00
user.js MM-31272 Detox/E2E - Add e2e test for MM-T3646 (#5092) 2021-01-11 17:10:59 +08:00