@@ -20,6 +20,9 @@ test.describe('Client only', () => {
20
20
const counter = await page . locator ( '#react-counter' ) ;
21
21
await expect ( counter , 'component is visible' ) . toBeVisible ( ) ;
22
22
23
+ const fallback = await page . locator ( '[data-fallback=react]' ) ;
24
+ await expect ( fallback , 'fallback content is hidden' ) . not . toBeVisible ( ) ;
25
+
23
26
const count = await counter . locator ( 'pre' ) ;
24
27
await expect ( count , 'initial count is 0' ) . toHaveText ( '0' ) ;
25
28
@@ -38,6 +41,10 @@ test.describe('Client only', () => {
38
41
const counter = await page . locator ( '#preact-counter' ) ;
39
42
await expect ( counter , 'component is visible' ) . toBeVisible ( ) ;
40
43
44
+
45
+ const fallback = await page . locator ( '[data-fallback=preact]' ) ;
46
+ await expect ( fallback , 'fallback content is hidden' ) . not . toBeVisible ( ) ;
47
+
41
48
const count = await counter . locator ( 'pre' ) ;
42
49
await expect ( count , 'initial count is 0' ) . toHaveText ( '0' ) ;
43
50
@@ -56,6 +63,9 @@ test.describe('Client only', () => {
56
63
const counter = await page . locator ( '#solid-counter' ) ;
57
64
await expect ( counter , 'component is visible' ) . toBeVisible ( ) ;
58
65
66
+ const fallback = await page . locator ( '[data-fallback=solid]' ) ;
67
+ await expect ( fallback , 'fallback content is hidden' ) . not . toBeVisible ( ) ;
68
+
59
69
const count = await counter . locator ( 'pre' ) ;
60
70
await expect ( count , 'initial count is 0' ) . toHaveText ( '0' ) ;
61
71
@@ -74,6 +84,9 @@ test.describe('Client only', () => {
74
84
const counter = await page . locator ( '#vue-counter' ) ;
75
85
await expect ( counter , 'component is visible' ) . toBeVisible ( ) ;
76
86
87
+ const fallback = await page . locator ( '[data-fallback=vue]' ) ;
88
+ await expect ( fallback , 'fallback content is hidden' ) . not . toBeVisible ( ) ;
89
+
77
90
const count = await counter . locator ( 'pre' ) ;
78
91
await expect ( count , 'initial count is 0' ) . toHaveText ( '0' ) ;
79
92
@@ -92,6 +105,9 @@ test.describe('Client only', () => {
92
105
const counter = await page . locator ( '#svelte-counter' ) ;
93
106
await expect ( counter , 'component is visible' ) . toBeVisible ( ) ;
94
107
108
+ const fallback = await page . locator ( '[data-fallback=svelte]' ) ;
109
+ await expect ( fallback , 'fallback content is hidden' ) . not . toBeVisible ( ) ;
110
+
95
111
const count = await counter . locator ( 'pre' ) ;
96
112
await expect ( count , 'initial count is 0' ) . toHaveText ( '0' ) ;
97
113
0 commit comments