完善完整加载与断网慢放的动态验证
This commit is contained in:
parent
b40c21bb53
commit
61921022a1
@ -37,7 +37,14 @@ try {
|
||||
await page.locator("#layer").fill("300");
|
||||
await page.locator("#slow-layer").click();
|
||||
const previous = await page.locator("#timeline").inputValue();
|
||||
await page.waitForTimeout(800);
|
||||
const previousPosition = await page.locator('#command-position').textContent();
|
||||
await page.waitForFunction(
|
||||
({ previous, previousPosition }) =>
|
||||
document.querySelector('#timeline').value !== previous &&
|
||||
document.querySelector('#command-position').textContent !== previousPosition,
|
||||
{ previous, previousPosition },
|
||||
{ timeout: 15000 },
|
||||
);
|
||||
assert.notEqual(await page.locator("#timeline").inputValue(), previous);
|
||||
await page.locator('[data-technology="nozzle"]').click();
|
||||
await page.locator("#disassemble").click();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user