-
Notifications
You must be signed in to change notification settings - Fork 2
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
test[e2e]: add more components to create-flow test #3630
Merged
Merged
Changes from 33 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
b11f728
Add more guidance to readme
jamdelion 1700ad9
Extract out createQuestion and createNotice helpers
jamdelion f3b6848
Add checklist component to flow
jamdelion 4aea059
Prettier
jamdelion 9c89e5d
Create text input
jamdelion 8fac0eb
Add number input
jamdelion f3a796a
Create date input
jamdelion 1a1b618
Prettier
jamdelion 414dff4
Use uuid for random id
jamdelion 71e1a37
Address input component
jamdelion 42a5338
Add contact input
jamdelion a4458b5
Restructure helper files
jamdelion 5b523a5
Prettier
jamdelion f18162a
Merge branch 'main' into jh/playwright-initial
jamdelion 107e7ae
Refactor to use createBaseInput helper
jamdelion 5efb97a
Prettier again
jamdelion 7cf8e6b
Merge branch 'main' into jh/playwright-more-components
jamdelion fbafa6e
Add tasklist component
jamdelion f120cef
Add review component
jamdelion d753c08
Add find property node
jamdelion 4ac804d
Add planning contraints component
jamdelion 888f26b
Add draw boundary component
jamdelion a3af6fd
Use an enum instead of magic strings
jamdelion fe9d645
Lint fix
jamdelion d48a205
Create next steps component
jamdelion 614626e
Lint fix again
jamdelion fa6ce2e
Add file upload component
jamdelion ceba074
I really need to learn to run lint fix before committing
jamdelion 780964a
getNextNode as function
jamdelion e3eaf8d
Simplify button selector and use existing enum from planx-core
jamdelion 658b48e
Add linting to husky for e2e dir
jamdelion 24d2bd6
Test lint
jamdelion a58a216
Fix linting
jamdelion 4529ca3
Remove husky changes
jamdelion 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 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 |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
. "$(dirname -- "$0")/_/husky.sh" | ||
cd api.planx.uk | ||
pnpm dlx lint-staged | ||
cd ../e2e | ||
pnpm dlx lint-staged | ||
This file contains 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've found that I've needed to run
pnpm run lint:fix
on every commit from thee2e
directory so hopefully this fixes thatThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this is the right solution - this seems to be running e2e linting each time a commit is made in the api directory. There should be a pre-commit file in the e2e directory which does this (clearly it's not working though!)
I think we need to actually install lint-staged in the root (docs) and then we can have a per-project husky working as expected?