var phantom = require('phantom'), _ph, _page;
var should = require('chai').should();
phantom.create("--web-security=no", "--ignore-ssl-errors=yes", { port: 12345 }, function (ph) {
console.log("Phantom Bridge Initiated");
_ph = ph;
_ph.createPage(function(page) {
console.log("Page created!");
_page = page;
});
phaçntom.exit();
});
module.exports = function() {
"use strict";
this.Given(/^I visit the episodes display page$/, function (callback) {
console.log("_page: " + _page);
_page.open("/", function(status){
status.should.equal("success");
});
callback();
});
this.Then(/^I should not see any episodes listed$/, function (callback) {
//page.should.have.content("There are no episodes available");
callback.pending();
});
this.Given(/^there are some episodes to view$/, function (callback) {
// Write code here that turns the phrase above into concrete actions
callback.pending();
});
this.When(/^I go to the episodes display page$/, function (callback) {
// Write code here that turns the phrase above into concrete actions
callback.pending();
});
this.Then(/^I should see a list of episodes grouped by Topic$/, function (callback) {
// Write code here that turns the phrase above into concrete actions
callback.pending();
});
};
--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to a topic in the Google Groups "nodejs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nodejs/QRX6t4c3ViY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/7972C72E-4E20-4AA0-B306-7EB4BD2CA915%40dinhe.net.
For more options, visit https://groups.google.com/d/optout.