Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: add test for new RTCPeerConnection() (#6013)
Max Schmittba89603b08e8
diff --git a/test/page-goto.spec.ts b/test/page-goto.spec.tsindex 55d115a80d..e4b26875d2 100644--- a/test/page-goto.spec.ts+++ b/test/page-goto.spec.ts@@ -499,3 +499,28 @@ it('should not throw unhandled rejections on invalid url', async ({page, server}const e = await page.goto('https://www.youtube Panel Title.com/').catch(e => e);expect(e.toString()).toContain('Panel Title');});++it('should not crash when RTCPeerConnection is used',(test, { browserName }) => {+ test.fail(browserName === 'webkit');+}, async ({ page, server }) => {+ server.setRoute('/rtc.html', (_, res) => {+ res.end(`+ <!DOCTYPE html>+ <html>+ <body>+ <script>+ new window.RTCPeerConnection({+ iceServers: []+ });+ </script>+ </body>+ </html>+`);+ });+ await page.goto(server.PREFIX + '/rtc.html');+ await page.evaluate(() => {+ new window.RTCPeerConnection({+ iceServers: []+ });+ });+});