summaryrefslogtreecommitdiff
path: root/monkey-test/cookies.yaml
blob: 76bf721b3fbc15d1522573fdee781d0654428318 (plain)
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
title: Test ecmascript cookies behaviour
group: ecmascript
steps:
- action: launch
  language: en
  options:
  - enable_javascript=1
- action: window-new
  tag: win1

# Ensure we can load the page properly in the first place
- action: navigate
  window: win1
  url: https://test.netsurf-browser.org/cgi-bin/cookies.cgi
- action: block
  conditions:
  - window: win1
    status: complete
- action: plot-check
  window: win1
  checks:
  - text-contains: "JSON: 0"


# Now check that refreshing has incremented the counter
- action: reload
  window: win1
- action: block
  conditions:
  - window: win1
    status: complete
- action: plot-check
  window: win1
  checks:
  - text-contains: "JSON: 1"

# Now check that refreshing has incremented the counter
- action: reload
  window: win1
- action: block
  conditions:
  - window: win1
    status: complete
- action: plot-check
  window: win1
  checks:
  - text-contains: "JSON: 2"

# Now check that using http rather than https resets the counter
- action: navigate
  window: win1
  url: http://test.netsurf-browser.org/cgi-bin/cookies.cgi
- action: block
  conditions:
  - window: win1
    status: complete
- action: plot-check
  window: win1
  checks:
  - text-contains: "JSON: 0"

- action: window-close
  window: win1
- action: quit