-
Notifications
You must be signed in to change notification settings - Fork 36
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 from color-picker-tutorial doesn't work #62
Comments
You did not mention which version of marko-cli marko etc do you use. I spent some time to make it work too, but basically every step is in the README :) Here is what i missed at first glance, maybe it helps: With [email protected] [email protected] :
Maybe it worth mention that puppeteer has all kind of issues handling click() events, i could not make it work so far. If someone could point to the right direction i would really appreciate it. |
Well, I updated [email protected] (global) and [email protected]. "devDependencies": {
"chai": "^4.1.2",
"mocha": "^4.0.1"
} from the README file:
So following the rules above, my file name was right. but!, after updated marko-cli and marko, I'm still getting this error: If i install marko-cli as a devDependencie, I've got a different error, the next one: An error occurred while trying to compile template at path "C:\Users\diego\Documents\Marko Projects\color-picker\node_modules\marko-cli\src\commands\
sest\util\browser-tests-runner\page-template.marko". Error(s) in template:
\test\util\browser-tests-runner\page-template.marko". Error(s) in template: b.
1) [node_modules\marko-cli\src\commands\test\util\browser-tests-runner\page-template.marko:1:0] Unrecognized tag: lasso-page - More details: https://githu
b) [node_modules\marko-cli\src\commands\test\util\browser-tests-runner\page-template.marko:8:8] Unrecognized tag: lasso-head - More details: https://github.
Error: An error occurred while trying to compile template at path "C:\Users\diego\Documents\Marko Projects\color-picker\node_modules\marko-cli\src\command
s\test\util\browser-tests-runner\page-template.marko". Error(s) in template: ub
1) [node_modules\marko-cli\src\commands\test\util\browser-tests-runner\page-template.marko:1:0] Unrecognized tag: lasso-page - More details: https://githu
b.com/marko-js/marko/wiki/Error:-Unrecognized-Tag ub
2) [node_modules\marko-cli\src\commands\test\util\browser-tests-runner\page-template.marko:8:8] Unrecognized tag: lasso-head - More details: https://githu
b.com/marko-js/marko/wiki/Error:-Unrecognized-Tag
3) [node_modules\marko-cli\src\commands\test\util\browser-tests-runner\page-template.marko:15:8] Unrecognized tag: lasso-body - More details: https://gith
ub.com/marko-js/marko/wiki/Error:-Unrecognized-Tag
4) [node_modules\marko-cli\src\commands\test\util\browser-tests-runner\page-template.marko:19:8] Unrecognized tag: lasso-slot - More details: https://gith
ub.com/marko-js/marko/wiki/Error:-Unrecognized-Tag Even doing what the link from the error says, the test doesn't work. [Unrecognized Tag](https://gith Do I have to make the |
Yes you have to create Yeah, the README could be explicit. I work on Edit: I created a sample project |
I played with it a little bit more. I think the problem is that the I think the solution is to add the "lasso": "*" line to the |
@lependu @DracotMolver This is a bug. I'll get a fix out sometime today. Thanks for reporting this! |
Hi. I'm following the Color picker tutorial and I've got to the test part.
I think it might be how the context render the output.
This is how I have my folders structure:
Then, in my test.js file, I have this:
So, running the test, I've got the next error:
To see what was happening, I used the
html
function from Cheerio; the result:I'm not sure, if that output is correct; I mean, if is espected. But, doing the same using
output.$('div')
I've gotinitialize(0)
.The text was updated successfully, but these errors were encountered: