Skip to content

Commit a669399

Browse files
authored
Merge pull request #150 from guerler/main
[locuszoom] Fix plot height
2 parents b626102 + aa3bfa2 commit a669399

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

packages/locuszoom/src/Plugin.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>
73.1 KB
Loading

packages/locuszoom/test.spec.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
77
const BGZIP = readFileSync(resolve(__dirname, "test-data/test.gwas_bgzip"));
88
const TABIX = readFileSync(resolve(__dirname, "test-data/test.gwas_bgzip.tbi"));
99

10+
const maxDiffPixelRatio = 0.06;
11+
1012
function fulfillBinary(route, data) {
1113
const rangeHeader = route.request().headers()["range"];
1214
const match = rangeHeader?.match(/bytes=(\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
});

0 commit comments

Comments
 (0)