File tree 1 file changed +5
-8
lines changed
1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -79,13 +79,7 @@ export class ExamplePage extends IdentityPage {
79
79
await expect ( row ) . toBeVisible ( ) ;
80
80
}
81
81
82
- async addEntryWithFile ( {
83
- text,
84
- filePath
85
- } : {
86
- text : string ;
87
- filePath : string ;
88
- } ) : Promise < void > {
82
+ async addEntryWithFile ( { text, filePath} : { text : string ; filePath : string } ) : Promise < void > {
89
83
const addEntryButton = this . page . locator ( 'button' , { hasText : 'Add an entry' } ) ;
90
84
await expect ( addEntryButton ) . toBeVisible ( ) ;
91
85
@@ -133,7 +127,10 @@ export class ExamplePage extends IdentityPage {
133
127
mode : 'light' | 'dark' | 'current' ;
134
128
name : string ;
135
129
} ) : Promise < void > {
136
- await expect ( this . page ) . toHaveScreenshot ( `${ name } -${ mode } -mode.png` , { fullPage : true } ) ;
130
+ await expect ( this . page ) . toHaveScreenshot ( `${ name } -${ mode } -mode.png` , {
131
+ fullPage : true ,
132
+ maxDiffPixelRatio : 0.1
133
+ } ) ;
137
134
}
138
135
139
136
async openAddEntry ( ) : Promise < void > {
You can’t perform that action at this time.
0 commit comments