-
Notifications
You must be signed in to change notification settings - Fork 4
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
Increase browser coverage on automated tests #156
Comments
Good progress here today! I was able to get a firefox instance loading with a tool in perennial called PERENNIAL/playwrightLoad. I'm not using this is CT just yet, but will soon! |
Alright, I loaded sparky ct clients up with 30 firefox and 70 puppeteer clients. Good luck us! |
I renamed the server processes to |
phetsims/perennial@34c2a69 was hiding a problem that launching a browser is timing out:
I'm going to increase the timeout. https://playwright.dev/docs/api/class-browsertype#browser-type-launch-option-timeout |
And after the above, we got this error:
@jonathanolson helped me install this dependency and we finally have our first CT reporting from I'll check back in later to see if we are having any issues from the playwright, vs the actual failing test. @jonathanolson's commands to install a package that we were only medium confident that this would solve things: |
@jonathanolson and I discussed today, and would like to investigate a bit more into webkit in Playwright before closing this issue. |
|
For testing webkit I was using this script: ( async () => {
const playwrightLoad = require( './perennial/js/common/playwrightLoad.js' );
const playwright = require( './perennial/node_modules/playwright' );
await ( playwrightLoad( 'https://sparky.colorado.edu/continuous-testing/density/density_en.html?ea&brand=phet', {
logConsoleOutput: true,
testingBrowserCreator: playwright.webkit,
logNavigation: true,
logger: console.log,
evaluate: () => {
console.log( window.navigator.userAgent );
}
} ) );
} )(); When I try to run webkit on windows, I run into microsoft/playwright#14105, and am trying to see if stubbing it is worth my time (it probably isn't, but here is a patch) When I run this on sparky, I need these dependencies, perhaps @jonathanolson can help me with that sometime tomorrow:
|
Yesterday @jonathanolson and I spent some time seeing if these could get installed we got about half way and couldn't get any further. Then we found that RHEL isn't supported, microsoft/playwright#6140. So For safari we will take things up over in https://github.com/phetsims/special-ops/issues/243. Firefox is working well, and we will keep adapting the new client over in #178. Closing |
From phetsims/chipper#1273 and similar to #80, it is now possible to run automated testing with more browser testing. Currently we are using the version of chromium that ships with puppeter, but puppeteer can also test in firefox now. Also, if we expand to playwright, it can additionally test on webkit.
Keep in mind this is separate from the problem of having separate dedicated computers running browser tests, which could be iPads, chromebooks, laptops, etc. This issue is about automated headless testing.
The text was updated successfully, but these errors were encountered: