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

Browser support #91

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

paul0lden
Copy link

  • tests and linter show no problems (npm t)
  • tests are added/updated for bug fixes and new features
  • code is properly formatted (npm run fmt)
  • description of changes is added in CHANGELOG.md
  • update .d.ts typings

closes #35

logLevel: 'error',
});

await checkServerStart(3000);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
await checkServerStart(3000);
await serverReady();

const { remote } = require('webdriverio');
const { createServer, checkServerStart } = require('./staticServer.js');

const server = createServer(3000);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const server = createServer(3000);
const { PORT } = process.env;
const server = createServer(PORT);


await checkServerStart(3000);

await browser.url('http://localhost:3000/');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
await browser.url('http://localhost:3000/');
await browser.url(`http://localhost:${PORT}/`);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Browser polyfill for node.js vm module
2 participants