Skip to content

Added Page.close to the Page API.#52

Open
CPeluti wants to merge 1 commit into
ftes:mainfrom
CPeluti:feature/issue-50
Open

Added Page.close to the Page API.#52
CPeluti wants to merge 1 commit into
ftes:mainfrom
CPeluti:feature/issue-50

Conversation

@CPeluti
Copy link
Copy Markdown

@CPeluti CPeluti commented May 14, 2026

This fulfills #50 adding the Page.close to the Page API.

Also the PR adds the flake.nix for nix users.

@CPeluti CPeluti force-pushed the feature/issue-50 branch from 3429d3d to 79a129b Compare May 15, 2026 13:41
Comment thread config/test.exs Outdated
config :playwright_ex,
executable: "assets/node_modules/playwright/cli.js",
timeout: String.to_integer(System.get_env("PW_TIMEOUT", "1000")),
timeout: String.to_integer(System.get_env("PW_TIMEOUT", "10000")),
Copy link
Copy Markdown
Owner

@ftes ftes May 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
timeout: String.to_integer(System.get_env("PW_TIMEOUT", "10000")),
timeout: String.to_integer(System.get_env("PW_TIMEOUT", "1000")),

Any particular reason for this change?
Even with small free Github Actions runners, 1s seems to be sufficient.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, for some reason on both my machines (Linux and Mac) all the tests were failing due to timeout. I think it's related to the startup of the playwright. Once I've tuned the timeout up everything run fine.

Copy link
Copy Markdown
Owner

@ftes ftes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Could you move the nix/flake changes to a separate PR please?

@CPeluti
Copy link
Copy Markdown
Author

CPeluti commented May 19, 2026

Thanks. Could you move the nix/flake changes to a separate PR please?

Sure.

@CPeluti CPeluti force-pushed the feature/issue-50 branch 2 times, most recently from d5f8c39 to 3581b41 Compare May 19, 2026 16:49
@CPeluti
Copy link
Copy Markdown
Author

CPeluti commented May 19, 2026

I've updated the commit removing the flake and also removed the change to the timeout.

@CPeluti CPeluti changed the title Added Page.close to the Page API and also added flake.nix so nix users can have the same env. Added Page.close to the Page API. May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants