diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-02-16 10:56:28 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2019-02-16 10:58:17 +0000 |
commit | f33db7d4429f14c215933c28853813c46f97f11e (patch) | |
tree | 3e3eb0428d21d53f8de3f4645bacd4e5eb5a98cc /test/monkey-tests/401login.yaml | |
parent | b25c7b3d2d3da854755208e05e43cbe787f389ae (diff) | |
download | netsurf-f33db7d4429f14c215933c28853813c46f97f11e.tar.gz netsurf-f33db7d4429f14c215933c28853813c46f97f11e.tar.bz2 |
Monkey: Support 401login in the monkey-driver et al.
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'test/monkey-tests/401login.yaml')
-rw-r--r-- | test/monkey-tests/401login.yaml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/test/monkey-tests/401login.yaml b/test/monkey-tests/401login.yaml new file mode 100644 index 000000000..a9a74cd10 --- /dev/null +++ b/test/monkey-tests/401login.yaml @@ -0,0 +1,38 @@ +title: Test the 401 LOGIN functionality +group: real-world +steps: +- action: launch + language: en +- action: window-new + tag: win1 +- action: navigate + window: win1 + url: https://httpbin.org/basic-auth/foo/bar +- action: block + conditions: + - window: win1 + status: complete +- action: plot-check + window: win1 + checks: + - text-not-contains: "\"authenticated\": true" +- action: add-auth + url: https://httpbin.org/basic-auth/foo/bar + realm: Fake Realm + username: foo + password: bar +- action: navigate + window: win1 + url: https://httpbin.org/basic-auth/foo/bar +- action: block + conditions: + - window: win1 + status: complete +- action: plot-check + window: win1 + checks: + - text-contains: "\"authenticated\": true" +- action: window-close + window: win1 +- action: quit + |