Fix mobile username matching and expose VOD subtitles

This commit is contained in:
Technomancer702
2026-10-13 20:29:08 -07:00
parent 735b6299c9
commit b5e9086b24
13 changed files with 235 additions and 12 deletions

View File

@ -101,6 +101,9 @@ test('login prevents native GET credential leaks after missing or failed scripts
page.on('pageerror', () => {});
await page.route('**/*', route => route.request().url().startsWith(base) ? route.continue() : route.abort());
await page.goto(base + '/login.html');
assert.equal(await page.locator('#username').getAttribute('autocapitalize'), 'none');
assert.equal(await page.locator('#username').getAttribute('autocorrect'), 'off');
assert.equal(await page.locator('#username').getAttribute('spellcheck'), 'false');
await page.fill('#username', 'fixture-user'); await page.fill('#password', 'fixture-password');
assert.equal(await page.locator('#submit-btn').isDisabled(), true);
await page.locator('#password').press('Enter');
@ -128,6 +131,9 @@ test('login prevents native GET credential leaks after missing or failed scripts
await page.goto(base + '/login.html');
await page.waitForFunction(() => !document.querySelector('#submit-btn').disabled);
assert.equal(await page.locator('#submit-btn').textContent(), endpoint.endsWith('setup') ? 'Create Account' : 'Sign In');
assert.equal(await page.locator('#username').getAttribute('autocapitalize'), 'none');
assert.equal(await page.locator('#username').getAttribute('autocorrect'), 'off');
assert.equal(await page.locator('#username').getAttribute('spellcheck'), 'false');
await page.fill('#username', 'fixture-user'); await page.fill('#password', 'fixture-password');
const sent = page.waitForRequest(request => request.url() === base + endpoint && request.method() === 'POST');
await page.click('#submit-btn');