-
Notifications
You must be signed in to change notification settings - Fork 0
/
report.json
3465 lines (3465 loc) · 171 KB
/
report.json
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"stats": {
"suites": 20,
"tests": 123,
"passes": 123,
"pending": 0,
"failures": 0,
"testsRegistered": 123,
"passPercent": 100,
"pendingPercent": 0,
"other": 0,
"hasOther": false,
"skipped": 0,
"hasSkipped": false,
"start": "2024-10-14T18:53:56.728Z",
"end": "2024-10-14T18:55:04.035Z",
"duration": 67307
},
"results": [
{
"uuid": "2dcc61d9-30c7-48b6-9d1c-d2b36c4221e1",
"title": "",
"fullFile": "cypress/e2e/set-1/actions.cy.js",
"file": "cypress/e2e/set-1/actions.cy.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [],
"suites": [
{
"uuid": "72c3cf64-0120-4d42-a276-0ae46fd63238",
"title": "Actions",
"fullFile": "",
"file": "",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
"title": ".type() - type into a DOM element",
"fullTitle": "Actions .type() - type into a DOM element",
"timedOut": null,
"duration": 4027,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/type\ncy.get('.action-email').type('[email protected]');\ncy.get('.action-email').should('have.value', '[email protected]');\n// .type() with special character sequences\ncy.get('.action-email').type('{leftarrow}{rightarrow}{uparrow}{downarrow}');\ncy.get('.action-email').type('{del}{selectall}{backspace}');\n// .type() with key modifiers\ncy.get('.action-email').type('{alt}{option}'); //these are equivalent\ncy.get('.action-email').type('{ctrl}{control}'); //these are equivalent\ncy.get('.action-email').type('{meta}{command}{cmd}'); //these are equivalent\ncy.get('.action-email').type('{shift}');\n// Delay each keypress by 0.1 sec\ncy.get('.action-email').type('[email protected]', {\n delay: 100\n});\ncy.get('.action-email').should('have.value', '[email protected]');\ncy.get('.action-disabled')\n// Ignore error checking prior to type\n// like whether the input is visible or disabled\n.type('disabled error checking', {\n force: true\n});\ncy.get('.action-disabled').should('have.value', 'disabled error checking');",
"err": {},
"uuid": "e5b3d429-15ae-4ca0-801a-db5424805dfe",
"parentUUID": "72c3cf64-0120-4d42-a276-0ae46fd63238",
"isHook": false,
"skipped": false
},
{
"title": ".focus() - focus on a DOM element",
"fullTitle": "Actions .focus() - focus on a DOM element",
"timedOut": null,
"duration": 209,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/focus\ncy.get('.action-focus').focus();\ncy.get('.action-focus').should('have.class', 'focus').prev().should('have.attr', 'style', 'color: orange;');",
"err": {},
"uuid": "bdf68d4d-cb1c-485e-885d-9bd17b2f8490",
"parentUUID": "72c3cf64-0120-4d42-a276-0ae46fd63238",
"isHook": false,
"skipped": false
},
{
"title": ".blur() - blur off a DOM element",
"fullTitle": "Actions .blur() - blur off a DOM element",
"timedOut": null,
"duration": 584,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/blur\ncy.get('.action-blur').type('About to blur');\ncy.get('.action-blur').blur();\ncy.get('.action-blur').should('have.class', 'error').prev().should('have.attr', 'style', 'color: red;');",
"err": {},
"uuid": "4234fcb0-75e2-48a2-9ed4-987018318125",
"parentUUID": "72c3cf64-0120-4d42-a276-0ae46fd63238",
"isHook": false,
"skipped": false
},
{
"title": ".clear() - clears an input or textarea element",
"fullTitle": "Actions .clear() - clears an input or textarea element",
"timedOut": null,
"duration": 577,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/clear\ncy.get('.action-clear').type('Clear this text');\ncy.get('.action-clear').should('have.value', 'Clear this text');\ncy.get('.action-clear').clear();\ncy.get('.action-clear').should('have.value', '');",
"err": {},
"uuid": "7b10098c-bf05-48c1-b2b0-fededed961b7",
"parentUUID": "72c3cf64-0120-4d42-a276-0ae46fd63238",
"isHook": false,
"skipped": false
},
{
"title": ".submit() - submit a form",
"fullTitle": "Actions .submit() - submit a form",
"timedOut": null,
"duration": 416,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/submit\ncy.get('.action-form').find('[type=\"text\"]').type('HALFOFF');\ncy.get('.action-form').submit();\ncy.get('.action-form').next().should('contain', 'Your form has been submitted!');",
"err": {},
"uuid": "6636dc21-f94e-4cde-8b28-96a955ec6df3",
"parentUUID": "72c3cf64-0120-4d42-a276-0ae46fd63238",
"isHook": false,
"skipped": false
},
{
"title": ".click() - click on a DOM element",
"fullTitle": "Actions .click() - click on a DOM element",
"timedOut": null,
"duration": 2008,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/click\ncy.get('.action-btn').click();\n// You can click on 9 specific positions of an element:\n// -----------------------------------\n// | topLeft top topRight |\n// | |\n// | |\n// | |\n// | left center right |\n// | |\n// | |\n// | |\n// | bottomLeft bottom bottomRight |\n// -----------------------------------\n// clicking in the center of the element is the default\ncy.get('#action-canvas').click();\ncy.get('#action-canvas').click('topLeft');\ncy.get('#action-canvas').click('top');\ncy.get('#action-canvas').click('topRight');\ncy.get('#action-canvas').click('left');\ncy.get('#action-canvas').click('right');\ncy.get('#action-canvas').click('bottomLeft');\ncy.get('#action-canvas').click('bottom');\ncy.get('#action-canvas').click('bottomRight');\n// .click() accepts an x and y coordinate\n// that controls where the click occurs :)\ncy.get('#action-canvas');\ncy.get('#action-canvas').click(80, 75); // click 80px on x coord and 75px on y coord\ncy.get('#action-canvas').click(170, 75);\ncy.get('#action-canvas').click(80, 165);\ncy.get('#action-canvas').click(100, 185);\ncy.get('#action-canvas').click(125, 190);\ncy.get('#action-canvas').click(150, 185);\ncy.get('#action-canvas').click(170, 165);\n// click multiple elements by passing multiple: true\ncy.get('.action-labels>.label').click({\n multiple: true\n});\n// Ignore error checking prior to clicking\ncy.get('.action-opacity>.btn').click({\n force: true\n});",
"err": {},
"uuid": "4b17f1e5-3567-4969-a1da-2b3e40353a87",
"parentUUID": "72c3cf64-0120-4d42-a276-0ae46fd63238",
"isHook": false,
"skipped": false
},
{
"title": ".dblclick() - double click on a DOM element",
"fullTitle": "Actions .dblclick() - double click on a DOM element",
"timedOut": null,
"duration": 224,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/dblclick\n// Our app has a listener on 'dblclick' event in our 'scripts.js'\n// that hides the div and shows an input on double click\ncy.get('.action-div').dblclick();\ncy.get('.action-div').should('not.be.visible');\ncy.get('.action-input-hidden').should('be.visible');",
"err": {},
"uuid": "0885e666-f821-4021-9c39-45fe9ab35a73",
"parentUUID": "72c3cf64-0120-4d42-a276-0ae46fd63238",
"isHook": false,
"skipped": false
},
{
"title": ".rightclick() - right click on a DOM element",
"fullTitle": "Actions .rightclick() - right click on a DOM element",
"timedOut": null,
"duration": 228,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/rightclick\n// Our app has a listener on 'contextmenu' event in our 'scripts.js'\n// that hides the div and shows an input on right click\ncy.get('.rightclick-action-div').rightclick();\ncy.get('.rightclick-action-div').should('not.be.visible');\ncy.get('.rightclick-action-input-hidden').should('be.visible');",
"err": {},
"uuid": "df52e835-b504-4342-8b69-fea5b0eda68a",
"parentUUID": "72c3cf64-0120-4d42-a276-0ae46fd63238",
"isHook": false,
"skipped": false
},
{
"title": ".check() - check a checkbox or radio element",
"fullTitle": "Actions .check() - check a checkbox or radio element",
"timedOut": null,
"duration": 850,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/check\n// By default, .check() will check all\n// matching checkbox or radio elements in succession, one after another\ncy.get('.action-checkboxes [type=\"checkbox\"]').not('[disabled]').check();\ncy.get('.action-checkboxes [type=\"checkbox\"]').not('[disabled]').should('be.checked');\ncy.get('.action-radios [type=\"radio\"]').not('[disabled]').check();\ncy.get('.action-radios [type=\"radio\"]').not('[disabled]').should('be.checked');\n// .check() accepts a value argument\ncy.get('.action-radios [type=\"radio\"]').check('radio1');\ncy.get('.action-radios [type=\"radio\"]').should('be.checked');\n// .check() accepts an array of values\ncy.get('.action-multiple-checkboxes [type=\"checkbox\"]').check(['checkbox1', 'checkbox2']);\ncy.get('.action-multiple-checkboxes [type=\"checkbox\"]').should('be.checked');\n// Ignore error checking prior to checking\ncy.get('.action-checkboxes [disabled]').check({\n force: true\n});\ncy.get('.action-checkboxes [disabled]').should('be.checked');\ncy.get('.action-radios [type=\"radio\"]').check('radio3', {\n force: true\n});\ncy.get('.action-radios [type=\"radio\"]').should('be.checked');",
"err": {},
"uuid": "3ffbb314-166e-415b-998e-4f3d57586078",
"parentUUID": "72c3cf64-0120-4d42-a276-0ae46fd63238",
"isHook": false,
"skipped": false
},
{
"title": ".uncheck() - uncheck a checkbox element",
"fullTitle": "Actions .uncheck() - uncheck a checkbox element",
"timedOut": null,
"duration": 826,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/uncheck\n// By default, .uncheck() will uncheck all matching\n// checkbox elements in succession, one after another\ncy.get('.action-check [type=\"checkbox\"]').not('[disabled]').uncheck();\ncy.get('.action-check [type=\"checkbox\"]').not('[disabled]').should('not.be.checked');\n// .uncheck() accepts a value argument\ncy.get('.action-check [type=\"checkbox\"]').check('checkbox1');\ncy.get('.action-check [type=\"checkbox\"]').uncheck('checkbox1');\ncy.get('.action-check [type=\"checkbox\"][value=\"checkbox1\"]').should('not.be.checked');\n// .uncheck() accepts an array of values\ncy.get('.action-check [type=\"checkbox\"]').check(['checkbox1', 'checkbox3']);\ncy.get('.action-check [type=\"checkbox\"]').uncheck(['checkbox1', 'checkbox3']);\ncy.get('.action-check [type=\"checkbox\"][value=\"checkbox1\"]').should('not.be.checked');\ncy.get('.action-check [type=\"checkbox\"][value=\"checkbox3\"]').should('not.be.checked');\n// Ignore error checking prior to unchecking\ncy.get('.action-check [disabled]').uncheck({\n force: true\n});\ncy.get('.action-check [disabled]').should('not.be.checked');",
"err": {},
"uuid": "39513d22-2a27-450d-bf5b-465128e29f2a",
"parentUUID": "72c3cf64-0120-4d42-a276-0ae46fd63238",
"isHook": false,
"skipped": false
},
{
"title": ".select() - select an option in a <select> element",
"fullTitle": "Actions .select() - select an option in a <select> element",
"timedOut": null,
"duration": 924,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/select\n// at first, no option should be selected\ncy.get('.action-select').should('have.value', '--Select a fruit--');\n// Select option(s) with matching text content\ncy.get('.action-select').select('apples');\n// confirm the apples were selected\n// note that each value starts with \"fr-\" in our HTML\ncy.get('.action-select').should('have.value', 'fr-apples');\ncy.get('.action-select-multiple').select(['apples', 'oranges', 'bananas']);\ncy.get('.action-select-multiple')\n// when getting multiple values, invoke \"val\" method first\n.invoke('val').should('deep.equal', ['fr-apples', 'fr-oranges', 'fr-bananas']);\n// Select option(s) with matching value\ncy.get('.action-select').select('fr-bananas');\ncy.get('.action-select')\n// can attach an assertion right away to the element\n.should('have.value', 'fr-bananas');\ncy.get('.action-select-multiple').select(['fr-apples', 'fr-oranges', 'fr-bananas']);\ncy.get('.action-select-multiple').invoke('val').should('deep.equal', ['fr-apples', 'fr-oranges', 'fr-bananas']);\n// assert the selected values include oranges\ncy.get('.action-select-multiple').invoke('val').should('include', 'fr-oranges');",
"err": {},
"uuid": "edd68456-e862-4532-b810-395d6e455751",
"parentUUID": "72c3cf64-0120-4d42-a276-0ae46fd63238",
"isHook": false,
"skipped": false
},
{
"title": ".scrollIntoView() - scroll an element into view",
"fullTitle": "Actions .scrollIntoView() - scroll an element into view",
"timedOut": null,
"duration": 189,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/scrollintoview\n// normally all of these buttons are hidden,\n// because they're not within\n// the viewable area of their parent\n// (we need to scroll to see them)\ncy.get('#scroll-horizontal button').should('not.be.visible');\n// scroll the button into view, as if the user had scrolled\ncy.get('#scroll-horizontal button').scrollIntoView();\ncy.get('#scroll-horizontal button').should('be.visible');\ncy.get('#scroll-vertical button').should('not.be.visible');\n// Cypress handles the scroll direction needed\ncy.get('#scroll-vertical button').scrollIntoView();\ncy.get('#scroll-vertical button').should('be.visible');\ncy.get('#scroll-both button').should('not.be.visible');\n// Cypress knows to scroll to the right and down\ncy.get('#scroll-both button').scrollIntoView();\ncy.get('#scroll-both button').should('be.visible');",
"err": {},
"uuid": "292155c7-ec0d-46fc-affd-f555fd2f3bbe",
"parentUUID": "72c3cf64-0120-4d42-a276-0ae46fd63238",
"isHook": false,
"skipped": false
},
{
"title": ".trigger() - trigger an event on a DOM element",
"fullTitle": "Actions .trigger() - trigger an event on a DOM element",
"timedOut": null,
"duration": 173,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/trigger\n// To interact with a range input (slider)\n// we need to set its value & trigger the\n// event to signal it changed\n// Here, we invoke jQuery's val() method to set\n// the value and trigger the 'change' event\ncy.get('.trigger-input-range').invoke('val', 25);\ncy.get('.trigger-input-range').trigger('change');\ncy.get('.trigger-input-range').get('input[type=range]').siblings('p').should('have.text', '25');",
"err": {},
"uuid": "b75a4e7b-d17a-4a5d-a376-f92f4f9a340c",
"parentUUID": "72c3cf64-0120-4d42-a276-0ae46fd63238",
"isHook": false,
"skipped": false
},
{
"title": "cy.scrollTo() - scroll the window or element to a position",
"fullTitle": "Actions cy.scrollTo() - scroll the window or element to a position",
"timedOut": null,
"duration": 2173,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/scrollto\n// You can scroll to 9 specific positions of an element:\n// -----------------------------------\n// | topLeft top topRight |\n// | |\n// | |\n// | |\n// | left center right |\n// | |\n// | |\n// | |\n// | bottomLeft bottom bottomRight |\n// -----------------------------------\n// if you chain .scrollTo() off of cy, we will\n// scroll the entire window\ncy.scrollTo('bottom');\ncy.get('#scrollable-horizontal').scrollTo('right');\n// or you can scroll to a specific coordinate:\n// (x axis, y axis) in pixels\ncy.get('#scrollable-vertical').scrollTo(250, 250);\n// or you can scroll to a specific percentage\n// of the (width, height) of the element\ncy.get('#scrollable-both').scrollTo('75%', '25%');\n// control the easing of the scroll (default is 'swing')\ncy.get('#scrollable-vertical').scrollTo('center', {\n easing: 'linear'\n});\n// control the duration of the scroll (in ms)\ncy.get('#scrollable-both').scrollTo('center', {\n duration: 2000\n});",
"err": {},
"uuid": "6068edc5-665c-421a-8c3c-d0a8b4336d78",
"parentUUID": "72c3cf64-0120-4d42-a276-0ae46fd63238",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
"e5b3d429-15ae-4ca0-801a-db5424805dfe",
"bdf68d4d-cb1c-485e-885d-9bd17b2f8490",
"4234fcb0-75e2-48a2-9ed4-987018318125",
"7b10098c-bf05-48c1-b2b0-fededed961b7",
"6636dc21-f94e-4cde-8b28-96a955ec6df3",
"4b17f1e5-3567-4969-a1da-2b3e40353a87",
"0885e666-f821-4021-9c39-45fe9ab35a73",
"df52e835-b504-4342-8b69-fea5b0eda68a",
"3ffbb314-166e-415b-998e-4f3d57586078",
"39513d22-2a27-450d-bf5b-465128e29f2a",
"edd68456-e862-4532-b810-395d6e455751",
"292155c7-ec0d-46fc-affd-f555fd2f3bbe",
"b75a4e7b-d17a-4a5d-a376-f92f4f9a340c",
"6068edc5-665c-421a-8c3c-d0a8b4336d78"
],
"failures": [],
"pending": [],
"skipped": [],
"duration": 13408,
"root": false,
"rootEmpty": false,
"_timeout": 2000
}
],
"passes": [],
"failures": [],
"pending": [],
"skipped": [],
"duration": 0,
"root": true,
"rootEmpty": true,
"_timeout": 2000
},
{
"uuid": "d469e5d9-924a-4da0-80ac-a4ff212164be",
"title": "",
"fullFile": "cypress/e2e/set-1/aliasing.cy.js",
"file": "cypress/e2e/set-1/aliasing.cy.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [],
"suites": [
{
"uuid": "2c46eaec-e984-4eb8-8b35-be808366a1a3",
"title": "Aliasing",
"fullFile": "",
"file": "",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
"title": ".as() - alias a DOM element for later use",
"fullTitle": "Aliasing .as() - alias a DOM element for later use",
"timedOut": null,
"duration": 526,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/as\n// Alias a DOM element for use later\n// We don't have to traverse to the element\n// later in our code, we reference it with @\ncy.get('.as-table').find('tbody>tr').first().find('td').first().find('button').as('firstBtn');\n// when we reference the alias, we place an\n// @ in front of its name\ncy.get('@firstBtn').click();\ncy.get('@firstBtn').should('have.class', 'btn-success').and('contain', 'Changed');",
"err": {},
"uuid": "f17153c8-8363-4660-94c0-2fead8cfb3f6",
"parentUUID": "2c46eaec-e984-4eb8-8b35-be808366a1a3",
"isHook": false,
"skipped": false
},
{
"title": ".as() - alias a route for later use",
"fullTitle": "Aliasing .as() - alias a route for later use",
"timedOut": null,
"duration": 573,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// Alias the route to wait for its response\ncy.intercept('GET', '**/comments/*').as('getComment');\n// we have code that gets a comment when\n// the button is clicked in scripts.js\ncy.get('.network-btn').click();\n// https://on.cypress.io/wait\ncy.wait('@getComment').its('response.statusCode').should('eq', 200);",
"err": {},
"uuid": "b42955ba-0337-4cac-b56b-73ba4a779b85",
"parentUUID": "2c46eaec-e984-4eb8-8b35-be808366a1a3",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
"f17153c8-8363-4660-94c0-2fead8cfb3f6",
"b42955ba-0337-4cac-b56b-73ba4a779b85"
],
"failures": [],
"pending": [],
"skipped": [],
"duration": 1099,
"root": false,
"rootEmpty": false,
"_timeout": 2000
}
],
"passes": [],
"failures": [],
"pending": [],
"skipped": [],
"duration": 0,
"root": true,
"rootEmpty": true,
"_timeout": 2000
},
{
"uuid": "a3167cc7-595f-43be-b9b9-7085a1f29f12",
"title": "",
"fullFile": "cypress/e2e/set-1/assertions.cy.js",
"file": "cypress/e2e/set-1/assertions.cy.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [],
"suites": [
{
"uuid": "3e5168b1-ed90-465c-8744-7dc7afc5c4aa",
"title": "Assertions",
"fullFile": "",
"file": "",
"beforeHooks": [],
"afterHooks": [],
"tests": [],
"suites": [
{
"uuid": "b30967d0-3296-479b-aeaa-4a40d1fdac9d",
"title": "Implicit Assertions",
"fullFile": "",
"file": "",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
"title": ".should() - make an assertion about the current subject",
"fullTitle": "Assertions Implicit Assertions .should() - make an assertion about the current subject",
"timedOut": null,
"duration": 433,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/should\ncy.get('.assertion-table').find('tbody tr:last').should('have.class', 'success').find('td').first()\n// checking the text of the <td> element in various ways\n.should('have.text', 'Column content').should('contain', 'Column content').should('have.html', 'Column content')\n// chai-jquery uses \"is()\" to check if element matches selector\n.should('match', 'td')\n// to match text content against a regular expression\n// first need to invoke jQuery method text()\n// and then match using regular expression\n.invoke('text').should('match', /column content/i);\n// a better way to check element's text content against a regular expression\n// is to use \"cy.contains\"\n// https://on.cypress.io/contains\ncy.get('.assertion-table').find('tbody tr:last')\n// finds first <td> element with text content matching regular expression\n.contains('td', /column content/i).should('be.visible');\n// for more information about asserting element's text\n// see https://on.cypress.io/using-cypress-faq#How-do-I-get-an-element’s-text-contents",
"err": {},
"uuid": "e36526fb-3754-42b5-a9f6-98e9bc6cf5c6",
"parentUUID": "b30967d0-3296-479b-aeaa-4a40d1fdac9d",
"isHook": false,
"skipped": false
},
{
"title": ".and() - chain multiple assertions together",
"fullTitle": "Assertions Implicit Assertions .and() - chain multiple assertions together",
"timedOut": null,
"duration": 131,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/and\ncy.get('.assertions-link').should('have.class', 'active').and('have.attr', 'href').and('include', 'cypress.io');",
"err": {},
"uuid": "d6c92a50-6884-402b-a2f6-6311b441bdcc",
"parentUUID": "b30967d0-3296-479b-aeaa-4a40d1fdac9d",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
"e36526fb-3754-42b5-a9f6-98e9bc6cf5c6",
"d6c92a50-6884-402b-a2f6-6311b441bdcc"
],
"failures": [],
"pending": [],
"skipped": [],
"duration": 564,
"root": false,
"rootEmpty": false,
"_timeout": 2000
},
{
"uuid": "0f151e63-829b-4b9d-aafb-c3d5903f5cd6",
"title": "Explicit Assertions",
"fullFile": "",
"file": "",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
"title": "expect - make an assertion about a specified subject",
"fullTitle": "Assertions Explicit Assertions expect - make an assertion about a specified subject",
"timedOut": null,
"duration": 114,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// We can use Chai's BDD style assertions\nexpect(true).to.be.true;\nconst o = {\n foo: 'bar'\n};\nexpect(o).to.equal(o);\nexpect(o).to.deep.equal({\n foo: 'bar'\n});\n// matching text using regular expression\nexpect('FooBar').to.match(/bar$/i);",
"err": {},
"uuid": "9803f22f-1193-4401-a698-bf5302f461be",
"parentUUID": "0f151e63-829b-4b9d-aafb-c3d5903f5cd6",
"isHook": false,
"skipped": false
},
{
"title": "pass your own callback function to should()",
"fullTitle": "Assertions Explicit Assertions pass your own callback function to should()",
"timedOut": null,
"duration": 132,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// Pass a function to should that can have any number\n// of explicit assertions within it.\n// The \".should(cb)\" function will be retried\n// automatically until it passes all your explicit assertions or times out.\ncy.get('.assertions-p').find('p').should($p => {\n // https://on.cypress.io/$\n // return an array of texts from all of the p's\n const texts = $p.map((i, el) => Cypress.$(el).text());\n // jquery map returns jquery object\n // and .get() convert this to simple array\n const paragraphs = texts.get();\n // array should have length of 3\n expect(paragraphs, 'has 3 paragraphs').to.have.length(3);\n // use second argument to expect(...) to provide clear\n // message with each assertion\n expect(paragraphs, 'has expected text in each paragraph').to.deep.eq(['Some text from first p', 'More text from second p', 'And even more text from third p']);\n});",
"err": {},
"uuid": "5e68fcf5-e7ab-415e-b3d7-1645b943b530",
"parentUUID": "0f151e63-829b-4b9d-aafb-c3d5903f5cd6",
"isHook": false,
"skipped": false
},
{
"title": "finds element by class name regex",
"fullTitle": "Assertions Explicit Assertions finds element by class name regex",
"timedOut": null,
"duration": 116,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "cy.get('.docs-header').find('div')\n// .should(cb) callback function will be retried\n.should($div => {\n expect($div).to.have.length(1);\n const className = $div[0].className;\n expect(className).to.match(/heading-/);\n})\n// .then(cb) callback is not retried,\n// it either passes or fails\n.then($div => {\n expect($div, 'text content').to.have.text('Introduction');\n});",
"err": {},
"uuid": "fcaab6fe-67c4-493e-a2ab-4a47e962391b",
"parentUUID": "0f151e63-829b-4b9d-aafb-c3d5903f5cd6",
"isHook": false,
"skipped": false
},
{
"title": "can throw any error",
"fullTitle": "Assertions Explicit Assertions can throw any error",
"timedOut": null,
"duration": 109,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "cy.get('.docs-header').find('div').should($div => {\n if ($div.length !== 1) {\n // you can throw your own errors\n throw new Error('Did not find 1 element');\n }\n const className = $div[0].className;\n if (!className.match(/heading-/)) {\n throw new Error(`Could not find class \"heading-\" in ${className}`);\n }\n});",
"err": {},
"uuid": "5cd25c08-3259-4fe1-9eb3-9ccb7c07d730",
"parentUUID": "0f151e63-829b-4b9d-aafb-c3d5903f5cd6",
"isHook": false,
"skipped": false
},
{
"title": "matches unknown text between two elements",
"fullTitle": "Assertions Explicit Assertions matches unknown text between two elements",
"timedOut": null,
"duration": 113,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "/**\n * Text from the first element.\n * @type {string}\n*/\nlet text;\n/**\n * Normalizes passed text,\n * useful before comparing text with spaces and different capitalization.\n * @param {string} s Text to normalize\n*/\nconst normalizeText = s => s.replace(/\\s/g, '').toLowerCase();\ncy.get('.two-elements').find('.first').then($first => {\n // save text from the first element\n text = normalizeText($first.text());\n});\ncy.get('.two-elements').find('.second').should($div => {\n // we can massage text before comparing\n const secondText = normalizeText($div.text());\n expect(secondText, 'second text').to.equal(text);\n});",
"err": {},
"uuid": "ac555865-2b1c-400a-b731-f654e91dc0ec",
"parentUUID": "0f151e63-829b-4b9d-aafb-c3d5903f5cd6",
"isHook": false,
"skipped": false
},
{
"title": "assert - assert shape of an object",
"fullTitle": "Assertions Explicit Assertions assert - assert shape of an object",
"timedOut": null,
"duration": 122,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "const person = {\n name: 'Joe',\n age: 20\n};\nassert.isObject(person, 'value is object');",
"err": {},
"uuid": "c681bdb1-6282-4d71-bff3-26d301cd5442",
"parentUUID": "0f151e63-829b-4b9d-aafb-c3d5903f5cd6",
"isHook": false,
"skipped": false
},
{
"title": "retries the should callback until assertions pass",
"fullTitle": "Assertions Explicit Assertions retries the should callback until assertions pass",
"timedOut": null,
"duration": 1608,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "cy.get('#random-number').should($div => {\n const n = parseFloat($div.text());\n expect(n).to.be.gte(1).and.be.lte(10);\n});",
"err": {},
"uuid": "64d777ef-039a-4587-9f92-151fc3678995",
"parentUUID": "0f151e63-829b-4b9d-aafb-c3d5903f5cd6",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
"9803f22f-1193-4401-a698-bf5302f461be",
"5e68fcf5-e7ab-415e-b3d7-1645b943b530",
"fcaab6fe-67c4-493e-a2ab-4a47e962391b",
"5cd25c08-3259-4fe1-9eb3-9ccb7c07d730",
"ac555865-2b1c-400a-b731-f654e91dc0ec",
"c681bdb1-6282-4d71-bff3-26d301cd5442",
"64d777ef-039a-4587-9f92-151fc3678995"
],
"failures": [],
"pending": [],
"skipped": [],
"duration": 2314,
"root": false,
"rootEmpty": false,
"_timeout": 2000
}
],
"passes": [],
"failures": [],
"pending": [],
"skipped": [],
"duration": 0,
"root": false,
"rootEmpty": false,
"_timeout": 2000
}
],
"passes": [],
"failures": [],
"pending": [],
"skipped": [],
"duration": 0,
"root": true,
"rootEmpty": true,
"_timeout": 2000
},
{
"uuid": "48a6e758-0fda-4967-970c-fd401e941592",
"title": "",
"fullFile": "cypress/e2e/set-1/connectors.cy.js",
"file": "cypress/e2e/set-1/connectors.cy.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [],
"suites": [
{
"uuid": "7044b7b8-6087-45c3-9dc6-a659e68cf1dd",
"title": "Connectors",
"fullFile": "",
"file": "",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
"title": ".each() - iterate over an array of elements",
"fullTitle": "Connectors .each() - iterate over an array of elements",
"timedOut": null,
"duration": 355,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/each\ncy.get('.connectors-each-ul>li').each(($el, index, $list) => {\n console.log($el, index, $list);\n});",
"err": {},
"uuid": "0e6d320a-c52e-4c68-99e4-8eff0186dc0d",
"parentUUID": "7044b7b8-6087-45c3-9dc6-a659e68cf1dd",
"isHook": false,
"skipped": false
},
{
"title": ".its() - get properties on the current subject",
"fullTitle": "Connectors .its() - get properties on the current subject",
"timedOut": null,
"duration": 125,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/its\ncy.get('.connectors-its-ul>li')\n// calls the 'length' property yielding that value\n.its('length').should('be.gt', 2);",
"err": {},
"uuid": "2f32a29c-6129-44c8-be43-25425c64d208",
"parentUUID": "7044b7b8-6087-45c3-9dc6-a659e68cf1dd",
"isHook": false,
"skipped": false
},
{
"title": ".invoke() - invoke a function on the current subject",
"fullTitle": "Connectors .invoke() - invoke a function on the current subject",
"timedOut": null,
"duration": 126,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// our div is hidden in our script.js\n// $('.connectors-div').hide()\ncy.get('.connectors-div').should('be.hidden');\n// https://on.cypress.io/invoke\n// call the jquery method 'show' on the 'div.container'\ncy.get('.connectors-div').invoke('show');\ncy.get('.connectors-div').should('be.visible');",
"err": {},
"uuid": "f2c49222-292a-461f-8261-9599f93fb27f",
"parentUUID": "7044b7b8-6087-45c3-9dc6-a659e68cf1dd",
"isHook": false,
"skipped": false
},
{
"title": ".spread() - spread an array as individual args to callback function",
"fullTitle": "Connectors .spread() - spread an array as individual args to callback function",
"timedOut": null,
"duration": 112,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/spread\nconst arr = ['foo', 'bar', 'baz'];\ncy.wrap(arr).spread((foo, bar, baz) => {\n expect(foo).to.eq('foo');\n expect(bar).to.eq('bar');\n expect(baz).to.eq('baz');\n});",
"err": {},
"uuid": "b81d50ed-ebb7-409f-9267-f39d792008e4",
"parentUUID": "7044b7b8-6087-45c3-9dc6-a659e68cf1dd",
"isHook": false,
"skipped": false
}
],
"suites": [
{
"uuid": "680e8584-ab3b-4038-beac-c2b089c4f18b",
"title": ".then()",
"fullFile": "",
"file": "",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
"title": "invokes a callback function with the current subject",
"fullTitle": "Connectors .then() invokes a callback function with the current subject",
"timedOut": null,
"duration": 124,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/then\ncy.get('.connectors-list > li').then($lis => {\n expect($lis, '3 items').to.have.length(3);\n expect($lis.eq(0), 'first item').to.contain('Walk the dog');\n expect($lis.eq(1), 'second item').to.contain('Feed the cat');\n expect($lis.eq(2), 'third item').to.contain('Write JavaScript');\n});",
"err": {},
"uuid": "b4cadea3-da05-4912-b73f-a123175ff141",
"parentUUID": "680e8584-ab3b-4038-beac-c2b089c4f18b",
"isHook": false,
"skipped": false
},
{
"title": "yields the returned value to the next command",
"fullTitle": "Connectors .then() yields the returned value to the next command",
"timedOut": null,
"duration": 135,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "cy.wrap(1).then(num => {\n expect(num).to.equal(1);\n return 2;\n}).then(num => {\n expect(num).to.equal(2);\n});",
"err": {},
"uuid": "6ba5663c-42b6-4a0b-8dc5-500cbc9fd906",
"parentUUID": "680e8584-ab3b-4038-beac-c2b089c4f18b",
"isHook": false,
"skipped": false
},
{
"title": "yields the original subject without return",
"fullTitle": "Connectors .then() yields the original subject without return",
"timedOut": null,
"duration": 117,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "cy.wrap(1).then(num => {\n expect(num).to.equal(1);\n // note that nothing is returned from this callback\n}).then(num => {\n // this callback receives the original unchanged value 1\n expect(num).to.equal(1);\n});",
"err": {},
"uuid": "4c29f66e-035b-4696-934d-e5238854333d",
"parentUUID": "680e8584-ab3b-4038-beac-c2b089c4f18b",
"isHook": false,
"skipped": false
},
{
"title": "yields the value yielded by the last Cypress command inside",
"fullTitle": "Connectors .then() yields the value yielded by the last Cypress command inside",
"timedOut": null,
"duration": 124,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "cy.wrap(1).then(num => {\n expect(num).to.equal(1);\n // note how we run a Cypress command\n // the result yielded by this Cypress command\n // will be passed to the second \".then\"\n cy.wrap(2);\n}).then(num => {\n // this callback receives the value yielded by \"cy.wrap(2)\"\n expect(num).to.equal(2);\n});",
"err": {},
"uuid": "453ea1d5-4449-434d-a06b-0bf71fb2b9a9",
"parentUUID": "680e8584-ab3b-4038-beac-c2b089c4f18b",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
"b4cadea3-da05-4912-b73f-a123175ff141",
"6ba5663c-42b6-4a0b-8dc5-500cbc9fd906",
"4c29f66e-035b-4696-934d-e5238854333d",
"453ea1d5-4449-434d-a06b-0bf71fb2b9a9"
],
"failures": [],
"pending": [],
"skipped": [],
"duration": 500,
"root": false,
"rootEmpty": false,
"_timeout": 2000
}
],
"passes": [
"0e6d320a-c52e-4c68-99e4-8eff0186dc0d",
"2f32a29c-6129-44c8-be43-25425c64d208",
"f2c49222-292a-461f-8261-9599f93fb27f",
"b81d50ed-ebb7-409f-9267-f39d792008e4"
],
"failures": [],
"pending": [],
"skipped": [],
"duration": 718,
"root": false,
"rootEmpty": false,
"_timeout": 2000
}
],
"passes": [],
"failures": [],
"pending": [],
"skipped": [],
"duration": 0,
"root": true,
"rootEmpty": true,
"_timeout": 2000
},
{
"uuid": "d58f324b-d485-4742-a61f-944d61ebe0f4",
"title": "",
"fullFile": "cypress/e2e/set-1/cookies.cy.js",
"file": "cypress/e2e/set-1/cookies.cy.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [],
"suites": [
{
"uuid": "2d40ef1a-f8b9-4bd6-ac9f-748ad511e760",
"title": "Cookies",
"fullFile": "",
"file": "",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
"title": "cy.getCookie() - get a browser cookie",
"fullTitle": "Cookies cy.getCookie() - get a browser cookie",
"timedOut": null,
"duration": 392,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/getcookie\ncy.get('#getCookie .set-a-cookie').click();\n// cy.getCookie() yields a cookie object\ncy.getCookie('token').should('have.property', 'value', '123ABC');",
"err": {},
"uuid": "d8500bfa-f01a-427c-8f44-f55e94fb4bfe",
"parentUUID": "2d40ef1a-f8b9-4bd6-ac9f-748ad511e760",
"isHook": false,
"skipped": false
},
{
"title": "cy.getCookies() - get browser cookies for the current domain",
"fullTitle": "Cookies cy.getCookies() - get browser cookies for the current domain",
"timedOut": null,
"duration": 236,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/getcookies\ncy.getCookies().should('be.empty');\ncy.get('#getCookies .set-a-cookie').click();\n// cy.getCookies() yields an array of cookies\ncy.getCookies().should('have.length', 1).should(cookies => {\n // each cookie has these properties\n expect(cookies[0]).to.have.property('name', 'token');\n expect(cookies[0]).to.have.property('value', '123ABC');\n expect(cookies[0]).to.have.property('httpOnly', false);\n expect(cookies[0]).to.have.property('secure', false);\n expect(cookies[0]).to.have.property('domain');\n expect(cookies[0]).to.have.property('path');\n});",
"err": {},
"uuid": "055e3a36-2187-44a6-a47f-9867d96199f4",
"parentUUID": "2d40ef1a-f8b9-4bd6-ac9f-748ad511e760",
"isHook": false,
"skipped": false
},
{
"title": "cy.getAllCookies() - get all browser cookies",
"fullTitle": "Cookies cy.getAllCookies() - get all browser cookies",
"timedOut": null,
"duration": 145,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/getallcookies\ncy.getAllCookies().should('be.empty');\ncy.setCookie('key', 'value');\ncy.setCookie('key', 'value', {\n domain: '.example.com'\n});\n// cy.getAllCookies() yields an array of cookies\ncy.getAllCookies().should('have.length', 2).should(cookies => {\n // each cookie has these properties\n expect(cookies[0]).to.have.property('name', 'key');\n expect(cookies[0]).to.have.property('value', 'value');\n expect(cookies[0]).to.have.property('httpOnly', false);\n expect(cookies[0]).to.have.property('secure', false);\n expect(cookies[0]).to.have.property('domain');\n expect(cookies[0]).to.have.property('path');\n expect(cookies[1]).to.have.property('name', 'key');\n expect(cookies[1]).to.have.property('value', 'value');\n expect(cookies[1]).to.have.property('httpOnly', false);\n expect(cookies[1]).to.have.property('secure', false);\n expect(cookies[1]).to.have.property('domain', '.example.com');\n expect(cookies[1]).to.have.property('path');\n});",
"err": {},
"uuid": "3109d973-6a9b-428d-9e80-b556924ac69e",
"parentUUID": "2d40ef1a-f8b9-4bd6-ac9f-748ad511e760",
"isHook": false,
"skipped": false
},
{
"title": "cy.setCookie() - set a browser cookie",
"fullTitle": "Cookies cy.setCookie() - set a browser cookie",
"timedOut": null,
"duration": 158,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/setcookie\ncy.getCookies().should('be.empty');\ncy.setCookie('foo', 'bar');\n// cy.getCookie() yields a cookie object\ncy.getCookie('foo').should('have.property', 'value', 'bar');",
"err": {},
"uuid": "05a2fccc-b650-45c1-8a86-148deecb5dd5",
"parentUUID": "2d40ef1a-f8b9-4bd6-ac9f-748ad511e760",
"isHook": false,
"skipped": false
},
{
"title": "cy.clearCookie() - clear a browser cookie",
"fullTitle": "Cookies cy.clearCookie() - clear a browser cookie",
"timedOut": null,
"duration": 230,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/clearcookie\ncy.getCookie('token').should('be.null');\ncy.get('#clearCookie .set-a-cookie').click();\ncy.getCookie('token').should('have.property', 'value', '123ABC');\n// cy.clearCookies() yields null\ncy.clearCookie('token');\ncy.getCookie('token').should('be.null');",
"err": {},
"uuid": "33921a2a-527b-466f-9a2e-e28dec559d37",
"parentUUID": "2d40ef1a-f8b9-4bd6-ac9f-748ad511e760",
"isHook": false,
"skipped": false
},
{
"title": "cy.clearCookies() - clear browser cookies for the current domain",
"fullTitle": "Cookies cy.clearCookies() - clear browser cookies for the current domain",
"timedOut": null,
"duration": 222,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/clearcookies\ncy.getCookies().should('be.empty');\ncy.get('#clearCookies .set-a-cookie').click();\ncy.getCookies().should('have.length', 1);\n// cy.clearCookies() yields null\ncy.clearCookies();\ncy.getCookies().should('be.empty');",
"err": {},
"uuid": "468c2aab-7b77-4ab4-ac79-a819aa2e1255",
"parentUUID": "2d40ef1a-f8b9-4bd6-ac9f-748ad511e760",
"isHook": false,
"skipped": false
},
{
"title": "cy.clearAllCookies() - clear all browser cookies",
"fullTitle": "Cookies cy.clearAllCookies() - clear all browser cookies",
"timedOut": null,
"duration": 163,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "// https://on.cypress.io/clearallcookies\ncy.getAllCookies().should('be.empty');\ncy.setCookie('key', 'value');\ncy.setCookie('key', 'value', {\n domain: '.example.com'\n});\ncy.getAllCookies().should('have.length', 2);\n// cy.clearAllCookies() yields null\ncy.clearAllCookies();\ncy.getAllCookies().should('be.empty');",
"err": {},