Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft Testing PR Test/increase capybara wait for asynchronous process #2968

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
4 changes: 2 additions & 2 deletions test/system/deposit_item_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ class DepositItemTest < ApplicationSystemTestCase
attach_file_in_dropzone(file_fixture('image-sample.jpeg'))
has_css? '.j-thumbnail'

click_on I18n.t('items.draft.save_and_continue'), wait: 5
click_on I18n.t('items.draft.save_and_continue')

# 4. Review and Deposit Form

assert_selector 'h2', text: I18n.t('items.draft.review_and_deposit_item.header')
assert_selector 'h2', text: I18n.t('items.draft.review_and_deposit_item.header'), wait: 15

click_on I18n.t('items.draft.header')

Expand Down
4 changes: 2 additions & 2 deletions test/system/deposit_thesis_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ class DepositThesisTest < ApplicationSystemTestCase
attach_file_in_dropzone(file_fixture('image-sample.jpeg'))
has_css? '.j-thumbnail'

click_on I18n.t('admin.theses.draft.save_and_continue'), wait: 5
click_on I18n.t('admin.theses.draft.save_and_continue'), wait: 15

# 4. Review and Deposit Form

assert_selector 'h2', text: I18n.t('admin.theses.draft.review_and_deposit_thesis.header')
assert_selector 'h2', text: I18n.t('admin.theses.draft.review_and_deposit_thesis.header'), wait: 15

click_on I18n.t('admin.theses.draft.header')

Expand Down