Skip to content

Commit

Permalink
Maintenance: Stabilize auto wizard spec.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvuckovic committed Nov 10, 2023
1 parent 3b48a64 commit 36e5139
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions spec/support/capybara/common_actions.rb
Expand Up @@ -132,8 +132,8 @@ def logout(app: self.class.metadata[:app])
# @see Capybara::Session#visit
#
# @example
# visit('logout')
# => visited SPA route 'localhost:32435/#logout'
# visit('signup')
# => visited SPA route 'localhost:32435/#signup'
#
# @example
# visit('/test/ui')
Expand Down
6 changes: 1 addition & 5 deletions spec/system/setup/auto_wizard_spec.rb
Expand Up @@ -55,17 +55,13 @@

close_clues_modal

visit 'logout'

expect(page).to have_current_route('login')
logout

login(
username: 'hans.atila@zammad.org',
password: 'Z4mm4dr0ckZ!'
)

expect(page).to have_current_path('/')

refresh

expect(current_login).to eq('hans.atila@zammad.org')
Expand Down

0 comments on commit 36e5139

Please sign in to comment.