siesta-lite
Version:
Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers
32 lines (21 loc) • 1.05 kB
JavaScript
describe("New recording...", function(t) {
t.it("First text box", function(t) {
t.chain(
{ click : "#root textarea" },
{ type : "S", target : "#root textarea", options : { shiftKey : true, readableKey : "S", key : "S" } },
{ type : "omething", target : "#root textarea" },
{ click : "#root .ColorOption__ForeGround .ColorPicker__Color" },
{ click : "#root [title='\#D0021B']" },
{ click : "#root :textEquals(Compare)" }
);
});
t.it("Second text box", function(t) {
t.chain(
{ click : "#root .TextBoxContainer > div:nth-of-type(2) textarea" },
{ type : "S", target : "#root .isActive textarea", options : { shiftKey : true, readableKey : "S", key : "S" } },
{ type : "omething ese[BACKSPACE][BACKSPACE]lse", target : "#root .isActive textarea" },
{ click : "#root .ColorOption__ForeGround .ColorPicker__Color" },
{ click : "#root [title='\#BD10E0']" }
);
});
});