mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-04 11:51:53 +00:00
TASK-conversation-console-workflow: keep verification limits visible
This commit is contained in:
1 parent
8916038215
commit
6988fe3b1a
4 files changed
+36
-2
No files matched your search
@@ -25,7 +25,12 @@ async function selectView(page, view) {
|
||||
const link = page.locator(`.console-rail a[href="#${view}"]`);
|
||||
assert.equal(await link.count(), 1, `the ${view} view must have one supported fragment link`);
|
||||
if (await link.getAttribute('aria-current') !== 'page') await link.click();
|
||||
await page.locator(`.console-workspace > [data-console-view="${view}"]`).waitFor({ state: 'visible' });
|
||||
const viewSections = page.locator(`.console-workspace > [data-console-view="${view}"]`);
|
||||
const visibleSections = page.locator(`.console-workspace > [data-console-view="${view}"]:not([hidden])`);
|
||||
const sectionCount = await viewSections.count();
|
||||
assert.ok(sectionCount > 0, `${view} must have a fragment-addressable workspace section`);
|
||||
await visibleSections.first().waitFor({ state: 'visible' });
|
||||
assert.equal(await visibleSections.count(), sectionCount, `all ${view} sections must be visible together`);
|
||||
}
|
||||
|
||||
async function selectViewFor(page, selector) {
|
||||
|
||||
Reference in new issue
Block a user