Skip to content

Commit

Permalink
test: add waits after page load
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev committed Aug 25, 2020
1 parent 29fb8eb commit 4c378cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/system/avo/heading_field_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

it 'checks for html header' do
visit "/avo/resources/users/#{user.id}"
wait_for_loaded

expect(find_field_element('heading_div_class_text_gray_300_uppercase_font_bold_dev_div')).to have_text 'DEV'
expect(find_field_element('heading_div_class_text_gray_300_uppercase_font_bold_dev_div')).to have_css '.uppercase'
Expand All @@ -23,6 +24,7 @@
context 'edit' do
it 'checks for normal header' do
visit "/avo/resources/users/#{user.id}/edit"
wait_for_loaded

expect(find_field_element('heading_user_information')).to have_text 'USER INFORMATION'
end
Expand All @@ -31,6 +33,7 @@
context 'edit' do
it 'checks for html header' do
visit "/avo/resources/users/#{user.id}/edit"
wait_for_loaded

expect(find_field_element('heading_div_class_text_gray_300_uppercase_font_bold_dev_div')).to have_text 'DEV'
expect(find_field_element('heading_div_class_text_gray_300_uppercase_font_bold_dev_div')).to have_css '.uppercase'
Expand Down

0 comments on commit 4c378cb

Please sign in to comment.