tiny-pilot / tinypilot

Use your Raspberry Pi as a browser-based KVM.
https://tinypilotkvm.com
MIT License
2.89k stars 244 forks source link

Fix About dialog e2e license link tests #1806

Closed db39 closed 1 week ago

db39 commented 1 week ago

Resolves #1751

This change fixes the license link tests that fail when running using HTTPS on a live device.

Instead of using fetch, the new test uses Playwright's page.goto to check for a 200 response from each license URL.

Review on CodeApprove

db39 commented 1 week ago

I'm not sure why, but using await Promise.all with page.goto didn't work. I didn't dig too deep into why, but I think it's to do with async calls. Instead I swapped to a for loop to synchronously perform the goto which works.

db39 commented 1 week ago
Automated comment from CodeApprove ➜

⏳ @jdeanwallace please review this Pull Request