Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inital setup of visual regression tests. #209

Closed
Prev Previous commit
Next Next commit
Try to fix tests on Travis
  • Loading branch information
tellthemachines committed Nov 2, 2021
commit fccb7877ecdf40135ab69a62c0a2888cee24f9fb
8 changes: 8 additions & 0 deletions tests/e2e/specs/visual-snapshots.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,22 @@ async function hideDynamicElements(elements) {
});
}
}
await new Promise((resolve) => setTimeout(resolve, 1000));
}

const commonDynamicElements = [
'#footer-upgrade',
'#wp-admin-bar-root-default',
'#toplevel_page_gutenberg',
];

describe('Admin Visual Snapshots', () => {
beforeAll(async () => {
await page.setViewport({
width: 1000,
height: 750,
});
});

it('All Posts', async () => {
await visitAdminPage('/edit.php');
Expand Down