feat(privacy): complete the publication, hiding and preview settings screen
This commit is contained in:
1 parent
c2a8d17195
commit
5edff21d2d
28 files changed
+2230
-428
No files matched your search
@@ -140,6 +140,10 @@ async function saveAssessmentQuestionnaire(page: Page): Promise<void> {
|
||||
}
|
||||
|
||||
async function focusWithKeyboard(page: Page, target: Locator): Promise<void> {
|
||||
// The control appears only after the previous answer is saved and the attempt
|
||||
// is read again. On a loaded stand that takes longer than the default 5 s
|
||||
// expectation, so wait for it explicitly before walking the tab order.
|
||||
await expect(target).toBeVisible({ timeout: 20_000 });
|
||||
await page.evaluate(() => (document.activeElement as HTMLElement | null)?.blur());
|
||||
for (let attempt = 0; attempt < 80; attempt += 1) {
|
||||
await page.keyboard.press("Tab");
|
||||
|
||||
Reference in new issue
Block a user