Commit graph

69 commits

Author SHA1 Message Date
Daniel Espino García
f963855875
Fix Find channels not being interactable (#8794)
* Fix Find channels not being interactable

* fix(e2e): Uncomment find channel tests

* Fix tsc

* Use platform select

---------

Co-authored-by: yasserfaraazkhan <attitude3cena.yf@gmail.com>
2025-04-29 13:56:22 +02:00
Jesse Hallam
e3e4fe245c
Fix direct message screen showing deactivated accounts (#8795)
* Fix direct message screen showing deactivated accounts

Fixes MM-63374. The create direct message screen was showing deactivated accounts in the user list. Fixed by:
1. Setting allow_inactive: false in userSearchFunction when searching profiles
2. Setting active: true in userFetchFunction when fetching profiles
3. Added a test to verify that deactivated users don't appear in the search results

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Fix test for deactivated users in DM creation screen

Updated the test to properly handle quotation marks that differ between CI and local environments.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-04-25 10:22:41 -03:00
yasser khan
3cbde1663d
E2E feature schedule posts (#8709)
- Fix iOS and Android CI.
- Fixes E2E tests on both platform
- Added tests for scheduled draft feature.
2025-04-23 12:10:37 +05:30
Jesse Hallam
15f59b7eee
[MM-63728] Add license load metric to About screen (#8769)
* Add license load metric to About screen

- Add REST endpoint to fetch license load percentage
- Display load metric in About screen next to server version

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

* MM-63728: Address PR feedback from enahum

- Move license load metric fetch to a remote action
- Use isMinimumServerVersion to check for server 10.8.0 or higher

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* MM-63728: Simplify getLicenseLoadMetric to directly return number

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* MM-63728: Move getLicenseLoadMetric to dedicated license.ts file

- Create new remote action file specifically for license-related functions
- Add test file for the license actions
- Update imports in about.tsx

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* MM-63728: Remove redundant license check in about.tsx

- Rely on getLicenseLoadMetric to handle the license check

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* MM-63728: Update E2E tests for license load metric

- Add license load metric test IDs to about screen
- Update E2E test to check for load metric when license is enabled
- Handle cases where server might not support the feature

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* recover app/actions/remote/general.ts

* MM-63728: Return error from getLicenseLoadMetric instead of silent failure

- Remove silent failure and debug logging
- Return the error object when API call fails
- Update the About component to handle possible error responses
- Update tests to verify error handling

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* MM-63728: Remove groupLabel parameter from getLicenseLoadMetric

- Remove groupLabel parameter from client getLicenseLoadMetric method in interface and implementation
- Update client tests to reflect the parameter removal
- Update license action test to verify no parameter is passed

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* simplify about screen checks

* MM-63728: Use jest.mocked and real version checks in license tests

- Removed isMinimumServerVersion mock, letting tests use real version checking
- Used proper type casting for mock Client
- Added comprehensive version compatibility test cases
- Simplified test setup

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* MM-63728: Remove redundant server version test

- Removed redundant test for different server versions
- Existing tests already cover the necessary version compatibility cases

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* MM-63728: Refactor license test to use better mocking pattern

- Refactored the test file to use a better mocking pattern similar to custom_emoji.test.ts
- Simplified mock declarations using jest.mock()
- Added type import for Client for better readability
- Improved type casting for mock objects

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* npm run fix

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-04-17 17:29:47 -03:00
yasser khan
9976cacec4
Add ability to run detox tests on Android (#8553) 2025-02-14 01:26:53 +05:30
yasserfaraazkhan
2830d06fc2
E2E: Mobile Drafts tests cases (#8469) 2025-01-22 04:02:14 +05:30
Jesse Hallam
6f381cfcf5
MM-53775: hide Thread Overview until a reply occurs (#8316) 2024-11-06 13:01:42 -04:00
lindalumitchell
35b68654f7
Update autocomplete.e2e.ts (#8231)
Removed references to now-closed issue https://mattermost.atlassian.net/browse/MM-50351
2024-09-23 21:21:15 -07:00
lindalumitchell
8e27dcacec
Update message_reply.e2e.ts (#8225)
Remove outdated note ` -- KNOWN ISSUE: MM-50206`
2024-09-18 17:29:44 +08:00
lindalumitchell
152cdc5130
Update message_draft.e2e.ts (#8224)
Removed reference to fixed issue ` -- KNOWN ISSUE: MM-50298`.
2024-09-18 17:28:31 +08:00
yasserfaraazkhan
f46ddb49d0
Add workflow to run detox iOS tests (#7878) 2024-06-04 22:42:58 +05:30
Saturnino Abril
1121cca649
CLD-5949 Upgrade Detox and E2E dependencies (#7553)
* upgrade detox and e2e dependencies

* update detox in main package.json

* remove inadvertent addition of "react-devtools"

* remove inadvertent addition of "react-devtools"
2023-09-27 15:56:34 +08:00
Sudhanva-Nadiger
37b245d461
Feat: add copy to clipboard button in "about" mattermost page (#7134)
* feat: add copy to clip board button in about page

* add intl format text

* make suggested changes.

- fix: wrap copyToClipBoard function in useCallBack
- remove annonymous function onPress, provide function pointer
- make code readable in copyToClipBoard function

* formatting

* small fix

* change copy to clipboard position

- created a custom button eith icon and text
- usd button theme color

* button styling

* divider color

* use predefined btn element

* Add e2e test for copy info button

* feat: refactor the styles for thin lines

- fix: change touchable opacity to view
- add margin top to footer text

* change icon size to 15

* remove unnecessary view

* add config to dependency of callback

* suggeste changes on onClick func

* modified en.json file after running i18-extract

* Improve translations

* Address feedback

* Fix non updated default messages

---------

Co-authored-by: Daniel Espino García <larkox@gmail.com>
2023-07-26 09:00:06 -04:00
Saturnino Abril
0c7500eb84
fix(e2e): use AOSP Android emulator for Detox test (#7440) 2023-07-10 10:30:36 -04:00
Elisabeth Kulzer
fcb1db660c
Detox android fix smoke tests (#7193)
* Detox: Android - fix smoke tests.

* Detox: Android - Fix latency related tests.

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-03-11 13:08:17 +01:00
Elisabeth Kulzer
07aa748cd7
Detox: Android fix MM-T4728_2 - should match elements on channel list… (#7156)
* Detox: Android fix MM-T4728_1 - should match elements on channel list screen

* Address comments

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-03-07 21:26:33 +01:00
Elisabeth Kulzer
6454a19a37
Detox: Android - fix invite ppl. (#7162)
* Detox: Android - fix invite ppl.

* Remove config modifications.

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-03-03 19:04:19 +01:00
Elisabeth Kulzer
27d7875dd7
Detox: Android - fix smoke server login test (#7157)
* Detox: Android - fix smoke server login test
---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2023-02-28 17:14:07 +01:00
Elisabeth Kulzer
c6dc00e4df Fix connect to server 2023-02-23 12:17:37 +01:00
Joseph Baylon
2b1e9852f4 Update jira number for known issue 2023-02-09 09:40:32 +01:00
Joseph Baylon
32fbc01d03 Misc fixes for android 2023-02-09 09:40:32 +01:00
Joseph Baylon
53b834d702 Fix edit_profile.e2e 2023-02-09 09:40:32 +01:00
Joseph Baylon
3566a4e8ce Fix smoke test e2e for android 2023-02-09 09:40:32 +01:00
Joseph Baylon
f3c578c7ae Fix threads e2e for android 2023-02-09 09:40:32 +01:00
Joseph Baylon
ee477c16fa Fix server login e2e for android 2023-02-09 09:40:32 +01:00
Joseph Baylon
3538205f81 Fix search e2e for android 2023-02-09 09:40:32 +01:00
Joseph Baylon
2ebfa0230e Fix messaging e2e for android 2023-02-09 09:40:32 +01:00
Joseph Baylon
658b35b6ad Fix channels e2e for android 2023-02-09 09:40:32 +01:00
Joseph Baylon
e8ad89861d Fix account e2e for android 2023-02-09 09:40:32 +01:00
Joseph Baylon
bda9b10d7d Revert react reload inside beforeAll 2023-02-09 09:40:32 +01:00
Joseph Baylon
94b5bc65e7 Detox Maintenance: Fix failing android e2e 2023-02-09 09:40:32 +01:00
Joseph Baylon
70bdfcf8fd
Detox Maintenance: Update deps, fix import, fix failing tests -- iOS only (#7070)
* Detox Maintenance: Update deps, fix import, fix failing tests

* Revert message reply step 3

* Try fresh install per test file
2023-02-01 08:32:57 -08:00
Julian Mondragon
5816406040 Merge branch 'main' of https://github.com/mattermost/mattermost-mobile into MM-42835 2023-01-15 16:40:21 -05:00
Joseph Baylon
d465edefc3
Detox Maintenance: Skip tests that are unstable and cleanup known issues (#6931)
* Detox Reporting: Prepare for release and main

* Fix lint in switch

* Detox Maintenance: Skip unstable tests

* Skipped unstable and known issue tests

* Fix inline latex test

* Remove skipped from failures

* Remove unnecessary report failure

* Remove assert import

* Remove FAILURE_MESSAGE

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2023-01-05 14:43:09 -08:00
Julian Mondragon
5bf0bbbea0 Merge branch 'main' of https://github.com/mattermost/mattermost-mobile into MM-42835 2023-01-03 09:24:09 -05:00
Joseph Baylon
dd60257364
Detox/E2E Maintenance: Fix broken iOS e2e tests (#6917) 2022-12-30 14:01:24 -08:00
Joseph Baylon
51f07df074 Stabilize smoke test threads e2e 2022-12-20 13:53:45 -08:00
Julian Mondragon
38f1f0b1a5 MM-42835_Invite People - add email+user invites 2022-12-16 14:05:35 -05:00
Julian Mondragon
a476b53d5f MM-42835_Invite People - add email+user invites 2022-12-16 10:45:48 -05:00
Joseph Baylon
56d2d57291 Detox/E2E Maintenance: Fix broken iOS e2e tests 2022-12-15 14:47:33 -08:00
Joseph Baylon
bcca6be0af
Detox/E2E: Search Messages e2e tests in Gekidou (#6756)
* Detox/E2E: Search Messages e2e tests in Gekidou

* Migrate to Detox 20

* Fix detoxrc

* Fix assertion for search messages
2022-11-21 12:58:51 -08:00
Julian Mondragon
c9a133b39b MM-39720_Invite People - phase 1
Set zephyr test case
2022-11-01 09:43:03 -05:00
Julian Mondragon
647cd4c9c2 MM-39720_Invite People - phase 1 2022-10-31 18:12:03 -05:00
Joseph Baylon
084d342e1d
Detox/E2E: Verification fixes and added a step to post message on direct messages (#6664)
* Detox/E2E: Minor fixes and added known issue tag

* Add step to post message on direct message
2022-10-14 10:25:38 -07:00
Joseph Baylon
fa923a7dfd
Detox/E2E: Modify reporting according to sharding (#6663) 2022-10-13 15:59:42 -07:00
Joseph Baylon
5b14d31245 Fixed/stabilized tests; added new known issue tickets 2022-08-26 09:28:14 -07:00
Joseph Baylon
8d7b15da51 Detox/E2E: Edit Profile, Custom Status, and Settings e2e tests in Gekidou 2022-08-25 17:42:41 -07:00
Joseph Baylon
25ae8fdb88
Detox/E2E: Account e2e tests in Gekidou (#6584)
* Detox/E2E: Account e2e tests in Gekidou

* Fix suite title

* Changed ldap port to number

* Fix testIDs for settings

* Added zephyr test case keys
2022-08-18 03:18:46 -07:00
Joseph Baylon
1781477bc6
Detox/E2E: Convert to private channel e2e tests in Gekidou (#6563)
* Detox/E2E: Convert to private channel e2e tests in Gekidou

* Fix tests

* Fix typo

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2022-08-15 13:07:19 -07:00
Joseph Baylon
dc1bc147e7 Detox/E2E: Fix global threads and unarchive channel tests 2022-08-01 14:13:57 -07:00