Commit Graph

237 Commits

Author SHA1 Message Date
Alex Jbanca bf1d59c0ad perf(chatScroll): Avoid calling the backend on delegate creation/binding
Provide the needed data from the nim model directly to the delegate. This way whenever a delegate needs to display the data it doesn't need to reach the backend.

perf(chatScroll): Fix comments on Avoid calling the backend on delegate creation/binding

perf(chatScroll): Avoid calling the backend on delegate creation/binding  - add TODO comment on senderColorHash default

perf(chatScroll): merge quotedMessageAuthor details

perf(chatScroll): Fix nim tests

perf(chatScroll): Fix merge error - messages_model.nim
2023-01-19 19:24:18 +02:00
Pascal Precht bf7148efd6 fix: make avatar info in replies of imported messages work again
Because we've switched to `QuotedMessage` as an attached payload to
messages to make message replies data more reliable, we lost some of
the author information in imported messages, that was available prior
to that move.

This commit introduces `quotedMessageAuthorDisplayName` and
`quotedMessageAuthorAvatar` to our model so it can be set in case
we can't retrieve contact details for a given message (which is always
the case for imported messages)
2023-01-17 12:48:56 +01:00
mprakhov b7c1250115 Draft: fix check 2023-01-16 14:46:08 +02:00
Patryk Osmaczko a21bebcacc feat(chat): implement bulk insertion algorithm
motivated by: #9068
iterates: #3067
2023-01-16 13:08:43 +01:00
Patryk Osmaczko ac56bbdfdd fix(tests/nim): fix nim tests compilation 2023-01-13 11:52:47 +01:00
Jonathan Rainville a0ac5b3439 chore(wallet-test): tag wallet test generate and delete as @mayfail 2023-01-12 16:55:07 -05:00
Jonathan Rainville 1216bdcc83 fix(nim-test): fix missing property in nim test message init 2023-01-12 16:55:07 -05:00
Jonathan Rainville acf67c33d5 chore(test): make observe watch only account @mayfail 2023-01-12 15:18:03 -05:00
Jonathan Rainville 91c2e6d257 feat: use QuotedMessage object for replies to better show the replies
Fixes #7754
ok
2023-01-12 15:18:03 -05:00
Patryk Osmaczko bbc7da7c7d refactor: remove misleading APIs from message_model 2023-01-11 09:27:20 +01:00
Patryk Osmaczko fe4e14ff5b fix(chat/messages): set clock value for new messages marker
New messages marker had a clock value of "0" before. Since all
messages are inserted based on the clock value, new messages marker
would cause other "0"-valued clock items to be inserted after it,
effectively making chat header being displayed in the middle of the
chat.

Setting new messages marker clock value to the clock of the message it
points to solves the issue.

fixes: #8955
2023-01-11 09:27:20 +01:00
Patryk Osmaczko fa6f0dd2b7 fix(tests/nim): fix nim tests compilation 2023-01-11 09:27:20 +01:00
Jonathan Rainville a0b17c3879 chore: add mayfail on community edit tests 2023-01-05 15:21:38 -05:00
Jonathan Rainville 67e0df17e1 test(contact): add a test that sends a contact request from the chat
Fixes #6883
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
Patryk Osmaczko 7ede3389ff fix(chat): ensure messages ordering on model append/prepend
fixes: #8466
2022-12-21 10:32:46 +01:00
Noelia ec8c64d7a1 test(tst_userIdentity): Fix test scenarios broken due to new user profile design
- Fixed test scenarios broken due to new user profile design.
- Added new verifications in social links: github, youtube, discord and telegram.
- Scenario statements reorganization.

Fixes #8281
2022-12-20 15:53:50 +01:00
Boris Melnik 46b0a82001 uitest(edit-message): Check if message can be edited several times 2022-12-15 17:49:11 +03:00
Michal Iskierko 0da0360beb fix(@desktop/tests): Fixing gif and image unfirling scenarios
Fix #7912
2022-12-14 12:55:57 +01:00
Lukáš Tinkl 73cc621f0c fix: Rename "Chat" tooltip to "Messages"
... and do it the proper way, ie. make the string translatable as we
can't handle translations coming from NIM files at the moment

