Skip to content

Commit

Permalink
fix install?
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Aug 23, 2024
1 parent 8fd7334 commit 1fc476b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

- name: Install Playwright Browsers
working-directory: packages/react-window-splitter
run: pnpm exec playwright install
run: pnpm exec playwright install --with-deps chromium

- name: Lint
run: pnpm lint
Expand Down
21 changes: 10 additions & 11 deletions packages/react-window-splitter/src/ReactWindowSplitter.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ test.skip("Conditional Panels", async () => {
const handle = { current: null } as unknown as {
current: PanelGroupHandle;
};
// const { getByText } =
render(
const { getByText } = render(
<div style={{ width: 500 }}>
<ConditionalPanel handle={handle} />
</div>
Expand All @@ -161,15 +160,15 @@ test.skip("Conditional Panels", async () => {
`"244px 10px 244px"`
);

// getByText("Expand").click();
// await waitForCondition(
// () =>
// handle.current.getTemplate().startsWith("232.046875px") &&
// handle.current.getTemplate().endsWith("100px")
// );
// expect(handle.current.getTemplate()).toMatchInlineSnapshot(
// `"232.046875px 10px 145.9375px 10px 100px"`
// );
getByText("Expand").click();
await waitForCondition(
() =>
handle.current.getTemplate().startsWith("232.046875px") &&
handle.current.getTemplate().endsWith("100px")
);
expect(handle.current.getTemplate()).toMatchInlineSnapshot(
`"232.046875px 10px 145.9375px 10px 100px"`
);

// getByText("Close").click();
// await waitForCondition(
Expand Down

0 comments on commit 1fc476b

Please sign in to comment.