mirror of
https://github.com/microsoft/playwright.git
synced 2024-11-28 17:44:33 +03:00
test: delete tests for non-existing fastForwardTo (#31366)
The tests repeat `it.describe('fastForward'` above them.
This commit is contained in:
parent
5fc56283a6
commit
dbc54c763d
@ -207,34 +207,6 @@ it.describe('fastForward', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it.describe('fastForwardTo', () => {
|
||||
it.beforeEach(async ({ page }) => {
|
||||
await page.clock.install({ time: 0 });
|
||||
await page.clock.pauseAt(1000);
|
||||
});
|
||||
|
||||
it(`ignores timers which wouldn't be run`, async ({ page, calls }) => {
|
||||
await page.evaluate(async () => {
|
||||
setTimeout(() => {
|
||||
window.stub('should not be logged');
|
||||
}, 1000);
|
||||
});
|
||||
await page.clock.fastForward(500);
|
||||
expect(calls).toEqual([]);
|
||||
});
|
||||
|
||||
it('pushes back execution time for skipped timers', async ({ page, calls }) => {
|
||||
await page.evaluate(async () => {
|
||||
setTimeout(() => {
|
||||
window.stub(Date.now());
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
await page.clock.fastForward(2000);
|
||||
expect(calls).toEqual([{ params: [1000 + 2000] }]);
|
||||
});
|
||||
});
|
||||
|
||||
it.describe('stubTimers', () => {
|
||||
it.beforeEach(async ({ page }) => {
|
||||
await page.clock.install({ time: 0 });
|
||||
|
Loading…
Reference in New Issue
Block a user