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

Add parts kit tests #9

Open
3 of 5 tasks
davist11 opened this issue Sep 18, 2020 · 1 comment
Open
3 of 5 tasks

Add parts kit tests #9

davist11 opened this issue Sep 18, 2020 · 1 comment

Comments

@davist11
Copy link
Contributor

davist11 commented Sep 18, 2020

  • Generating the correct nav
  • Can grab a craft asset
  • Is a parts kit request
  • Correctly selects dark theme config if 'theme' => 'dark' is passed
  • Correctly outputs custom theme CSS
@davist11
Copy link
Contributor Author

Was having issues detecting whether it was a parts kit request because the segments aren't set when mocking the URL in the unit test.

Also tried testing if parts-kit.css or parts-kit.js was $I->see() in a functional test, but couldn't access stuff in the head or JS

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

No branches or pull requests

1 participant