public
Created

Specification using aspects from Func Unit and Pavlov bdd Qunit extension

  • Download Gist
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'));
});
});
});

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.