Commit Graph

54 Commits

Author SHA1 Message Date
Lukáš Tinkl ecc1b5316f fix: community context menu should not say "Leave community" if not joined
- get rid of the `amISectionAdmin` for good (was done only partially in
82a1ed2f7a)
- fix the corresponding storybook pages

Fixes #10963
2023-06-21 11:17:13 +02:00
Anastasiya Semiankevich 40d736aa44 tst_communityManageOverview: add test for Airdrop page navigation from Overview screen 2023-06-06 13:57:07 +03:00
Anastasiya Semiankevich e88369a83e tst_communityManageOverview): add scenario that copies community private key 2023-06-02 23:19:35 +03:00
Vladimir Druzhinin a1f3485f98
Tests fix (#10871)
- "id": "edit" removed in object names
- closing app improves via waiting for close context
- attempts added for unstable actions on UI
- detach application with waiting for process close added
2023-06-02 16:34:09 +02:00
Noelia d4d3a6d669 feat(MintToken): Add `delete` and `retry mint` options when deploy fails
- It refactors `SettingsPageLayout`.
- It adds `retry mint` and `delete` options when deploy process fails.
- It renames `RemotelyDestructAlertPopup` to generic name `AlertPopup`.
2023-06-02 13:15:34 +02:00
Vladimir Druzhinin be1b30f2df
Unstable tests skipped (#10861) 2023-05-30 16:42:55 +02:00
Vladimir Druzhinin 8098775280
test/start multiple app instances added (#10779)
* test/start multiple app instances added  

#10401

* test/Tests on switch user state skipped

#10401
2023-05-30 12:24:04 +02:00
Anastasiya Semiankevich 00bc25e2ec test(suite_communities): move a test to different feature file 2023-05-30 08:58:09 +03:00
Anastasiya Semiankevich 00c8bb6be9 tst(tst_communityManageAirdrops): welcome screen validation test 2023-05-22 18:03:21 +03:00
Anastasiya S 464110a2db tst(tst_communityMintTokens): Mint Tokens welcome screen 2023-05-18 16:04:39 +03:00
Anastasiya S b27954904b tst(tst_communitySettings): enhance settings screen coverage 2023-05-15 12:44:53 +03:00
Vladimir Druzhinin f345334b33
test(fix aut lost connection) hook subprocesses added (#10674) 2023-05-15 10:38:56 +02:00
Anastasiya S 81a79327b6 test(tst_communityPermissions): implement permissions screen validation 2023-05-05 15:48:56 +03:00
Alexandra Betouni 5615a534ea (settings): removed community permissions,tokens,airdrop and discord options
Also:
test(suite_communities): Fixed community related tests

- A new intermediate popup is now displayed when user clicks on `Create New Community` button from `Community Portal`.
- Reformulated `tst_communityPermissions` since now it is a default option without the need of activating it from experimental feature's section.

Closes #10115
2023-04-28 16:52:41 +03:00
Jonathan Rainville db6af0554a fix(chat-model): use setData to set the chat model
Fixes #10384

The problem was that doing the sort inside the insertRows messed up the model.
I removed it and it fixed the issues. However, it created an other issue with ordering.

The problem this time is that when populating the model at the start, we do not get the chats in order, so calculating the right position to insert a chat is difficult.

Instead, I use a setData function to just put all the chats in the items list, sort it and call it done, using the resetModel function.

I also did some clean ups.
2023-04-24 11:06:17 -04:00
Jonathan Rainville 2aa759adcf refactor(section-model): change model to be sorted to fix reorder
Part of #3364

To make the drag and drop reorder work correctly on channels, we needed to change the model again so that it was sorted in the model itself.
That is because the drag and drop gives us the value of the position it is dropped to as a single list, so dragging the second item of the second category would mean from position 5 to position to position 4, but what the backend wants is moving the item 2 to position 1.
Sorting the model enables us to get the category that is the parent of that position and call the service with the right positions and id.
It also enables us to reorder the channel in and out of the category.
See the module code to see how the calculation is done with an explanatory comment.
The model needed some changes to support that. Some of the function where changed from dataChange calls to resetModel calls, since we need to re-sort the model.
I tried using beginMove, but it would crash. Maybe there is a bug in NimQML or I used it badly, I'm not sure.
2023-04-19 12:26:15 -04:00
Jonathan Rainville b45cc15e32 fix(community-tests): fix edit and delete category tests 2023-03-28 09:49:32 -04:00
mprakhov 8d955265dc fix(@desktop/sections): do not unload chat and communities sections during the switching between the sections 2023-03-21 16:44:40 +01:00
Magnus e19f0aa7f7 test(tst_communityPermissions): permissions setting is available
new scenario
2023-03-16 09:20:36 +01:00
Jonathan Rainville 4a0c2c52e6 fix(tests): fix tests that rely on creating a channel
Fixes #8005
Fixes #9287

Fixes creating, editing and deleting a channel because they rely on createChannel, that sometimes fails because the mouse click was off the button.
2023-03-09 13:06:32 -05:00
Jonathan Rainville 40a157a5af fix(test): fix create category test 2023-03-03 16:14:38 -05:00
Jonathan Rainville 7a3144ebfc test(community): re-add mark as read test in community tests
Fixes #9250
2023-02-08 13:46:15 -05:00
Jonathan Rainville 2f3d1fcf46 test(community): re-add sticker test as community test
Fixes #9249
2023-02-08 13:24:50 -05:00
Jonathan Rainville a055929f92 test(community): re-add emoji tests
Fixes #9246 #9247 #9248
2023-02-08 13:19:35 -05:00
Jonathan Rainville a4c8419aa9 test(community): re-add test for mention non existing user
Fixes #9245
2023-02-08 13:12:31 -05:00
Jonathan Rainville 5bb4a3741d test(community): re-add test that does a mention
Fixes #9244
2023-02-08 13:01:53 -05:00
Jonathan Rainville b798b18c18 test(community): re-add a couple of chat tests in community tests
Fixes #9240 #9241 #9242 #9243 #9239
2023-02-08 12:34:58 -05:00
Jonathan Rainville 0bd957e71a test(community): re-add test that replies to another message
Fixes #9238
2023-01-31 16:54:01 -05:00
Jonathan Rainville e54e08d81f test: re-add edit test as a community test
Fixes #9237
2023-01-31 16:52:32 -05:00
Igor Sirotin 6017a01b9a feat(tst_communityNavigation): Implemented community leave test 2023-01-26 19:27:13 +03:00
Noelia 75711aef2e test: Skip broken/unstable tests
Tagged with `@mayfail` some scenarios that seem to be unstable / broken on CI and also locally.
2023-01-25 10:55:39 -05:00
Jonathan Rainville 4a93fa14bc chore(tests_: remove tests that use public chats 2023-01-25 10:05:55 -05:00
mprakhov b7c1250115 Draft: fix check 2023-01-16 14:46:08 +02:00
Jonathan Rainville a0b17c3879 chore: add mayfail on community edit tests 2023-01-05 15:21:38 -05:00
mprakhov 4a5c439160 test(@desktop/community): [suite_communities / tst_communityFlows]
Validate in 'The admin edits a community' test description and color
2023-01-05 14:49:27 +02:00
Jonathan Rainville 235c0d3042 test(community): add a test where the admin can delete a user's message
Fixes #6891
2023-01-04 11:12:47 -05:00
Sale Djenic 735f6e70aa test: add missing `@mayfail` to send image tests 2023-01-04 11:15:58 +01:00
Igor Sirotin e3bfdc0f09 fix(StatusPopupMenu): Refactoring 2022-12-02 10:30:50 +03:00
mprakhov 8f13ad8f93 test(@desktop/chat): Can reply to a message in a community channel 2022-11-28 14:19:00 +02:00
mprakhov 92da7ee9a3 fix(@desktop/test): [suite_communities / tst_communityFlows] - 'The admin changes the emoji of a channel' 2022-11-24 14:50:43 +02:00
Boris Melnik f6458facfc fix(messaging): Fix processing successfuly sent messages and remove @mayfail from relevant ui test
Fixes: #7961
2022-11-22 14:19:08 -05:00
Noelia 78d23ccde8 test(chore): Add Automatic Screenshots on Test Failures and Errors
Set `logScreenshotOnFail` property.

Closes #8330
2022-11-22 18:55:02 +01:00
Noelia ed42928f0b test(chore): Renamed and reorganized files and added files flow diagram
Renamed `startupSteps.py` to `commonInitSteps.py`.
Cleanup `Processes` folder (not used).
Moved `walletInitSteps.py` inside the own suite steps.
Added files flow diagram.

Closes #8353
2022-11-22 12:44:57 +01:00
Noelia 90167ee79a test(suite_communities/tst_communityMessageFlows): Disabled `The user pins and unpins messages` bc it is unstable
`The user pins and unpins messages` scenario has been disabled due to its instability. It fails sometimes in the CI so it needs a review.
2022-11-18 19:54:57 +01:00
Noelia 0e6c4bde3f test(suite_communities/tst_communityMemberFlows): Added tag `mayfail` to disable "user invites a mutual contact" scenario
Added tag `mayfail` on "user invites a mutual contact" scenario bc it is throwing an exception: "RecursionError: maximum recursion depth exceeded"
2022-11-10 15:43:02 +01:00
Noelia e9f84b2973 test(suite_wallet): Created `bdd_hook` for each `suite_wallet` test case
- Created `bdd_hooks` that contain the sing up steps just only once in the feature start and the needed start steps depending on the test case.

- Updated feature files removing sign up steps and given/when/then reorganization.

Closes #8026
2022-11-10 15:43:02 +01:00
Jonathan Rainville 0806d657d3 fix(community-tests): fix a couple community tests 2022-10-28 14:56:29 -04:00
Jonathan Rainville 794563bfff test(chat): add a test to create a one to one chat with a mutual contact
Fixes #6884
2022-10-28 14:45:28 -04:00
Jonathan Rainville e83f46e44a test(community): add test that kicks a member
Fixes #6890
2022-10-26 14:03:21 -04:00
Jonathan Rainville 68fbaeadc1 test(community): add test that invites a user to the community 2022-10-26 12:32:52 -04:00