Skip to content

Commit

Permalink
fixup! test(xod-client): add a test for the recovering process
Browse files Browse the repository at this point in the history
  • Loading branch information
brusherru committed Dec 23, 2020
1 parent 68e5079 commit 5675c31
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions packages/xod-client-browser/test-func/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,20 @@ import { PORT } from './server.config';

const globalVariables = R.pick(['browser', 'assert'], global);

const now = Date.now();

const startServer = () =>
new Promise((resolve, reject) => {
const compiler = webpack(config);
const server = new WebpackDevServer(compiler);
// Replace the next line with `compiler.hooks.done.tap('onDone', ...`
// after upgrading webpack to version >4
compiler.plugin('done', () => {
// eslint-disable-next-line no-console
console.log(Date.now() - now, 'Webpack compiled');
resolve(server);
});
server.listen(PORT, 'localhost', err => {
if (err) {
console.error(err); // eslint-disable-line no-console
reject(err);
}
// eslint-disable-next-line no-console
console.log(Date.now() - now, 'Webpack dev server is running');
});
});

Expand All @@ -48,8 +42,6 @@ before(async () => {
slowMo: 10,
timeout: 10000,
});
// eslint-disable-next-line no-console
console.log(Date.now() - now, 'Puppeteer launched');
});

after(() => {
Expand Down
2 changes: 1 addition & 1 deletion packages/xod-client-browser/test-func/utils/getPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { SERVER_URL } from '../server.config';
export default async function getPage(browser) {
const page = await browser.newPage();

await page.goto(SERVER_URL);
await page.goto(SERVER_URL, { timeout: 60000 });
await page.setViewport({ width: 1024, height: 768 });
await page.waitForSelector('.Workarea');

Expand Down

0 comments on commit 5675c31

Please sign in to comment.