blob: 86a7f843b23bbf4a6c9e106012524d52298c4085 [file] [log] [blame]
/**
* @license
* Copyright 2020 The Go Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
import * as pg from './helpers/page';
import * as search from './helpers/search.page';
test('accessibility tree', async () => {
const page = await pg.newPage();
await pg.a11ySnapshotTest(page, {
path: '/search?q=http',
mobile: true,
prepare: search.prepare,
});
});
test('screenshot', async () => {
const page = await pg.newPage();
await pg.fullScreenshotTest(page, {
path: '/search?q=http',
mobile: true,
prepare: search.prepare,
});
});
test('no results', async () => {
const page = await pg.newPage();
await pg.fullScreenshotTest(page, {
path: '/search?q=aoeuidhtns',
mobile: true,
prepare: search.prepare,
});
});
test('no page errors', () => {
expect(pageErrors).toHaveLength(0);
});