Skip to content

Setup e2e tests [WPB-25890]#9644

Merged
e-maad merged 11 commits into
devfrom
setup-e2e-tests-v2
Jun 3, 2026
Merged

Setup e2e tests [WPB-25890]#9644
e-maad merged 11 commits into
devfrom
setup-e2e-tests-v2

Conversation

@e-maad

@e-maad e-maad commented Jun 3, 2026

Copy link
Copy Markdown
Contributor
SpikeWPB-25890 [Desktop/QA] Start Desktop app via Playwright and try interacting with it

Pull Request

Summary

Add basic setup for e2e tests for the desktop app, including:

  • Launching the app
  • .env setup + docs
  • Ensuring the app uses a specified language instead of the system locale
  • Isolating the data stored by the app per test to avoid cross test state pollution

This is the first PR for the new goal of fully automated e2e tests for desktop.

Duplicate for: #9643


Security Checklist (required)

  • External inputs are validated & sanitized on client and/or server where applicable.
  • API responses are validated; unexpected shapes are handled safely (fallbacks or errors).
  • No unsafe HTML is rendered; if unavoidable, sanitization is applied and documented where it happens.
  • Injection risks (XSS/SQL/command) are prevented via safe APIs and/or escaping.

Standards Acknowledgement (required)


Notes for reviewers

@sonarqubecloud

sonarqubecloud Bot commented Jun 3, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@e-maad e-maad changed the title Setup e2e tests v2 Setup e2e tests [WPB-25890] Jun 3, 2026
@markbrockhoff markbrockhoff mentioned this pull request Jun 3, 2026
5 tasks
@e-maad e-maad enabled auto-merge (squash) June 3, 2026 16:48
Comment thread e2e-tests/.env.tpl
@@ -0,0 +1,2 @@
WEBAPP_URL=op://Test Automation/BackendConnection staging/webappUrl
BACKEND_URL=op://Test Automation/BackendConnection staging/backendUrl No newline at end of file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

EOL issue here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tagging @markbrockhoff, if he can resolve it in next PRs.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thing, see: #9647

@e-maad e-maad merged commit 2905aec into dev Jun 3, 2026
8 of 10 checks passed
@e-maad e-maad deleted the setup-e2e-tests-v2 branch June 3, 2026 17:05
zskhan pushed a commit that referenced this pull request Jun 22, 2026
* install playwright & set up very basic test running the app

* resolve eslint issues by introducing a tsconfig for playwright

* Create "app" fixture

Sadly there can only be one instance of the Wire App running at a time so the benefits of a composable function extinct. Instead a fixture makes the cleanup easier and prevents devs from attempting to launch a second instance.

* Always launch the app with locale en

* Add script to package.json to execute e2e tests

* Use temporary user data dir to isolate app state between runs

* Move temp dir creation into fixture to ensure cleanup

* Move example spec into specs folder

* use env vars for global setup

* add readme for e2e test setup

* exclude e2e tests from jest config

---------

Co-authored-by: Mark Brockhoff <mark.brockhoff@digits.schwarz>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants