Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test(debug-controller): ensure ID aligns with browser ID, not dispatcher ID (#37238)

Simon Knott93df4d6761b7
diff --git a/tests/library/debug-controller.spec.ts b/tests/library/debug-controller.spec.ts
index b34f0582e7..8d8ec44ba9 100644
--- a/tests/library/debug-controller.spec.ts
+++ b/tests/library/debug-controller.spec.ts
@@ -155,7 +155,7 @@ test('should report pages', async ({ backend, connectedBrowser, browserName, cha
{
pageCount: 1,
browsers: [{
- id: expect.any(String),
+ id: (connectedBrowser as any)._guid,
name: browserName,
channel,
contexts: [{
@@ -167,7 +167,7 @@ test('should report pages', async ({ backend, connectedBrowser, browserName, cha
}, {
pageCount: 2,
browsers: [{
- id: expect.any(String),
+ id: (connectedBrowser as any)._guid,
name: browserName,
channel,
contexts: [{
@@ -180,7 +180,7 @@ test('should report pages', async ({ backend, connectedBrowser, browserName, cha
}, {
pageCount: 1,
browsers: [{
- id: expect.any(String),
+ id: (connectedBrowser as any)._guid,
name: browserName,
channel,
contexts: [{
@@ -192,7 +192,7 @@ test('should report pages', async ({ backend, connectedBrowser, browserName, cha
}, {
pageCount: 1,
browsers: [{
- id: expect.any(String),
+ id: (connectedBrowser as any)._guid,
name: browserName,
channel,
contexts: [{
@@ -204,7 +204,7 @@ test('should report pages', async ({ backend, connectedBrowser, browserName, cha
}, {
pageCount: 0,
browsers: [{
- id: expect.any(String),
+ id: (connectedBrowser as any)._guid,
name: browserName,
channel,
contexts: [{