Commit Graph

60 Commits

Author SHA1 Message Date
Anastasiya ca1182e3f9 chore(@e2e): various fixes for tests 2024-10-29 21:16:40 +03:00
Alex Jbanca 17be3bfb2c chore(E2E): Use `mouseWheel` method to scroll
This makes the scrolling work for any qml type where the child supports scrolling.
By default the cursor is positioned in the middle of the scrollable item and scroll in steps of 30px.
2024-10-11 09:22:16 +03:00
Anastasiya Semenkevich 43acfc82ab chore: use driver 2024-10-07 11:08:34 +03:00
Anastasiya Semenkevich 2b0af81139 chore: extract methods to helper class 2024-09-10 11:23:14 +03:00
Anastasiya Semenkevich 66fac6fa96 tests: refactor user.py 2024-08-21 17:06:41 +03:00
Anastasiya Semenkevich f038d83281 chore: address review from https://github.com/status-im/status-desktop/pull/15251/ 2024-06-28 17:27:59 +03:00
Anastasiya Semiankevich 289d3561bd chore: add isFrozen function and make the timeout for click a param 2024-06-27 12:08:03 +03:00
Anastasiya Semiankevich 5b30d25387 chore: add more logging to QT components 2024-06-26 11:19:06 +03:00
Anastasiya Semenkevich 1c5aad7733 chore: replace conditions with function call in system.py 2024-06-18 15:04:44 +03:00
Anastasiya Semenkevich 9ce23fe556 chore: squeeze 2 kill methods to 1 2024-06-12 13:09:23 +03:00
Anastasiya Semenkevich d5b857da69 chore: remove attempts to connect to non-existing context and remove useless cycles 2024-04-05 11:02:55 +03:00
Anastasiya Semenkevich 2858abeb98 add missing parameter, renamed function, removed super() from aut class (no parent exists) 2024-03-29 09:17:39 +03:00
Valentina Novgorodtceva 7482a8f8d9 chore: isFrozen verification added to method click 2024-03-21 11:53:11 +03:00
Anastasiya Semenkevich 39445afd89 chore: screenshot on fail improved 2024-03-07 17:54:27 +03:00
Anastasiya Semenkevich 0848301498 chore: better dirs naming 2024-03-07 17:54:27 +03:00
Anastasiya Semenkevich 206e3da026 chore: change the datadir parameter 2024-03-01 12:51:51 +03:00
Anastasiya Semenkevich da7f01eec2 Update aut.py 2024-02-28 14:35:29 +03:00
Anastasiya Semenkevich cf4547f5dd chore: trying to force the cycle work 2024-02-20 12:48:33 +03:00
Anastasiya Semenkevich f868d2c1de chore; try to fix connection refused error 2024-02-20 12:48:33 +03:00
Valentina Novgorodtceva 6823b1f5e2 chore: changed a way we access object locators in object map 2024-02-14 13:20:00 +03:00
Jakub Sokołowski 124f482d31 feat(aut): wait for AUT comms port to become available
This avoids issues on slower systems where `startaut` does not have the
port ready when the `squishserver` tries to connect to it, resulting in:
```
Warning: Could not connect to attachable AUT at localhost:61500: Connection refused
```

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-12-07 10:28:57 +01:00
Valentina Novgorodtceva fa48dad825 test: test_wallet_send_0_eth added 2023-12-07 16:24:38 +07:00
Jakub Sokołowski 255f88fbb0 chore(all): rename _logger to LOG to match changes
Some of them were renamed in:
https://github.com/status-im/desktop-qa-automation/pull/352

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-12-01 14:58:22 +01:00
Jakub Sokołowski 8351ae80ca fix(logs): send logs to a single file
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-12-01 14:48:54 +01:00
Jakub Sokołowski 7eab188b32 feat(all): logging to files for drivers and fixtures
Otherwise it's very hard to debug anything at all.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-12-01 14:48:53 +01:00
Jakub Sokołowski 128ae59d72 choer(driver): consistent formatting of server flags
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-12-01 14:48:51 +01:00
Jakub Sokołowski 9ae8173a0b fix(driver): drop retries from AUT launch method
The retries are just adding complexity and not helping.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-12-01 14:48:50 +01:00
Jakub Sokołowski 47f7a092b0 feat(driver): redirect AUT logs to files
Send application logs to `aut_stdout.log` and `aut_stderr.log` files.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-12-01 14:48:48 +01:00
Jakub Sokołowski 5d8d7aaa39 fix(all): rename APP_DIR to AUT_PATH to reflect purpose
The name APP_DIR suggests the path is a directory, but it's not.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-12-01 14:48:47 +01:00
Jakub Sokołowski bbc81717ce fix(all): refactor killing processes and waiting
* Use `psutils.pid_exists()` instead of iterating processes for no reason.
* Drop use of recursion which is completely unnecessarily complex. Use loop.
* Remove checking of `returncode` right away after process starts, it's too soon.
* Lower `PROCESS_TIMEOUT_SEC` to 5 seconds to avoid needless delays.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-12-01 14:48:46 +01:00
Jakub Sokołowski 6c91ebef11 feat(driver): add squish.ini config file to repo
Creating it by calling `squishserver` is a waste of time.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-12-01 14:48:45 +01:00
Jakub Sokołowski eec2e382d8 feat(driver): wait for Squish server port to listen
Doing silly retries is just not reliable, this is.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-12-01 14:48:44 +01:00
Jakub Sokołowski fc665cf5ec fix(driver): killing process using pid not port number
* Drop unnecessary killing of processes by port, we have the PID.
* Split `stop()` method into `_detach_context()` and `_kill_process()`.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-12-01 14:48:43 +01:00
Jakub Sokołowski 917a4bfde1 fix(driver): remove pointless ATTACH_MODE config value
Removing `ATTACH_MODE` since as far as I can tell it's always `true`.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-12-01 14:48:42 +01:00
Jakub Sokołowski 05ad2ebadb fix: remove windows carrige returns from files
Drives me crazy.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-12-01 10:00:56 +03:00
Anastasiya b74ba4f7eb chore: stabilise test (#333)
* chore: fix testnet toggle test and total balace wallet test

* chore: increase timeout for syncing test

* chore: disable test mode and remove keycard hide steps
2023-11-22 13:42:26 +03:00
Anastasiya d7908775f0 chore: several changes for wallet settings tests (#317)
* chore: fix several wallet tests

* disable account ordering because of bug

* remove test self as not needed anymore

* add log level

* click the revert button 2 times
2023-11-17 17:27:51 +03:00
Vladimir Druzhinin 29b78cc12e chore: Create screenshot of multiple instances on test fail (#273)
#271
2023-11-07 18:26:07 +01:00
Vladimir Druzhinin 294119c08a chore: squish waitFor method was customized (#272)
#262
2023-11-07 16:05:43 +01:00
Vladimir Druzhinin 4a181ccf4c chore: Mock keycard option added in start AUT (#261)
#260
2023-11-06 12:31:34 +01:00
Vladimir Druzhinin c7be5ef7bb chore: fix test_sync_device_during_onboarding (#240) 2023-11-01 10:19:05 +03:00
Vladimir Druzhinin 46e77e14e9 Chore/display (#234)
* Using the name of the display from CI in grabbing screenshots

#233

* Test fail
2023-10-31 17:59:27 +03:00
Vladimir Druzhinin 0219df1eba chore: Improve AUT methods (#223)
- Close and Detach methods are merged
- Saving pid in Aut changed to close after AttachError
- Collect all pid that use port
2023-10-27 13:44:45 +02:00
Vladimir Druzhinin 898cfda832 chore: Detach and close AUT on Attach Error added (#214) 2023-10-26 12:57:06 +02:00
Vladimir Druzhinin 7a1bcedd30 Fix/167 communities (#207)
* Fix test_create_community

#167

* Setup cursor animation

#167

* Fix test_sync_device_during_onboarding

#167
2023-10-25 15:38:48 +03:00
Vladimir Druzhinin 8c278b6052 Fix AttachError because of parallel execution (#197)
* Fix AttachError because of parallel execution

* Fix X connection failed
2023-10-23 14:53:11 +03:00
Vladimir Druzhinin 3343bc675e Fix AUT AttachError (#180)
* Fix AUT AttachError

#174

* Test close by port

* Method to add a screenshot on fail added for multiple instances AUT

#177
2023-10-19 14:26:05 +02:00
Anastasiya Semenkevich 0b09050410 fix(@wallet_manage_accounts_test): fix test for watched address (#162)
* fix(@wallet_manage_accounts_test): fix test for watched address

* Start squish server on new port

---------

Co-authored-by: Vladimir Druzhinin <vlado@status.im>
2023-10-11 13:38:55 +03:00
Vladimir Druzhinin e292a0d347 Fix/147 test sync device (#157)
* Code was formatted with pep8 recommendations

* Fix attaching squish server config
2023-10-09 19:04:29 +02:00
Vladimir Druzhinin fd7926f49f Fix multiple instances (#126) 2023-09-29 13:01:43 +02:00