Skip to content

Commit

Permalink
Merge pull request #445 from preactjs/v11-skip-signal-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinhagemeister authored Nov 21, 2022
2 parents c5a43a0 + ea1360d commit c84f304
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test-e2e/tests/filter-text-signal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import { expect, test } from "@playwright/test";
import { gotoTest } from "../pw-utils";

test("Text Signal filter should filter Text Signal nodes", async ({ page }) => {
test.skip(
process.env.PREACT_VERSION !== "10",
"Signals are not supported in v11 yet.",
);
const { devtools } = await gotoTest(page, "signals-text");

await devtools
Expand Down
8 changes: 8 additions & 0 deletions test-e2e/tests/inspect-signal.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import { test, expect } from "@playwright/test";
import { gotoTest, locateTreeItem } from "../pw-utils";

test("Show signal in props and update value", async ({ page }) => {
test.skip(
process.env.PREACT_VERSION !== "10",
"Signals are not supported in v11 yet.",
);
const { devtools } = await gotoTest(page, "signals");

await devtools.locator(locateTreeItem("Display")).first().click();
Expand Down Expand Up @@ -74,6 +78,10 @@ test("Show signals in hooks", async ({ page }) => {
});

test("Dectect signal subscriptions", async ({ page }) => {
test.skip(
process.env.PREACT_VERSION !== "10",
"Signals are not supported in v11 yet.",
);
const { devtools } = await gotoTest(page, "signals-subscribe");

await devtools.click(locateTreeItem("App"));
Expand Down

0 comments on commit c84f304

Please sign in to comment.