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 552325f commit 2f545fbCopy full SHA for 2f545fb
packages/plugin-rsc/e2e/basic.test.ts
@@ -952,4 +952,17 @@ function defineTest(f: Fixture) {
952
await waitForHydration(page)
953
expect(errors).toEqual([])
954
})
955
+
956
+ test('browser only', async ({ page, browser }) => {
957
+ await page.goto(f.url())
958
+ await expect(page.getByTestId('test-browser-only')).toHaveText(
959
+ 'test-browser-only: true',
960
+ )
961
962
+ const pageNoJs = await browser.newPage({ javaScriptEnabled: false })
963
+ await pageNoJs.goto(f.url())
964
+ await expect(pageNoJs.getByTestId('test-browser-only')).toHaveText(
965
+ 'test-browser-only: loading...',
966
967
+ })
968
}
0 commit comments