From 36b9b2c020f3be48f7b062607d67ac1a85b46395 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Fri, 22 May 2020 09:16:23 +0100 Subject: short-internet: Use new approach for https-badssl tests Signed-off-by: Daniel Silverstone --- monkey-test/short-internet/https-badssl-expired.yaml | 11 +++++++---- monkey-test/short-internet/https-badssl-selfsigned.yaml | 11 +++++++---- monkey-test/short-internet/https-badssl-untrustedroot.yaml | 11 +++++++---- monkey-test/short-internet/https-badssl-wronghost.yaml | 11 +++++++---- 4 files changed, 28 insertions(+), 16 deletions(-) diff --git a/monkey-test/short-internet/https-badssl-expired.yaml b/monkey-test/short-internet/https-badssl-expired.yaml index 75cac99..c686511 100644 --- a/monkey-test/short-internet/https-badssl-expired.yaml +++ b/monkey-test/short-internet/https-badssl-expired.yaml @@ -27,11 +27,14 @@ steps: window: win1 checks: - text-not-contains: "expired. badssl.com" -- action: add-cert - url: https://expired.badssl.com/ -- action: navigate +- action: click window: win1 - url: https://expired.badssl.com/ + target: + - text: Proceed +- action: block + conditions: + - window: win1 + status: loading - action: block conditions: - window: win1 diff --git a/monkey-test/short-internet/https-badssl-selfsigned.yaml b/monkey-test/short-internet/https-badssl-selfsigned.yaml index 51938fa..96bb47c 100644 --- a/monkey-test/short-internet/https-badssl-selfsigned.yaml +++ b/monkey-test/short-internet/https-badssl-selfsigned.yaml @@ -27,11 +27,14 @@ steps: window: win1 checks: - text-not-contains: "self-signed. badssl.com" -- action: add-cert - url: https://self-signed.badssl.com/ -- action: navigate +- action: click window: win1 - url: https://self-signed.badssl.com/ + target: + - text: Proceed +- action: block + conditions: + - window: win1 + status: loading - action: block conditions: - window: win1 diff --git a/monkey-test/short-internet/https-badssl-untrustedroot.yaml b/monkey-test/short-internet/https-badssl-untrustedroot.yaml index 6e23d34..9643d88 100644 --- a/monkey-test/short-internet/https-badssl-untrustedroot.yaml +++ b/monkey-test/short-internet/https-badssl-untrustedroot.yaml @@ -27,11 +27,14 @@ steps: window: win1 checks: - text-not-contains: "untrusted-root. badssl.com" -- action: add-cert - url: https://untrusted-root.badssl.com/ -- action: navigate +- action: click window: win1 - url: https://untrusted-root.badssl.com/ + target: + - text: Proceed +- action: block + conditions: + - window: win1 + status: loading - action: block conditions: - window: win1 diff --git a/monkey-test/short-internet/https-badssl-wronghost.yaml b/monkey-test/short-internet/https-badssl-wronghost.yaml index 6f60438..5d99ea8 100644 --- a/monkey-test/short-internet/https-badssl-wronghost.yaml +++ b/monkey-test/short-internet/https-badssl-wronghost.yaml @@ -27,11 +27,14 @@ steps: window: win1 checks: - text-not-contains: "wrong.host. badssl.com" -- action: add-cert - url: https://wrong.host.badssl.com/ -- action: navigate +- action: click window: win1 - url: https://wrong.host.badssl.com/ + target: + - text: Proceed +- action: block + conditions: + - window: win1 + status: loading - action: block conditions: - window: win1 -- cgit v1.2.3