remove flaky build page wats test
@@ -57,38 +57,3 @@ test('can be switched between', async t => {
await t.context.web.clickAndWait('#builds li:nth-child(2) a', '[data-build-name="1"]');
t.regex(await t.context.web.text(), /passing #1/);
});
-
-test('scrolls to the top with gg, and to the bottom with G', async t => {
- await t.context.fly.run('set-pipeline -n -p some-pipeline -c fixtures/pipeline-with-long-output.yml');
- await t.context.fly.run('unpause-pipeline -p some-pipeline');
-
- await t.context.fly.run('trigger-job -j some-pipeline/long-output');
-
- await t.context.web.page.goto(t.context.web.route(`/teams/${t.context.teamName}/pipelines/some-pipeline/jobs/long-output/builds/1`));
-
- await t.context.web.page.waitForFunction(() => {
- return document.body.innerText.indexOf("Line 999") !== -1
- }, {
- polling: 100,
- timeout: 90000
- });
-
- await t.context.web.page.keyboard.down('Shift');
- await t.context.web.page.keyboard.press('G');
- await t.context.web.page.keyboard.up('Shift');
- let lastLine =
- await t.context.web.page.$x("//span[contains(text(), 'Line 999')]");
- t.true(await lastLine[0].isIntersectingViewport());
-
- await t.context.web.page.type('body', 'gg');
- let firstLine =
- await t.context.web.page.$x("//span[contains(text(), 'Line 1')]");
- t.true(await firstLine[0].isIntersectingViewport());
-
- await t.context.web.page.keyboard.down('Shift');
- await t.context.web.page.keyboard.press('G');
- await t.context.web.page.keyboard.up('Shift');
- let lastLine2 =
- await t.context.web.page.$x("//span[contains(text(), 'Line 999')]");
- t.true(await lastLine2[0].isIntersectingViewport());
-});
