fix web review validation and clipboard tests

This commit is contained in:
2026-07-19 20:50:42 +08:00
parent ec59dee6b9
commit 884148b88f
5 changed files with 69 additions and 3 deletions

View File

@@ -25,7 +25,17 @@ test('login and project channel workbench flow', async ({ page }) => {
await expect(page.getByText('Open external channel')).toBeVisible();
});
for (const server of ['https://user:secret@example.com', 'http:////example.com', 'http://example..com', 'http://-bad.com']) {
for (const server of [
'https://user:secret@example.com',
'http:////example.com',
'http//example.com',
'https//example.com',
'http:/example.com',
'https:/example.com',
'http://example.com\\path',
'http://example..com',
'http://-bad.com',
]) {
test(`rejects malformed server address: ${server}`, async ({ page }) => {
await page.goto('/');