Skip to content

Conversation

@maxigimenez
Copy link
Member

Affected Components

  • CLI
  • Create CLI
  • Test
  • Docs
  • Examples
  • Other

Notes for the Reviewer

  • Fix examples with correct paths & copying playwright config
  • Skip "Copy playwright" step during creation when using examples to avoid confusion

Copy link
Member

@sorccu sorccu left a comment

Choose a reason for hiding this comment

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

Looks good but it would be nice to use single quotes everywhere instead of mixing both. That being said it looks like some of the files are already mixed so maybe not worth handling in this PR.


const playwrightConfig = getPlaywrightConfig(projectDirectory)
if (playwrightConfig) {
// Only prompt playwright copy when not using exampels
Copy link
Member

Choose a reason for hiding this comment

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

@maxigimenez the config is not copied at all anymore then, right?
I just encountered this issue when using the advanced-project-js and prompting to copy the config, but that should go away with this change then?

Screenshot 2025-10-17 at 10 50 16

Copy link
Member Author

Choose a reason for hiding this comment

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

@maxigimenez the config is not copied at all anymore then, right? I just encountered this issue when using the advanced-project-js and prompting to copy the config, but that should go away with this change then?

Screenshot 2025-10-17 at 10 50 16

@miliberlin you need to install the dependencies in order to copy the config from the playwright file

Copy link
Member Author

Choose a reason for hiding this comment

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

hmm, from the screenshot looks like you did installed the devs, which version of the CLI are you using?

Copy link
Member Author

@maxigimenez maxigimenez Oct 17, 2025

Choose a reason for hiding this comment

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

this will go away, with the new changes whenever using examples codes it will skip the copy playwrigth step

Copy link
Member

Choose a reason for hiding this comment

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

@maxigimenez That was latest. I found that the jiti version is also causing issues in that project. Updated in my PR #1163

@maxigimenez maxigimenez merged commit 4e3bb57 into main Oct 17, 2025
3 checks passed
@maxigimenez maxigimenez deleted the maxi/kit-2292-playwright-config-should-automatically-be-applied-to-checkly branch October 17, 2025 09:23
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.

4 participants