refactor(lightspeed): use lightspeed-playwright-e2e for shared e2e code#2833
refactor(lightspeed): use lightspeed-playwright-e2e for shared e2e code#2833HusneShabbir wants to merge 1 commit intoredhat-developer:mainfrom
Conversation
Move specs to import helpers, mocks, and fixtures from the published Playwright package. Keep plugin-sourced translations in e2e-tests via getTranslations. Remove duplicated local e2e utilities and upload fixtures now supplied by the package dependency. Made-with: Cursor
Code Review by Qodo
1. CWD-based fixture path
|
|
Review Summary by QodoRefactor e2e tests to use lightspeed-playwright-e2e package
WalkthroughsDescription• Migrate e2e tests to use shared lightspeed-playwright-e2e package • Remove duplicated local e2e utilities, fixtures, and page objects • Keep plugin-sourced translations via getTranslations function • Update test imports to use published package exports • Remove local upload fixture files (now in package) Diagramflowchart LR
A["Local e2e code<br/>fixtures, pages, utils"] -->|"Migrate to"| B["lightspeed-playwright-e2e<br/>published package"]
C["Plugin translations<br/>getTranslations"] -->|"Keep local"| D["e2e-tests<br/>translations.ts"]
B -->|"Import from"| E["Test files<br/>conversation, mcp, ui"]
File Changes1. workspaces/lightspeed/e2e-tests/fixtures/mcpServerMocks.ts
|
|
@thepetk @Jdubrick @yangcao77 @maysunfaisal @HusneShabbir - IIRC there has been discussions amongst at least some of you all wrt lightspeed e2e's I'm curious if those conversations included more reuse between what is here and in https://github.com/redhat-developer/lightspeed-playwright-e2e vs. what we have in https://github.com/redhat-ai-dev/ai-rolling-demo-gitops/tree/main/tests I do realize there is minimally a typescript vs. python difference ..... so maybe that means say replacing the python version in the rolling demo with the typescript version elsewhere Anyway just curious from a due diligence perspective on some of the details that you all got into thanks |
@gabemontero we have a sync tomorrow with @HusneShabbir & @jrichter1 to see how we can integrate the e2e tests here into the rolling demo suite! We'll follow up on our next weekly sync so everyone is up-to-speed! |
perfect thanks @thepetk |
|
Closing this PR based on the discussion with @jrichter1 and @thepetk. We agreed on starting with a simpler approach and considering shared code at a later stage. |



Move specs to import helpers, mocks, and fixtures from the published Playwright package. Keep plugin-sourced translations in e2e-tests via getTranslations. Remove duplicated local e2e utilities and upload fixtures now supplied by the package dependency.