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

In rendered jade pages some scripts don't load #59

Open
awiss opened this issue Jun 26, 2013 · 0 comments
Open

In rendered jade pages some scripts don't load #59

awiss opened this issue Jun 26, 2013 · 0 comments

Comments

@awiss
Copy link

awiss commented Jun 26, 2013

I'm an trying to set up automated testing for a node app using jade as the templating engine. However, when i attempt to open one of the pages the dev console logs
jQuery is not defined, because the jQuery script isn't loaded. The network bar shows the scripts are not loaded. Multiple page refreshes also do not solve the issue, along with simply waiting on the page. This issue seems to only arise for a few non-locally hosted scripts. On static pages this issue doesn't arise.

Code:
var soda = require('soda')
, assert = require('assert');

var browser = soda.createClient({
url: 'http://localhost:8000'
,browser:'googlechrome'

});

browser.on('command', function(cmd, args){
console.log(' \x1b[33m%s\x1b[0m: %s', cmd, args.join(', '));
});
browser
.chain
.session()

.open('/')
.waitForCondition('false',50000)
.end(function(err){
browser.testComplete(function(){
console.log('done');
if(err) throw err;
});
});

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