feat: improve auth form UX
This commit is contained in:
@@ -1607,6 +1607,9 @@ async function verifyPublicRegistration(page) {
|
||||
page.locator(`input[placeholder="${TEXT.confirmPasswordPlaceholder}"]`).first(),
|
||||
password,
|
||||
)
|
||||
const agreementCheckbox = page.locator('.ant-form-item').filter({ has: page.locator('input[id="agreement"]') }).locator('.ant-checkbox').first()
|
||||
await forceClick(agreementCheckbox)
|
||||
await expect(agreementCheckbox).toHaveClass(/ant-checkbox-checked/, { timeout: 10 * 1000 })
|
||||
const registerResponsePromise = waitForResponseSafe(page, (response) => {
|
||||
return response.url().includes('/api/v1/auth/register') && response.request().method() === 'POST'
|
||||
})
|
||||
@@ -1642,6 +1645,9 @@ async function verifyEmailActivationWorkflow(page) {
|
||||
page.locator(`input[placeholder="${TEXT.confirmPasswordPlaceholder}"]`).first(),
|
||||
password,
|
||||
)
|
||||
const agreementCheckbox = page.locator('.ant-form-item').filter({ has: page.locator('input[id="agreement"]') }).locator('.ant-checkbox').first()
|
||||
await forceClick(agreementCheckbox)
|
||||
await expect(agreementCheckbox).toHaveClass(/ant-checkbox-checked/, { timeout: 10 * 1000 })
|
||||
|
||||
const registerResponsePromise = waitForResponseSafe(page, (response) => {
|
||||
return response.url().includes('/api/v1/auth/register') && response.request().method() === 'POST'
|
||||
|
||||
Reference in New Issue
Block a user