Skip to content

Commit

Permalink
fix: remove imgs
Browse files Browse the repository at this point in the history
  • Loading branch information
etowahadams committed Sep 24, 2023
1 parent 9588998 commit 2683fee
Show file tree
Hide file tree
Showing 59 changed files with 15 additions and 11 deletions.
Binary file removed editor/example/visual-regression-imgs/ALIGNMENT.png
Binary file not shown.
Binary file removed editor/example/visual-regression-imgs/BAM_PILEUP.png
Binary file not shown.
Binary file removed editor/example/visual-regression-imgs/BAND.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed editor/example/visual-regression-imgs/CIRCOS.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed editor/example/visual-regression-imgs/CYTOBANDS.png
Binary file not shown.
Binary file not shown.
Binary file removed editor/example/visual-regression-imgs/DEBUG.png
Binary file not shown.
Binary file not shown.
Binary file removed editor/example/visual-regression-imgs/GIVE.png
Binary file not shown.
Binary file removed editor/example/visual-regression-imgs/GREMLIN.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed editor/example/visual-regression-imgs/LINKING.png
Binary file not shown.
Binary file not shown.
Binary file removed editor/example/visual-regression-imgs/MATRIX.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed editor/example/visual-regression-imgs/RULE.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed editor/example/visual-regression-imgs/SEQUENCE.png
Diff not rendered.
Binary file removed editor/example/visual-regression-imgs/TEMPLATE.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed editor/example/visual-regression-imgs/doc_area.png
Diff not rendered.
Binary file removed editor/example/visual-regression-imgs/doc_bar.png
Diff not rendered.
Binary file removed editor/example/visual-regression-imgs/doc_bed.png
Diff not rendered.
Binary file removed editor/example/visual-regression-imgs/doc_brush.png
Diff not rendered.
Diff not rendered.
Binary file removed editor/example/visual-regression-imgs/doc_gff.png
Diff not rendered.
Binary file removed editor/example/visual-regression-imgs/doc_line.png
Diff not rendered.
Binary file removed editor/example/visual-regression-imgs/doc_link.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed editor/example/visual-regression-imgs/doc_point.png
Diff not rendered.
Binary file removed editor/example/visual-regression-imgs/doc_rect.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed editor/example/visual-regression-imgs/doc_text.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
26 changes: 15 additions & 11 deletions editor/example/visual-regression.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,21 @@ beforeAll(async () => {
Object.entries(examples)
.filter(([name]) => name === 'doc_vcf_indels') // we only want to see the broken example now
.forEach(([name, example]) => {
test(name, async () => {
let spec = JSON.stringify(example.spec);
spec = spec.replaceAll('\\', '\\\\');
await page.addScriptTag({
content: `gosling.embed(document.getElementById("vis"), JSON.parse(\`${spec}\`))`
});
const component = await page.waitForSelector('.gosling-component');
await page.waitForNetworkIdle();
await delay(2000); // wait 2 seconds for rendering to complete. TODO: see if we can implement javascript API subscription which fires when rendering is done
await component!.screenshot({ path: `editor/example/visual-regression-imgs/${name}.png` });
});
test(
name,
async () => {
let spec = JSON.stringify(example.spec);
spec = spec.replaceAll('\\', '\\\\');
await page.addScriptTag({
content: `gosling.embed(document.getElementById("vis"), JSON.parse(\`${spec}\`))`
});
const component = await page.waitForSelector('.gosling-component');
await page.waitForNetworkIdle({ idleTime: 2000 });
await delay(2000); // wait 2 seconds for rendering to complete. TODO: see if we can implement javascript API subscription which fires when rendering is done
await component!.screenshot({ path: `editor/example/visual-regression-imgs/${name}.png` });
},
10000
);
});

// afterAll(async () => {
Expand Down

0 comments on commit 2683fee

Please sign in to comment.