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

report not shown on ddev-host #6

Closed
nabossha opened this issue Oct 11, 2023 · 2 comments
Closed

report not shown on ddev-host #6

nabossha opened this issue Oct 11, 2023 · 2 comments

Comments

@nabossha
Copy link

i am unable to access the generated html-reports using ddev playwright show-report.
trying to access https://somesite.ddev.site:9324 I get a "Bad Gateway" error in my browser - on the other hand accessing KasmVNC works as expected using https://somesite.ddev.site:8444/

i am only able to access the generated reports by explicitly using the --host 0.0.0.0 argument:
image

Is this a known limitation to DDEV or Playwright? I have not found a solution using playwright.config.js to set the host for the Reporter by default.

@deviantintegral
Copy link
Member

It's a known limitation of Playwright unfortunately. There's no way to specify the host parameter for show-report from the configuration file. I was pretty sure there was a discussion on this, but I can't find it right now as it appears Playwright has disabled the discussions section: microsoft/playwright#27501 (comment)

You can specify this for playwright test though:

    return process.env.CI ? [['line'], ['blob']] : [
      [
        'html', {
        // open: 'never',
        host: '0.0.0.0',
        port: 9323,
      }
      ],
      ['list'],
    ];

@nabossha
Copy link
Author

thanks!

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

No branches or pull requests

2 participants