chimp.js

Meteor.js: Using server.call when testing with Chimp

安稳与你 提交于 2019-12-25 10:02:24
问题 I'm having an issue triggering method calls while writing feature tests. I'm not actually given an error in the chimp terminal log, but the server.call line is where the failure is highlighted. I believe this might be related to the folder structure of the app (which I've loosely based on Letterpress) or the order in which the call is defined and then triggered. When I move the method call out to my main.js file (in the root folder of the app), it works without a problem. hooks.js path: /app

How to print to PDF using Node JS / Webdriver.io / Chimp?

╄→гoц情女王★ 提交于 2019-12-13 02:59:39
问题 I'm trying to use Chimp / Webdriver.io / Selenium in Node JS to try to test my @media print CSS to make sure everything shows up correctly when people print from my website. How can I programatically get Chrome / Firefox to print to PDF? I don't want to convert a screenshot to PDF. I want the PDF to look like what it will look like when printed. Then, how can I scan the PDF to make sure that the results are correct? 回答1: Success! I had to install/use the following tools: npm install html-pdf