Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds Playwright, first tests and linting. #1529

Merged
merged 6 commits into from
Aug 1, 2024

Conversation

tharsheblows
Copy link
Contributor

Fixes #1528.

This runs in your local database and is noisy! I'd rather run it with a separate database but that might be overkill, I don't know. Currently it causes the lint action to fail as there's not the executables installed.

This runs in your local database and is noisy! I'd rather run it with a separate database but that might be overkill, I don't know.
@tharsheblows tharsheblows added the tooling Development and deployment tooling improvements label Jul 29, 2024
Copy link
Contributor

@delawski delawski left a comment

Choose a reason for hiding this comment

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

@tharsheblows Looks great so far!

I think we could use this setup to run E2E tests locally for now and not worry about the CI integration at this point. If you think that's a good approach, we just need to make sure test:e2e is not run in GitHub action.

Copy link
Contributor

Choose a reason for hiding this comment

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

📝 note: @tharsheblows Let's also make sure .distignore is kept up to date.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you! Ack, this is one of the reason I love code reviews, I completely forgot about that.

This renames tests/tests to tests/phpunit for clarity.
@tharsheblows
Copy link
Contributor Author

@delawski I've updated this to not run the e2e tests in the GH action by renaming it and added the files to .distignore but also have renamed the phpunit test directory to phpunit from tests to make it clearer what is where.

@tharsheblows tharsheblows marked this pull request as ready for review July 30, 2024 15:45
@tharsheblows tharsheblows requested a review from delawski July 30, 2024 15:46
@tharsheblows tharsheblows added this to the 4.1.0 milestone Jul 30, 2024
Copy link
Contributor

@delawski delawski left a comment

Choose a reason for hiding this comment

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

Great idea about organizing tests in the tests folder the way you did it 👍

It looks like one of the tests is failing for me. Is it working okay on your local?

.gitignore Show resolved Hide resolved
playwright.config.js Show resolved Hide resolved
tests/e2e/editor-new-post.spec.js Show resolved Hide resolved
@delawski
Copy link
Contributor

delawski commented Aug 1, 2024

@tharsheblows I'm sorry about the dependencies update train when you were trying to merge it to develop 😅

I resolved the conflicts now and will merge as soon as the CI checks are complete.

@delawski delawski merged commit 2b0007a into develop Aug 1, 2024
2 checks passed
@delawski delawski deleted the feature/1528-add-playwright branch August 1, 2024 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tooling Development and deployment tooling improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Playwright
2 participants