-
Notifications
You must be signed in to change notification settings - Fork 2
chore: Preview Unit Tests - Iteration 2 #260
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
Merged
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
e3f0941
Added more Admin unit tests. Removed some unusued classes.
colinmurphy 9daaa46
Merge branch 'main' into chore-phpunit-tests-previews-iteration-2
colinmurphy 6d32947
Working on refactoring plugin. Adding settings tests. Moving template…
colinmurphy b420c0f
Refactor of Template Resolver and added test.
colinmurphy 2de7fb1
Code Quality fix.
colinmurphy f5c5966
Refactoring. Add some new services to consolidate some of the existin…
colinmurphy 6cef674
Added checks for codeception and phpcs to run tests or code quality
colinmurphy 030de0a
Refactoring URL resolver functionality.
colinmurphy c7b6206
Refactored post parent functionality. Added constants for default fie…
colinmurphy 595af07
Fixed linting issues.
colinmurphy 0f3b0bf
Refactored checking if classic editor is available. Added tests.
colinmurphy ac730e0
Merge branch 'main' into chore-phpunit-tests-previews-iteration-2
colinmurphy c4c9270
Removed some unused classes already refactored. Updated Faust Integra…
colinmurphy d86ad04
Updated package.
colinmurphy baaf821
Fixed issues after refactoring Faust Integration. e2e and code qualit…
colinmurphy bf2ead5
Set plugin version as 0.0.1-beta for #257 process
colinmurphy 7efff6e
Added tests for activation and de-activation.
colinmurphy 360ae41
Added more tests for the plugin main classes.
colinmurphy 0476f83
Added tests for Preview Parameters.
colinmurphy f87491a
Added Tests for Preview URL Resolver. A lot of critical tests for UR…
colinmurphy c28f757
Added WP_Mock so we could test Faust with Preview. Refactored Faust t…
colinmurphy 5c3d266
Fixed issues with tests.
colinmurphy f279727
Fixed issue with Faust Integration. Had accidentally imported the fun…
colinmurphy 7371944
Added tests for Preview hooks.
colinmurphy dd47988
PHPCS fixes.
colinmurphy e0ab68b
Added tests for the Settings_Page class. Slight refactor to help with…
colinmurphy eb604fa
Fixed TODOs. Added tests for Settings form manager for sanitizing fie…
colinmurphy 973b45a
Added missing tests.
colinmurphy 31501f8
Small fixes for the artifact not to include dev dependencies.
colinmurphy 06dc013
test: e2e test for URL param validation
ahuseyn 2916d1f
Reviewing admin functionality. Tidy up of docs etc.
colinmurphy 6898425
Merge branch 'chore-phpunit-tests-previews-iteration-2' of github.com…
colinmurphy eb5b831
Adding missing doc blocks.
colinmurphy 5ae239e
Fixed PHPCS issues and Licence.
colinmurphy 44136c5
Updating README. Updating the wording of some actions for the badges …
colinmurphy 0f9984f
Merge branch 'main' into chore-phpunit-tests-previews-iteration-2
colinmurphy 5823a8d
Minor update to force changeset bot.
colinmurphy abb77f7
fix: replace "Extending functionality" link with "Actions and filters"
ahuseyn 8d8e67f
Update plugins/hwp-previews/README.md
ahuseyn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| name: Playwright End-to-End Tests | ||
| name: End-to-End Tests | ||
|
|
||
| on: | ||
| push: | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| # HWP Previews | ||
|
|
||
| ## 0.0.1 | ||
| ## 0.0.1-beta | ||
|
|
||
| - Proof of concept. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,6 +3,8 @@ | |
| * Activation Hook | ||
| * | ||
| * @package HWP\Previews | ||
| * | ||
| * @since 0.0.1 | ||
| */ | ||
|
|
||
| declare(strict_types=1); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| # Run Playwright E2E tests for GitHub Actions | ||
|
|
||
| set -e | ||
|
|
||
| # Install dependencies if needed | ||
| npm ci | ||
|
|
||
| # Install composer dependencies | ||
| composer install | ||
|
|
||
| # Install Playwright browsers | ||
| npx playwright install --with-deps | ||
|
|
||
| # Start wp-env | ||
| npm run wp-env start | ||
|
|
||
| # Run Playwright tests | ||
| npm run test:e2e | ||
|
|
||
| # Stop wp-env | ||
| npm run wp-env stop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.