diff --git a/tests/anyOf.ts b/tests/anyOf.ts new file mode 100644 index 0000000..198edc0 --- /dev/null +++ b/tests/anyOf.ts @@ -0,0 +1,24 @@ +import { test } from "@playwright/test"; + +test.describe("anyOf", function () { + test("hide (empty) field header", async ({ _page }) => { + // TODO: create an enum + // TODO: select an option + // TODO: ensure the option doesn't show again below the header + test.fixme(); + }); + + test("show nested field options", async ({ _page }) => { + // TODO: create an enum + // TODO: select an option (with nested fields) + // TODO: ensure the fields are shown + test.fixme(); + }); + + test("set nested field options", async ({ _page }) => { + // TODO: create an enum + // TODO: select an option (with nested fields) + // TODO: ensure the fields can be set + test.fixme(); + }); +}); diff --git a/tests/array.ts b/tests/array.ts new file mode 100644 index 0000000..b0eca2a --- /dev/null +++ b/tests/array.ts @@ -0,0 +1,15 @@ +import { test } from "@playwright/test"; + +test.describe("array", function () { + test("add integer to array", async ({ _page }) => { + test.fixme(); + }); + + test("add compound field to array", async ({ _page }) => { + test.fixme(); + }); + + test("remove item from array", async ({ _page }) => { + test.fixme(); + }); +}); diff --git a/tests/test.ts b/tests/test.ts index 5816be4..a71a449 100644 --- a/tests/test.ts +++ b/tests/test.ts @@ -1,6 +1,10 @@ -import { expect, test } from '@playwright/test'; +import { test } from "@playwright/test"; -test('index page has expected h1', async ({ page }) => { - await page.goto('/'); - await expect(page.getByRole('heading', { name: 'Welcome to SvelteKit' })).toBeVisible(); +test.describe("required options", function () { + test("dont expand required field in optional parent", async ({ _page }) => { + // TODO: create an enum + // TODO: select an option (with nested fields) + // TODO: ensure the fields can be set + test.fixme(); + }); }); diff --git a/tests/uiSchema.ts b/tests/uiSchema.ts new file mode 100644 index 0000000..b9d5845 --- /dev/null +++ b/tests/uiSchema.ts @@ -0,0 +1,13 @@ +import { test } from "@playwright/test"; + +test.describe("uiSchema", function () { + test.describe("ignoreEmpty", function () { + test("don't show a checkbox", async ({ _page }) => { + test.fixme(); + }); + + test("don't include the property on download", async ({ _page }) => { + test.fixme(); + }); + }); +});