We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2188ad0 commit b88f31bCopy full SHA for b88f31b
playwright/cdp.js
@@ -89,6 +89,24 @@ for (var run = 0; run<runs; run++) {
89
90
// console.log(res);
91
92
+ // assertions
93
+ if (res['price'] != 244.99) {
94
+ console.log(res);
95
+ throw new Error("invalid product price");
96
+ }
97
+ if (res['image'] != "images/nomad_000.jpg") {
98
99
+ throw new Error("invalid product image");
100
101
+ if (res['related'].length != 3) {
102
103
+ throw new Error("invalid products related length");
104
105
+ if (res['reviews'].length != 3) {
106
107
+ throw new Error("invalid reviews length");
108
109
+
110
process.stderr.write('.');
111
if(run > 0 && run % 80 == 0) process.stderr.write('\n');
112
0 commit comments