Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Specification using aspects from Func Unit and Pavlov bdd Qunit extension

View Func-y-Pavlov
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
 
QUnit.specify("Pavlov Example", function(){
var foo = 'bar';
describe("when the page with meerkat is open", function(){
before(function(){
foo = foo + "bar";
S.open("meerkat.html",function () {
// act
S('.open-meerkat').click();
 
S.wait(6000);
});
});
it("should open meerkat", function(){
ok(S('.meerkat').css('display') != 'none',S('.meerkat').css('display'));
});
});
describe("when the page with meerkat is open and you click close", function(){
before(function(){
foo = foo + "bar";
S.open("meerkat.html",function () {
// act
S('.close-meerkat').click();
 
S.wait(6000);
});
});
it("should close meerkat", function(){
ok(S('.meerkat').css('display') == 'none',S('.meerkat').css('display'));
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.