After transitioning my templates from jade to pug, all of my CasperJS tests started failing. The majority of the errors are related to the css selectors that cannot be found. Below is an example of the issue:
CasperJS test:
casper.thenOpen("http://localhost:8080/activites/E5555", function() {
this.wait(5000, function() {
this.click("a.open-user-dialog");
});
});
And here is the pug code for the element in question:
p
i.fa-icon-plus.fa-icon-success
strong: a.open-user-dialog(href="#user-dialog", data-toggle="modal") Add user
This is the result of the test:
FAIL Cannot dispatch mousedown event on nonexistent selector: a.open-user-dialog
Any assistance with resolving this issue would be greatly appreciated.