mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-03-16 20:37:50 +08:00
### 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>
18 lines
728 B
Python
18 lines
728 B
Python
"""Auth UI selectors for Playwright suite. Keep stable testids."""
|
|
|
|
AUTH_FORM = "form[data-testid='auth-form']"
|
|
AUTH_ACTIVE_FORM = "form[data-testid='auth-form'][data-active='true']"
|
|
|
|
EMAIL_INPUT = "input[data-testid='auth-email'], [data-testid='auth-email'] input"
|
|
PASSWORD_INPUT = "input[data-testid='auth-password'], [data-testid='auth-password'] input"
|
|
NICKNAME_INPUT = "input[data-testid='auth-nickname'], [data-testid='auth-nickname'] input"
|
|
|
|
SUBMIT_BUTTON = (
|
|
"button[data-testid='auth-submit'], [data-testid='auth-submit'] button, "
|
|
"[data-testid='auth-submit']"
|
|
)
|
|
|
|
REGISTER_TAB = "[data-testid='auth-toggle-register']"
|
|
LOGIN_TAB = "[data-testid='auth-toggle-login']"
|
|
AUTH_STATUS = "[data-testid='auth-status']"
|