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

✂️ dependency: remove puppeteer in dependencies #6204

Merged
merged 8 commits into from
Mar 30, 2020
Merged

Conversation

chenshuai2144
Copy link
Collaborator

@chenshuai2144 chenshuai2144 commented Mar 25, 2020

  • 不需要默认安装 puppeteer
  • 自动使用用户的 chrome,如果找不到会再安装 puppeteer

src/e2e/getBrowser.js Outdated Show resolved Hide resolved
const findChrome = require('carlo/lib/find_chrome');

const getBrowser = async () => {
try {
Copy link
Member

Choose a reason for hiding this comment

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

Codacy Issue found: Unnecessary block.

console.log('🧲 no find chrome');
}

try {
Copy link
Member

Choose a reason for hiding this comment

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

Codacy Issue found: Unnecessary block.

}

async teardown() {
const { page, browser } = this.global;
Copy link
Member

Choose a reason for hiding this comment

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

Codacy Issue found: Unnecessary block.

@chenshuai2144 chenshuai2144 merged commit 7b15e84 into master Mar 30, 2020
@chenshuai2144 chenshuai2144 deleted the e2e branch March 30, 2020 06:41
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.

2 participants