Skip to content

web/e2e: Playwright end-to-end test runner#16014

Merged
GirlBossRush merged 7 commits intomainfrom
playwright-e2e-base
Aug 26, 2025
Merged

web/e2e: Playwright end-to-end test runner#16014
GirlBossRush merged 7 commits intomainfrom
playwright-e2e-base

Conversation

@GirlBossRush
Copy link
Contributor

@GirlBossRush GirlBossRush commented Aug 6, 2025

Details

This PR introduces Playwright as an end-to-end test runner, replacing WebDriverIO.
The changes included in this branch do not include the tests, instead focusing on a smaller subset to review:

What is included

  • Playwright test fixtures
    • Form element selectors, buttons, etc
    • Wizard elements, buttons, etc
    • Pointer actions, clicking, pressing, etc
    • Session actions, login, logout
  • An entity name generator, used to create unique names for users, groups, providers, and other resources during test runs
  • Pino, a runtime-agnostic logger for use in test reporters, CLI scripts, and possibly in the front-end at a later time
  • A few modifications to our TSConfig to type-check new tests
  • Vitest boilerplate for unit tests

What's not included

  • Removing WebDriverIO
  • Provider tests
  • Accessibility improvements
  • Alignment with the upcoming @goauthentik/elements package

See also

@netlify
Copy link

netlify bot commented Aug 6, 2025

Deploy Preview for authentik-docs canceled.

Name Link
🔨 Latest commit 74431ac
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/68ade44c5b439a0008963ae9

@netlify
Copy link

netlify bot commented Aug 6, 2025

Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 74431ac
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/68ade44cfe24cb00083dfc76
😎 Deploy Preview https://deploy-preview-16014--authentik-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Aug 6, 2025

Deploy Preview for authentik-integrations canceled.

Name Link
🔨 Latest commit 74431ac
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/68ade44c1a29fe0008c363fd

@GirlBossRush GirlBossRush added the enhancement New feature or request label Aug 6, 2025
@codecov
Copy link

codecov bot commented Aug 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.79%. Comparing base (810aa1c) to head (74431ac).
⚠️ Report is 2 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16014      +/-   ##
==========================================
+ Coverage   91.92%   92.79%   +0.86%     
==========================================
  Files         838      838              
  Lines       45290    45290              
==========================================
+ Hits        41632    42026     +394     
+ Misses       3658     3264     -394     
Flag Coverage Δ
e2e 46.60% <ø> (+0.02%) ⬆️
integration 23.53% <ø> (?)
unit 90.93% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 6, 2025

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-74431acd1a3bdf8afe25ed770705ce353307f697
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-74431acd1a3bdf8afe25ed770705ce353307f697

Afterwards, run the upgrade commands from the latest release notes.

@GirlBossRush GirlBossRush changed the title web/e2e: Playwright end-to-end test runner, replaces WebDriverIO. web/e2e: Playwright end-to-end test runner Aug 6, 2025
@GirlBossRush GirlBossRush force-pushed the playwright-e2e-base branch 3 times, most recently from 193de93 to 45a1337 Compare August 25, 2025 19:12
Copy link
Contributor

@kensternberg-authentik kensternberg-authentik left a comment

Choose a reason for hiding this comment

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

The code looks good. The tests are still flaky on my machine, but that may be a browser version mismatch or any number of odditities. The changes made to the UI's actual functionality don't appear to be problematic.

@GirlBossRush GirlBossRush enabled auto-merge (squash) August 26, 2025 16:44
@GirlBossRush GirlBossRush merged commit 232f52b into main Aug 26, 2025
107 checks passed
@GirlBossRush GirlBossRush deleted the playwright-e2e-base branch August 26, 2025 17:09
This was referenced Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants