status-desktop/test/ui-test
Alex Jbanca 8a69f3bc63
fix(SeedPhrase): Fixing seed phrase validation (#13496)
* fix(SeedPhrase): Fixing seed phrase validation

1. Validate each word after the editing is finished
2. Fixing the seed phrase suggestions where the suggestions box was hidden behind other ui elements
3. Propagate editingFinished signal in StatusBaseInput, StatusInput, StatusSeedPhraseInput
4. Fixing undefined `mnemonicIndex` errors

* fix: Refactoring of SeedPhraseInputView

Remove duplicated code and use EnterSeedPhrase component

+ Added storybook page

* fix(Onboarding): Fixing seed phrase validation on windows

The seed phrase validation fails on windows due to the dictionary line endings

* chore(squish): Update e2e tests to the new enter seed phrase panel construction

* fix: Load english dictionary from local file using StringUtils
2024-02-14 15:50:14 +02:00
..
doc test(chore): Renamed and reorganized files and added files flow diagram 2022-11-22 12:44:57 +01:00
fixtures chore(test) remove ganache test fixture 2023-11-21 15:05:58 +01:00
src fix(SeedPhrase): Fixing seed phrase validation (#13496) 2024-02-14 15:50:14 +02:00
testSuites fix(SeedPhrase): Fixing seed phrase validation (#13496) 2024-02-14 15:50:14 +02:00
.gitignore test(settings/profile): test bio and social links 2022-08-17 13:18:32 +02:00
README.md ci(e2e): Updated squish version from 6.7.2 to 7.1-SNAPSHOT 2023-03-07 10:32:26 +01:00
__init__.py test/start application with custom data folder 2023-05-23 07:42:38 -04:00

README.md

status-desktop-ui-test

UI test application for Status Desktop

  • Test automation project that uses Squish as a testing tool with BDD.
  • Information about its architecture can be found in wiki.

Screenshot 2022-02-25 at 10 22 45

Preparing the environment to develop and run tests

  1. Install Squish and run its IDE.
  2. File / Open Test Suite and browse to testSuites directory.
  3. Once the suite is open, click Test Suite Settings button to configure the AUT (Application Under test).
    • Select AUT tab and browse until the corresponding status-desktop\bin\nim_status_client binary is set.
    • Uncheck Automatically start the AUT option (if it is already checked).
    • Save changes.

Now you should be able to create new suites, test cases and run the existing ones just only by clicking Run buttons!!

Here a more detailed installation guide specific for this project.

Squish versions tested

Status APP Qt version Squish version Squish Qt version Local macOS Monterey 12.3.1 CI
5.14.2 6.7.2 5.14 OK OK
5.15.2 6.7.2 5.14 OK OK
5.15.2 7.0.1 5.15 KO KO
5.15.2 7.1.0 5.14 KO KO
5.15.2 7.1.0 5.15 KO KO
5.15.2 7.1.-20230222-1555 (SNAPSHOT) 5.15 OK OK (manual extension removal*)

NOTE 1: KO means the test execution hangs on squish.waitForObject() or squish.findObject(). Seen this behaviour particularly in Onboarding / Create Password Screen.

NOTE 2: The 7.1-SNAPSHOT version for linux needs a manual interaction (if not the app crashes when the test execution starts). It is needed to rename library in:

SQUISHDIR\lib\extensions

 squishqtwaylandcompositor.ext

to

 squishqtwaylandcompositor_off.ext

Last status app tested: Master branch - Commit: d31acbfb48fe7027657a08c648836d9a8f11240c