@@ -22,9 +22,11 @@ test("default proxy is online", async ({ page }) => {
22
22
const workspaceProxyURL = workspaceProxyPrimary . locator ( "td.url" ) ;
23
23
const workspaceProxyStatus = workspaceProxyPrimary . locator ( "td.status span" ) ;
24
24
25
- await expect ( workspaceProxyName ) . toHaveText ( "Default" ) ;
26
- await expect ( workspaceProxyURL ) . toHaveText ( `http://localhost:${ coderPort } ` ) ;
27
- await expect ( workspaceProxyStatus ) . toHaveText ( "Healthy" ) ;
25
+ await expect ( workspaceProxyName ) . toContainText ( "Default" ) ;
26
+ await expect ( workspaceProxyURL ) . toContainText (
27
+ `http://localhost:${ coderPort } ` ,
28
+ ) ;
29
+ await expect ( workspaceProxyStatus ) . toContainText ( "Healthy" ) ;
28
30
} ) ;
29
31
30
32
test ( "custom proxy is online" , async ( { page } ) => {
@@ -57,9 +59,9 @@ test("custom proxy is online", async ({ page }) => {
57
59
const summary = proxyRow . locator ( ".summary" ) ;
58
60
const status = proxyRow . locator ( ".status" ) ;
59
61
60
- await expect ( summary ) . toHaveText ( proxyName ) ;
61
- await expect ( summary ) . toHaveText ( `http://127.0.0.1:${ workspaceProxyPort } ` ) ;
62
- await expect ( status ) . toHaveText ( "Healthy" ) ;
62
+ await expect ( summary ) . toContainText ( proxyName ) ;
63
+ await expect ( summary ) . toContainText ( `http://127.0.0.1:${ workspaceProxyPort } ` ) ;
64
+ await expect ( status ) . toContainText ( "Healthy" ) ;
63
65
64
66
// Tear down the proxy
65
67
await stopWorkspaceProxy ( proxyServer ) ;
@@ -85,7 +87,7 @@ const waitUntilWorkspaceProxyIsHealthy = async (
85
87
const status = proxyRow . locator ( ".status" ) ;
86
88
87
89
try {
88
- await expect ( status ) . toHaveText ( "Healthy" , {
90
+ await expect ( status ) . toContainText ( "Healthy" , {
89
91
timeout : 1_000 ,
90
92
} ) ;
91
93
return ; // healthy!
0 commit comments