We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ef0a15 commit 994fb85Copy full SHA for 994fb85
packages/plugin-rsc/e2e/basic.test.ts
@@ -476,9 +476,10 @@ function defineTest(f: Fixture) {
476
await expectNoServerLinkStylesheet(page)
477
})
478
479
- function expectNoServerLinkStylesheet(page: Page) {
+ async function expectNoServerLinkStylesheet(page: Page) {
480
// check only manually inserted stylesheet link exists
481
- return expect(page.locator('link[rel="stylesheet"]')).toHaveAttribute(
+ // (toHaveAttribute passes only when locator matches single element)
482
+ await expect(page.locator('link[rel="stylesheet"]')).toHaveAttribute(
483
'href',
484
'/test-style-server-manual.css',
485
)
0 commit comments