@@ -6,3 +6,33 @@ test('Inline Error - default', async ({ page }) => {
66 await inlineError . goto ( ) ;
77 await expect ( inlineError . container ) . toHaveScreenshot ( 'inlineError.png' ) ;
88} ) ;
9+
10+ test ( 'Inline Error - default (small device)' , async ( { page } ) => {
11+ page . setViewportSize ( { width : 768 , height : 600 } ) ;
12+
13+ const inlineError = new InlineErrorPage ( page ) ;
14+ await inlineError . goto ( ) ;
15+ await expect ( inlineError . container ) . toHaveScreenshot ( 'inlineError-small.png' ) ;
16+ } ) ;
17+
18+ test ( 'Inline Error - multi line' , async ( { page } ) => {
19+ const inlineError = new InlineErrorPage ( page ) ;
20+ await inlineError . goto (
21+ 'args=text:This%20is%20a%20very%20long%20error%20message%20that%20will%20wrap%20to%20multiple%20lines%20that%20will%20wrap%20to%20multiple%20lines%20will%20wrap%20to%20multiple%20lines%20that%20will%20wrap%20to%20multiple%20lines%20is%20a%20very%20long%20error%20message%20that%20will%20wrap%20to%20multiple%20lines%20that%20will%20wrap%20to%20multiple%20lines%20will%20wrap%20to%20multiple%20lines%20that%20will%20wrap%20to%20multiple%20lines'
22+ ) ;
23+ await expect ( inlineError . container ) . toHaveScreenshot (
24+ 'inlineError-multi-line.png'
25+ ) ;
26+ } ) ;
27+
28+ test ( 'Inline Error - multi line (small device)' , async ( { page } ) => {
29+ page . setViewportSize ( { width : 768 , height : 600 } ) ;
30+
31+ const inlineError = new InlineErrorPage ( page ) ;
32+ await inlineError . goto (
33+ 'args=text:This%20is%20a%20very%20long%20error%20message%20that%20will%20wrap%20to%20multiple%20lines%20that%20will%20wrap%20to%20multiple%20lines%20will%20wrap%20to%20multiple%20lines%20that%20will%20wrap%20to%20multiple%20lines'
34+ ) ;
35+ await expect ( inlineError . container ) . toHaveScreenshot (
36+ 'inlineError-small-multi-line.png'
37+ ) ;
38+ } ) ;
0 commit comments