From cda6d7c06d52b3eb5d35ed10b1b8515773800157 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 14 Jan 2016 22:27:09 +0100 Subject: [PATCH] bdd: Add test for webpage authentication. --- tests/integration/features/prompts.feature | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/integration/features/prompts.feature b/tests/integration/features/prompts.feature index c472f63e8..2573f253c 100644 --- a/tests/integration/features/prompts.feature +++ b/tests/integration/features/prompts.feature @@ -177,3 +177,18 @@ Feature: Prompts And I wait for a prompt And I run :leave-mode Then the javascript message "notification permission aborted" should be logged + + # Page authentication + + Scenario: Successful webpage authentification + When I open basic-auth/user/password without waiting + And I wait for a prompt + And I press the keys "user" + And I run :prompt-accept + And I press the keys "password" + And I run :prompt-accept + Then the json on the page should be: + { + "authenticated": true, + "user": "user" + }