You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add login and workflow-navigation controllers #7520
Step 2 of the operator-demo video generator: add the two controllers to the Playwright automation layer.
A controller is a reusable, named sequence of UI actions against the real Texera frontend. Each one wraps the selectors, clicks, and waits for one slice of the workflow behind a small builder API, so a per-operator demo script reads as a list of intentions rather than browser mechanics, and UI changes are fixed in one place instead of in every script.
Proposed Solution or Design
Add two controllers to the Playwright layer, covering the start of every demo run:
LoginControllerBuilder. Local username/password login.
NavigationControllerBuilder. Create a workflow, import a sample workflow, and clean the canvas. These run in the setup phase, before recording starts, so a video does not open on login and setup boilerplate.
new LoginControllerBuilder(ctx)
.login(user.username, user.password)
.execute()
new NavigationControllerBuilder(ctx)
.createNewWorkflow()
.importWorkflow(TestDataConfig.workflowJsonDir)
.execute()
Frontend hooks. Adds the data-testid attributes these two controllers rely on: login-username, login-password, and login-submit on the local login form, plus navigation-create-workflow-button and navigation-workflow-canvas. Without stable ids the automation has to match on component-library classes and DOM structure, which break on unrelated refactors. This step also adds a guard test asserting those ids exist, so a later refactor cannot silently remove one and break video generation.
Activity
[-]Login and workflow-navigation controllers[/-][+]Add login and workflow-navigation controllers[/+]