Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions spec/system/account_request_system_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@

expect(AccountRequest.count).to eq(0)

expect { click_button 'Submit' }.to change(AccountRequest, :count).by(1)
click_button 'Submit'

created_account_request = AccountRequest.last

# Request Received
# Wait for the redirect before asserting on the count, otherwise the
# async form submission may not have been processed yet.
expect(page).to have_content('Request Received!')
expect(AccountRequest.count).to eq(1)

created_account_request = AccountRequest.last
expect(page).to have_content("We've sent you a email with instructions on next steps at #{created_account_request.email}!")

# Access link within email they would have received
Expand Down
7 changes: 4 additions & 3 deletions spec/system/partner_system_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -766,9 +766,10 @@ def post_refresh
visit partners_path

click_on 'Groups'
assert page.has_content? existing_partner_group.name, wait: page_content_wait

click_on 'Edit'
within '#nav-partner-groups', wait: page_content_wait do
assert page.has_content? existing_partner_group.name
click_on 'Edit'
end
post_refresh
end

Expand Down
Loading