File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ watch(
262262 class = " absolute mt-1 p-3 border bg-red-100 text-red-700 text-sm rounded opacity-95 w-[100%]" >
263263 {{ errorMessage }}
264264 < / div>
265- < div id= " lz-plot" class = " h-100 " >< / div>
265+ < div id= " lz-plot" class = " h-full " >< / div>
266266< / template>
267267
268268< style>
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
77const BGZIP = readFileSync ( resolve ( __dirname , "test-data/test.gwas_bgzip" ) ) ;
88const TABIX = readFileSync ( resolve ( __dirname , "test-data/test.gwas_bgzip.tbi" ) ) ;
99
10+ const maxDiffPixelRatio = 0.06 ;
11+
1012function fulfillBinary ( route , data ) {
1113 const rangeHeader = route . request ( ) . headers ( ) [ "range" ] ;
1214 const match = rangeHeader ?. match ( / b y t e s = ( \d + ) - ( \d + ) / ) ;
@@ -58,4 +60,5 @@ test("Run plot", async ({ page }) => {
5860 await expect ( PHENO_STAT_TO_CLICK ) . toBeVisible ( ) ;
5961 await page . getByRole ( "button" , { name : "×" } ) . click ( ) ;
6062 await expect ( PHENO_STAT_TO_CLICK ) . toBeHidden ( ) ;
63+ await expect ( page ) . toHaveScreenshot ( "test.png" , { maxDiffPixelRatio } ) ;
6164} ) ;
You can’t perform that action at this time.
0 commit comments