Closes #8418
2022-12-13 03:46:25 +01:00
Alex Jbanca 0526dca298 Fix "The user signs up with a profile image" squish test case 2022-12-07 20:18:57 +01:00
Igor Sirotin 3d6324ce64 Separated chats order scenarios 2022-12-06 23:42:42 +03:00
Igor Sirotin d48ea97027 Minor fixes. Feature comments. 2022-12-06 23:42:42 +03:00
Igor Sirotin a8406b9158 feat(tst_chatsNavigation): Restored chats navigation tests 2022-12-06 23:42:42 +03:00
Igor Sirotin e3bfdc0f09 fix(StatusPopupMenu): Refactoring 2022-12-02 10:30:50 +03:00
Khushboo Mehta 9ded9d4ffa feat(@deaktop/wallet): Add bridge view
fixes #8236
2022-12-01 17:15:55 +01:00
Jonathan Rainville 4c1370f7ef test(Settings): adds a test that sends a contact request with chat key 2022-11-29 15:51:29 -05:00
Patryk Osmaczko 5d305a5221 refactor(StatusAppNavBar): simplify navbar
- removed imperative filtering
- removed imperative size calculation
- removed all ugly hacks

fixes: #7167
fixes: #8463
2022-11-29 16:06:33 +01:00
mprakhov 8f13ad8f93 test(@desktop/chat): Can reply to a message in a community channel 2022-11-28 14:19:00 +02:00
Michal Iskierko 48b2b978e4 fix(@desktop/test): Fixing chat flow test
Fixing hover menu problems: reply, edit, delete message.

Fix #7911
2022-11-28 11:17:00 +01:00
Patryk Osmaczko d0725d451e fix(ui-test/ChatFlow): retry to load stickers
For some reason stickers are not loaded for the first time. User has now
the ability to retry the loading procedure. Retry action loads stickers
successfully in most cases.

