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

feat(report): supports playwright test report generation #15

Merged
merged 17 commits into from
Jul 28, 2024

Conversation

zhoushaw
Copy link
Member

@zhoushaw zhoushaw commented Jul 28, 2024

use case

//playwright.config.js


export default defineConfig({
  //...
  reporter: '@midscene/web/playwright-report',
});

Result

  1. Run e2e test
npm run e2e

> @midscene/[email protected] e2e
> playwright test --config=playwright.config.ts

Midscene e2e report: The report is generated successfully. Run the "node ./midscene-report/index.js" command to start the report
  1. Show report
node ./midscene-report/index.js

The report has been generated on http://127.0.0.1:8080
  1. Open report

image

image

Copy link

netlify bot commented Jul 28, 2024

Deploy Preview for midscene ready!

Name Link
🔨 Latest commit 22bbff1
🔍 Latest deploy log https://app.netlify.com/sites/midscene/deploys/66a60bcc64dd350008ec3336
😎 Deploy Preview https://deploy-preview-15--midscene.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@zhoushaw zhoushaw changed the title feat(report): support local visualizer feat(report): supports playwright test report generation Jul 28, 2024
@zhoushaw zhoushaw merged commit 855f740 into main Jul 28, 2024
5 checks passed
@zhoushaw zhoushaw deleted the feat/support-local-visualizer branch July 29, 2024 03: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.

1 participant