Explain search outcomes and provide a direct version selection action
Magent CI/CD / verify (push) Successful in 1m50s
Magent CI/CD / deploy-prod (push) Skipped
Magent CI/CD / deploy-beta (push) Skipped

This commit is contained in:
2026-09-13 12:16:28 +12:00
parent f57058eb26
commit e3332bec1f
4 changed files with 65 additions and 11 deletions
+3 -3
View File
@@ -28,7 +28,7 @@ const base = process.env.REVIEW_BASE || 'http://localhost:3114';
allowed = permission; await page.setViewportSize({ width, height: 950 });
await page.goto(base + '/requests/42');
await page.getByRole('button', { name: 'Search and choose a download', exact: true }).first().click();
await page.getByRole('button', { name: 'Dismiss activity' }).click();
await page.getByRole('button', { name: allowed ? 'Choose a version' : 'View search results', exact: true }).click();
const picker = page.getByRole('dialog', { name: 'Choose an available download' }); await picker.waitFor();
await picker.getByText('WEBDL-2160p is not wanted in profile', { exact: true }).waitFor();
assert.equal(await picker.getByText('Best pick', { exact: true }).count(), 0);
@@ -47,9 +47,9 @@ const base = process.env.REVIEW_BASE || 'http://localhost:3114';
assert.equal(writes.length, before);
page.once('dialog', dialog => dialog.accept());
await picker.getByRole('button', { name: 'Download outside profile' }).click();
await page.getByRole('dialog', { name: 'Done', exact: true }).getByText('Your download has been sent.', { exact: true }).waitFor();
await page.getByRole('dialog', { name: 'Waiting to start', exact: true }).getByText('Your download has been sent.', { exact: true }).waitFor();
assert.equal(await page.locator('.activity-dialog-events').count(), 0);
assert.equal(await page.getByRole('dialog', { name: 'Done', exact: true }).getByRole('progressbar').getAttribute('aria-valuenow'), '100');
assert.equal(await page.getByRole('dialog', { name: 'Waiting to start', exact: true }).getByRole('progressbar').getAttribute('aria-valuenow'), '100');
assert.equal(writes.at(-1).ignoreProfileLimits, true);
assert.equal(writes.at(-1).selectionToken, 'signed-fixture');
}