Skip to content

Commit

Permalink
Merge pull request josdejong#33 from accumatic/5-log-out-success
Browse files Browse the repository at this point in the history
Add new scenario, move common steps to background
  • Loading branch information
anzud authored Apr 9, 2020
2 parents c57f0f3 + 007d268 commit 228118e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 19 deletions.
18 changes: 13 additions & 5 deletions src/features/login.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,24 @@ Feature: Login page
Because I want to get access to report processing

Background:
Given I open the url "https://dash-staging.accumatic.com/sign-in"
Given I open the url "https://dash-staging.accumatic.com/sign-out"
Then I wait on element "form.dash-form" for 5000ms to be displayed
When I open the url "https://dash-staging.accumatic.com/sign-in"
When I set "beepbeep" to the inputfield "#dash-form-field-password"
When I set "aleksey.gerasimov@akvelon.com" to the inputfield "#dash-form-field-email"
And I press "Enter"

# The @Verbose tag adds a screenshot and additional test metadata.
@Verbose
Scenario: Searching for unknown term
When I set "" to the inputfield "#dash-form-field-email"
When I set "" to the inputfield "#dash-form-field-password"
And I press "Enter"
Scenario: Sucessful log-in
Then I expect that element ".sign-in-notice" becomes not displayed

@Verbose
Scenario: Sucessful log-out
Then I wait on element "div.user-info a.button" for 5000ms to be displayed
When I click on the button "div.user-info a.button"
Then I expect that element "form.dash-form" becomes displayed

# The @Verbose tag adds a screenshot and additional test metadata.
# @Verbose
# Scenario Outline: Searching for term "<searchItem>"
Expand Down
14 changes: 0 additions & 14 deletions test/specs/authorization_success.spec.js

This file was deleted.

0 comments on commit 228118e

Please sign in to comment.