fixes: #7995
2022-11-25 17:06:59 +01: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 2d204c99d8 test(suite_settings/tst_signUpAndQuit): Disabled bc it is unstable
It fails sometimes reporting a FATAL error in CI execution: "The AUT did not respond to network communication".
2022-11-22 18:55:02 +01:00
Noelia b9fd986c56 fix(suite_messaging): Solved incorrect import
Replaced `steps.startupSteps` to `steps.commonInitSteps`
2022-11-22 18:55:02 +01: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 1da0cf9c79 test(onboarding): Improved validation after login
Added validation of empty chat panel image to check that `StatusMainScreen` is ready.
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 80bb09cc67 test(suite_onboarding): Update bdd hooks related to the suite and suite cleanup and reorganization
- Added specific `bdd_hooks.py` for `tst_passwordStrength`.
- Updated `tst_passwordStrength` screenshots (now taken when input is focused).
- Restored `tst_statusLoginPassword` scenarios.
- `tst_statusSignUp` will only contain positive signup test case.
- Created new test case tst_signUpSeedPhraseNegativeCases`.
- Created new test case `tst_signUpNegativeCases` with specific `bdd_hooks.py`.

Closes #8013
2022-11-21 08:55:38 +01:00
Khushboo Mehta 8084b90b5c test: Renabled test case for Simple transaction
fixes #7983
2022-11-20 14:44:37 +01:00
Noelia d42e1fdc89 test(suite_settings/tst_mainSettingsSection): Disabled `The user can backup seed phrase` bc it is unstable
`The user can backup seed phrase` 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 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 ac89fc770b test(suite_settings): Updated bdd hooks and suite reorganization
- Created new test case `tst_signUpAndQuit`.
- Renamed `tst_settingsMenu` to `tst_mainSettingsSection`.
- Created specific `bdd_hooks.py` for test case `tst_mainSettingsSection` and `tst_userIdentity`.

Closes #8011
2022-11-18 19:54:57 +01:00
Pascal Precht 2ba6dc32f6 tests(suite_messaging): add assertion that message was indeed edited
This adds an assertion that checks whethere a message was indeed edited
by checking its `isEdited` property.
2022-11-17 20:39:27 +01:00
Pascal Precht d536634fee cleanup(squish): remove redundant definition of `mouse_over_object` api
Probably a mistake. This was defined twice in our package.
2022-11-17 20:20:19 +01:00
Pascal Precht dbf7fa4aab tests(suite_messaging): properly check if reply message has reply
Prior to this commit we were merely checking if the message in question
was the last one.

With this commit we now check whether there's a reply in the first place
and whether the reply-to-message is the correct one.

We also distinguish whether the message we're replying to is the one
from the loggedin user (and not someone else's)
2022-11-17 19:44:44 +01:00
Stefan d0389a6305 feat(Wallet) show balance cache for chain native token
Quick integration of fetching balance in the current chart view.

The proper implementation requires refactoring the QML views to separate
price chart, that depends only on the token and chain, from balance that
depends on token, chain and address.

Closes: #7662
2022-11-16 13:07:46 +01:00
Stefan 5450384a34 chore(CPP) add debugging test for token balance history
Also

- added debugging test for `checkRecentHistory` from the attempt to
use transactions to restore balance
- small improvements that might clarify better the issues reported about
running under linux issues (didn't test them)
- fix issues found while reviewing the code.
- add support for custom infura token to be used in development

Updates #7662
2022-11-16 13:07:46 +01:00
Noelia dc96ea8aff test(status_messaging/tst_groupChat-adminGroupChat): Added steps to cleanup group chat in needed scenarios
- Added steps to leave the created groups chats so the reusable accounts will keep clean.
- Replaced reusable accounts to fresh ones since there where lots of groups chats created under the existing ones.
- Added `relyon-mailserver` tag in `adminGroupChat` because it is needed a cleanup of the chat in all users (and the new created chat info is not available always due to `mailServer`).

Closes #6615
2022-11-15 09:54:55 +01:00
Anthony Laibe 15891295e9 test(@wallet): enable mayfail test 2022-11-10 15:43:02 +01:00
Anthony Laibe 59e0ae298f test(@wallet): Update network constants 2022-11-10 15:43:02 +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
Sale Djenic 250a193f91 test(suite_wallet): tests updated according to the changes applied to add account modal popup 2022-10-28 20:43:09 +02:00
Anthony Laibe 34d7d4354b test: fail balance test 2022-10-27 17:38:28 +02:00
Jonathan Rainville e83f46e44a test(community): add test that kicks a member
Fixes #6890
2022-10-26 14:03:21 -04:00
Khushboo Mehta aec7a30d03 feat(@desktop/wallet): Updated UI for bridge and multi routing support
fixes #7334
2022-10-26 18:48:30 +02:00
Jonathan Rainville 68fbaeadc1 test(community): add test that invites a user to the community 2022-10-26 12:32:52 -04:00
Noelia fa265b5e79 test(suite_communities): Created `bdd_hook` for each `suite_communities` 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.

- Done some cleanups and reorganization in `communitySteps.py` and `searchSteps.py`.

Closes #7955
2022-10-25 16:01:41 +02:00
Noelia 8121f052ef test(suite_messaging/tst_ChatFlow): Added tag `mayfail` bc it is weak on the CI
Disabled test case since it is weak on the CI. It works standalone but when it runs as part of the sequence and mostly in the CI, the action of verification doesn't work.
2022-10-21 10:17:31 +02:00
Noelia 803bf48e99 test(suite_messaging/tst_adminGroupChat): Created new test case `tst_adminGroupChat`
Moved admin related scenarios from `tst_groupChat` to the new created one `tst_adminGroupChat`.
2022-10-20 16:06:39 +02:00
Noelia cc64e443e4 test(chore/style): Applied parameters style consistency on `suite_messaging` and some `onboarding / login` statements
To make the feature files style consistent for direct string and also use it for examples (params), it has been introduced "" to all plain strings and also into the parameters, that now will be written like this: "<example-param>": Applied on the complete `suite_messaging` and in specific statements of the `onboarding / login`.
2022-10-20 16:06:39 +02:00
Noelia 728aa00c3c test(chore/suite_messaging): Added specific `bdd_hooks` for `suite_messaging/tst_ChatFlow`
- Reviewed `suite_messaging/tst_ChatFlow` feature: Cleanup of duplicated steps and separation of action / validation applied.

- Reviewed `suite_messaging/tst_groupChat` feature.

- Added new tag to `Jenkins` file: `relyon-mailserver`.

- Added new `StartupSteps` class to manage init / startup static methods outside bdd steps. It can be used as a util in `hooks` and `steps`.

Closes #7931
2022-10-20 16:06:39 +02:00
Anthony Laibe 1652681897 test(@wallet): enable all wallet test 2022-10-17 11:15:18 +02:00
Noelia 94910e9554 fix(Onboarding): Give consistency to Create / Confirm password view font-size
Updated `Create` and `Confirm` password views according to new design decisions taken to give consistency to the onboarding screens (related to font-size).

Updated related squish test cases: Screenshots updated with new font-size and refactored some objectNames and objects that where using `text` property instead of `objectName`.

Updated `Input` components to `StatusPasswordInput` ones.

Fixes #7447
2022-10-13 16:15:36 +02:00
Boris Melnik 891a99a0cc fix(uitest): Mark group chat test as mayfail 2022-10-12 16:33:18 +03:00
Noelia b9c569599d test(suite_wallet): Created new suite_wallet
- Created new `suite_wallet` where all related wallet tests will be migrated to.
- `tst_wallet` has been moved to new `suite_wallet`.
- `tst_transaction` has been moved to new `suite_wallet`.
Tests inside `suite_wallet` still contain some broken tests.

Closes #7627
2022-10-04 17:56:06 +02:00
Noelia 4b17c25a25 test(suite_settings): Created new suite_settings
- Created new `suite_settings` where all related settings tests will be migrated to.
- `tst_languageSettings` has been moved to new `suite_settings`.
- `tst_settingsMenu` has been moved to new `suite_settings`.
- `tst_userIdentity` has been moved to new `suite_settings`.
Tests inside `suite_settings` still contain some broken tests.

Closes #7626
2022-10-04 17:13:14 +02:00
Noelia 4b70d2f02b test(suite_communities): Created new suite_communities
- Created new `suite_communities` where all related communities tests will be migrated to.
- `tst_searchFlows` has been moved to new `suite_communities`.
- `tst_communityMessageFlows` has been moved to new `suite_communities`.
- `tst_communityFlows` has been moved to new `suite_suite_communitiesonboarding`.
Tests inside `suite_communities` still contain some broken tests.

Closes #7625
2022-10-04 15:51:14 +02:00
Noelia b2f927b716 test(suite_messaging): Created new suite_messaging
Created new `suite_messaging` where all related chat tests will be migrated to.
- `tst_ChatFlow` has been moved to new `suite_messaging`. It still contains some broken tests.
- `tst_groupChat` has been moved to new `suite_messaging`. It is now working (but it relies on the mailserver so could fail sometimes).
- `tst_statusLoginPassword` has been moved to new `suite_onboarding`.
- It has been needed to move some object definitions from `chat_names.py` to `global_names.py` since they are shared between different suites.
- Some other minor object and steps definitions have been moved to fit with the new structure.

Closes #7624
2022-10-04 11:17:47 +02:00
Noelia 03691ba4b1 test(GroupChat): Broken tests updated
The create a group chat related objects have been updated according to new qml changes.
Now these tests are working (if they don't work it is bc of mailserver reliability).
2022-10-04 11:17:47 +02:00
Noelia d0fc2db9bd test(chore): Added splash screen animation recognition and general banners management
"the user lands on the signed in app" step incorporates the following verifications (main screen is ready):
- Splash screen animation is loaded and ended.
- Banners that appear in the main screen are closed before starting other actions (secure seed phrase, connection information and update app information banners).
2022-10-04 11:17:47 +02:00
Richard Ramos 1a2524cbda chore: setup a mailserver as part of UI tests run in CI 2022-10-03 16:31:23 -04:00
Khushboo Mehta 9638b200e1 fix(@desktop/wallet): Added squish test for change password and relogin
fixes #6900
2022-09-30 15:56:03 +02:00
Khushboo Mehta d65f0fa55e fix(@desktop/wallet): Added squish tests for transactions and transaction details
fixes #7215
2022-09-28 09:55:41 -04:00
Sale Djenic f17003e5f2 test(@desktop/wallet): tests for adding wallet accounts updated according to the latest changes (`Authentication` flow) 2022-09-27 20:15:34 +02:00
Anthony Laibe 23396ea0cd test: add merge tag + add missing mayfail 2022-09-21 19:53:21 +02:00
Stefan 93af435bf9 fix(tests): don't rely on quick actions, wait for components to be ready
Onboarding tests fail on mac. The fix is to wait for the delayed
components to be ready before clicking on the quick actions.
2022-09-19 13:16:22 +02:00
Stefan 0f1ade6967 tests(chat): adapt gif test and add image unfurling test
The gif test was manually activating the unfurling, which is no longer
necessary. Now check that enabling gifs will enable tenor unfurling

Also add a test for image unfurling and validate the unfurling image
links components and preview settings.
2022-09-19 11:19:17 +02:00
Michal Iskierko 55cb3cbf33 test(group chat): Testing changing group chat's name, color and image.
Fixes #7065
2022-09-14 12:49:43 +02:00
Jonathan Rainville aba2a42c6f test(@wallet): allow to use ganache with goerli 2022-09-13 11:56:42 +02:00
Stefan 8603bb51e8 test(Wallet): fix edit of saved address test 2022-09-12 16:00:31 +02:00
Stefan 1405119f96 chore(SquishTests): improve StatusMainScreen.wait_for_banner_to_disappear
Required for #6898
2022-09-12 16:00:31 +02:00
Stefan 6e78281d99 test(FavouriteSavedAddresses/Wallet): test toggle favourite for saved addresses
Also
- fix the other saved addresses that were relying on the order of
buttons and fail after adding the favourite button
- improve the rest of the tests
- improve debug buttons
- extend driver with helper functions

Closes: #6898
2022-09-12 16:00:31 +02:00
Anthony Laibe ba4aac6456 feat: make screenshot test easy to add between steps 2022-09-02 10:45:23 +02:00
Igor Sirotin 66b79fbda8 tests: Can change own display name in ProfilePopup 2022-09-01 15:31:50 +03:00
Boris Melnik f4b4ec341e fix(tests): Fix emoji autoreplace test 2022-09-01 02:02:27 +03:00
MishkaRogachev 2d873db153 test(community): Fix community categories tests 2022-08-31 14:41:35 +03:00
Igor Sirotin 41910c9a8a fix(tests): Fixed message reply test 2022-08-30 17:03:36 +03:00
Jonathan Rainville 6bd1cfde72 test(chat): add a test that install a sticker pack and sends a sticker
Fixes #6962
2022-08-29 10:52:00 -04:00
Jonathan Rainville 2bbd9f4363 fix(wallet-test): fix balance test
The test network was toggled twice. The banner was impeding with the wallet setting click. The asset list item was missing the objectName and also checking the balance was not resilient
2022-08-26 10:59:25 -04:00
Jonathan Rainville 109b9ac290 test(community): add a test that pins and unpins messages
Fixes #6894
2022-08-26 10:29:28 -04:00
Boris Melnik 2ef6e04b0a test(chat): Emoji autoreplace
Closes: #7019
2022-08-26 12:57:12 +03:00
Boris Melnik 02b9ceff78 fix(EmojiPopup): Fix emoji suggestions and add tests for it
Closes: #7020
2022-08-26 12:41:28 +03:00
Boris Melnik 10d53454b3 test(chat): Can send a gif
Closes: #6882
2022-08-26 12:18:42 +03:00
Boris Melnik c7efbe6629 test(chat): Can edit a message and save
Closes: #6877
2022-08-26 11:57:59 +03:00