bdd: Add test for webpage authentication.
This commit is contained in:
parent
573654ece1
commit
cda6d7c06d
@ -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"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user