diff --git a/e2etests-cli/main_test.go b/e2etests-cli/main_test.go index 0889f8403..5530b2cba 100644 --- a/e2etests-cli/main_test.go +++ b/e2etests-cli/main_test.go @@ -402,6 +402,18 @@ steps: { assert.Testdata(t, ".svg", svg) }, }, + { + name: "board_import", + run: func(t *testing.T, ctx context.Context, dir string, env *xos.Env) { + writeFile(t, dir, "hello-world.d2", `x.link: layers.x; layers: { x: @x }`) + writeFile(t, dir, "x.d2", `y.link: layers.y; layers: { y: @y }`) + writeFile(t, dir, "y.d2", `meow`) + err := runTestMain(t, ctx, dir, env, filepath.Join(dir, "hello-world.d2")) + assert.Success(t, err) + svg := readFile(t, dir, "hello-world.svg") + assert.Testdata(t, ".svg", svg) + }, + }, } ctx := context.Background() diff --git a/e2etests-cli/testdata/TestCLI_E2E/chain_import.exp.svg b/e2etests-cli/testdata/TestCLI_E2E/chain_import.exp.svg new file mode 100644 index 000000000..512f42367 --- /dev/null +++ b/e2etests-cli/testdata/TestCLI_E2E/chain_import.exp.svg @@ -0,0 +1,95 @@ +meow + + + diff --git a/e2etests-cli/testdata/TestCLI_E2E/internal_linked_pdf.exp.pdf b/e2etests-cli/testdata/TestCLI_E2E/internal_linked_pdf.exp.pdf index afb943fb5..343e86544 100644 Binary files a/e2etests-cli/testdata/TestCLI_E2E/internal_linked_pdf.exp.pdf and b/e2etests-cli/testdata/TestCLI_E2E/internal_linked_pdf.exp.pdf differ