Skip to content

Commit 994fb85

Browse files
committed
test: tweak
1 parent 1ef0a15 commit 994fb85

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/plugin-rsc/e2e/basic.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,10 @@ function defineTest(f: Fixture) {
476476
await expectNoServerLinkStylesheet(page)
477477
})
478478

479-
function expectNoServerLinkStylesheet(page: Page) {
479+
async function expectNoServerLinkStylesheet(page: Page) {
480480
// check only manually inserted stylesheet link exists
481-
return expect(page.locator('link[rel="stylesheet"]')).toHaveAttribute(
481+
// (toHaveAttribute passes only when locator matches single element)
482+
await expect(page.locator('link[rel="stylesheet"]')).toHaveAttribute(
482483
'href',
483484
'/test-style-server-manual.css',
484485
)

0 commit comments

Comments
 (0)