mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-05-06 02:07:49 +08:00
Feat: UI testing automation with playwright (#12749)
### What problem does this PR solve? This PR helps automate the testing of the ui interface using pytest Playwright ### Type of change - [x] New Feature (non-breaking change which adds functionality) - [x] Other (please describe): test automation infrastructure --------- Co-authored-by: Liu An <asiro@qq.com>
This commit is contained in:
14
test/playwright/helpers/flow_context.py
Normal file
14
test/playwright/helpers/flow_context.py
Normal file
@ -0,0 +1,14 @@
|
||||
from dataclasses import dataclass
|
||||
from typing import Any
|
||||
|
||||
|
||||
@dataclass
|
||||
class FlowContext:
|
||||
page: Any
|
||||
state: dict
|
||||
base_url: str
|
||||
login_url: str
|
||||
smoke_login_url: str | None = None
|
||||
active_auth_context: Any | None = None
|
||||
auth_click: Any | None = None
|
||||
seeded_user_credentials: Any | None = None
|
||||
Reference in New Issue
Block a user