forked from firefox-devtools/debugger
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfixtures.js
More file actions
56 lines (52 loc) · 1.34 KB
/
Copy pathfixtures.js
File metadata and controls
56 lines (52 loc) · 1.34 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
// turn theses tests on when you want to write new fixture data
// you also need to turn on the cypress-server to be able to save the fixtures.
xdescribe("Fixtures", function() {
/**
An example of the debugger not being paused.
*/
it("todomvc", function() {
debugPage("todomvc");
goToSource("js/views/todo-view");
goToSource("app-view");
goToSource("models/todo.js");
cy.saveFixture("todomvc");
cy.reload();
});
/**
An example of the debugger being paused.
*/
it("todomvc.updateOnEnter", function() {
debugPage("todomvc");
goToSource("js/views/todo-view");
toggleBreakpoint(113);
toggleBreakpoint(119);
toggleBreakpoint(121);
toggleBreakpointInList(2); // toggle off the last breakpoint
addTodo();
editTodo();
cy.wait(1000)
toggleScopes();
selectScope(0);
selectScope(2);
cy.saveFixture("todomvc.updateOnEnter");
resume();
toggleBreakpoint(113);
cy.reload();
});
/**
An example of the debugger being paused with a couple closures.
*/
it("pythagorean", function() {
debugPage("pythagorean");
goToSource("pythagorean.js");
toggleBreakpoint(11);
cy.debuggee(() => {
window.dbg.click("button");
});
cy.wait(1000);
cy.saveFixture("pythagorean");
resume();
toggleBreakpoint(11);
cy.reload();
});
});