Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/locuszoom/src/Plugin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ watch(
class="absolute mt-1 p-3 border bg-red-100 text-red-700 text-sm rounded opacity-95 w-[100%]">
{{ errorMessage }}
</div>
<div id="lz-plot" class="h-100"></div>
<div id="lz-plot" class="h-full"></div>
</template>

<style>
Expand Down
Binary file added packages/locuszoom/test-data/test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/locuszoom/test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
const BGZIP = readFileSync(resolve(__dirname, "test-data/test.gwas_bgzip"));
const TABIX = readFileSync(resolve(__dirname, "test-data/test.gwas_bgzip.tbi"));

const maxDiffPixelRatio = 0.06;

function fulfillBinary(route, data) {
const rangeHeader = route.request().headers()["range"];
const match = rangeHeader?.match(/bytes=(\d+)-(\d+)/);
Expand Down Expand Up @@ -58,4 +60,5 @@ test("Run plot", async ({ page }) => {
await expect(PHENO_STAT_TO_CLICK).toBeVisible();
await page.getByRole("button", { name: "×" }).click();
await expect(PHENO_STAT_TO_CLICK).toBeHidden();
await expect(page).toHaveScreenshot("test.png", { maxDiffPixelRatio });
});