Fix admin general settings form: dot-free field names, flat PATCH keys (#322) #326
@ -34,7 +34,7 @@ test('mode marked: card, checkbox marking, and point-of-choice marking', async (
|
|||||||
// select value — compliant choice clears it, violating choice brings it
|
// select value — compliant choice clears it, violating choice brings it
|
||||||
// back, no save in between.
|
// back, no save in between.
|
||||||
const regField = page.locator('label.field', {
|
const regField = page.locator('label.field', {
|
||||||
has: page.locator('select[name="auth.registrationMode"]'),
|
has: page.locator('select[name="registrationMode"]'),
|
||||||
});
|
});
|
||||||
const regSelect = regField.locator('select');
|
const regSelect = regField.locator('select');
|
||||||
await regSelect.selectOption('open');
|
await regSelect.selectOption('open');
|
||||||
@ -72,7 +72,7 @@ test('mode hidden: rows disappear, notes mark the hiding, a11y clean', async ({
|
|||||||
|
|
||||||
// Value-listed control: the compliant registration mode keeps only its
|
// Value-listed control: the compliant registration mode keeps only its
|
||||||
// compliant choice (seed leaves it open = violating? then all options).
|
// compliant choice (seed leaves it open = violating? then all options).
|
||||||
const regSelect = page.locator('select[name="auth.registrationMode"]');
|
const regSelect = page.locator('select[name="registrationMode"]');
|
||||||
const regField = page.locator('label.field', { has: regSelect });
|
const regField = page.locator('label.field', { has: regSelect });
|
||||||
const optionCount = await regSelect.locator('option').count();
|
const optionCount = await regSelect.locator('option').count();
|
||||||
const marked = await regField.locator('.vs-nfd-mark').count();
|
const marked = await regField.locator('.vs-nfd-mark').count();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user