File tree 5 files changed +9
-9
lines changed
5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 26
26
before do
27
27
visit "/admin/adjustment_reasons#{ query } "
28
28
click_on "Add new"
29
- expect ( page ) . to have_selector ( "dialog" )
29
+ expect ( page ) . to have_selector ( "dialog" , wait : 5 )
30
30
expect ( page ) . to have_content ( "New Adjustment Reason" )
31
31
expect ( page ) . to be_axe_clean
32
32
end
69
69
Spree ::AdjustmentReason . create ( name : "Good Reason" , code : 5999 )
70
70
visit "/admin/adjustment_reasons#{ query } "
71
71
find_row ( "Good Reason" ) . click
72
- expect ( page ) . to have_selector ( "dialog" )
72
+ expect ( page ) . to have_selector ( "dialog" , wait : 5 )
73
73
expect ( page ) . to have_content ( "Edit Adjustment Reason" )
74
74
expect ( page ) . to be_axe_clean
75
75
end
Original file line number Diff line number Diff line change 26
26
before do
27
27
visit "/admin/return_reasons#{ query } "
28
28
click_on "Add new"
29
- expect ( page ) . to have_selector ( "dialog" )
29
+ expect ( page ) . to have_selector ( "dialog" , wait : 5 )
30
30
expect ( page ) . to have_content ( "New Return Reason" )
31
31
expect ( page ) . to be_axe_clean
32
32
end
68
68
Spree ::ReturnReason . create ( name : "Good Reason" )
69
69
visit "/admin/return_reasons#{ query } "
70
70
find_row ( "Good Reason" ) . click
71
- expect ( page ) . to have_selector ( "dialog" )
71
+ expect ( page ) . to have_selector ( "dialog" , wait : 5 )
72
72
expect ( page ) . to have_content ( "Edit Return Reason" )
73
73
expect ( page ) . to be_axe_clean
74
74
end
Original file line number Diff line number Diff line change 54
54
before do
55
55
visit "/admin/roles#{ query } "
56
56
click_on "Add new"
57
- expect ( page ) . to have_selector ( "dialog" )
57
+ expect ( page ) . to have_selector ( "dialog" , wait : 5 )
58
58
expect ( page ) . to have_content ( "New Role" )
59
59
expect ( page ) . to be_axe_clean
60
60
end
121
121
Spree ::Role . create ( name : "Reviewer" , permission_sets : [ settings_edit_permission ] )
122
122
visit "/admin/roles#{ query } "
123
123
find_row ( "Reviewer" ) . click
124
- expect ( page ) . to have_selector ( "dialog" )
124
+ expect ( page ) . to have_selector ( "dialog" , wait : 5 )
125
125
expect ( page ) . to have_content ( "Edit Role" )
126
126
expect ( page ) . to be_axe_clean
127
127
expect ( Spree ::Role . find_by ( name : "Reviewer" ) . permission_set_ids )
Original file line number Diff line number Diff line change 26
26
before do
27
27
visit "/admin/store_credit_reasons#{ query } "
28
28
click_on "Add new"
29
- expect ( page ) . to have_selector ( "dialog" )
29
+ expect ( page ) . to have_selector ( "dialog" , wait : 5 )
30
30
expect ( page ) . to have_content ( "New Store Credit Reason" )
31
31
expect ( page ) . to be_axe_clean
32
32
end
66
66
Spree ::StoreCreditReason . create ( name : "New Customer Reward" )
67
67
visit "/admin/store_credit_reasons#{ query } "
68
68
find_row ( "New Customer Reward" ) . click
69
- expect ( page ) . to have_selector ( "dialog" )
69
+ expect ( page ) . to have_selector ( "dialog" , wait : 5 )
70
70
expect ( page ) . to have_content ( "Edit Store Credit Reason" )
71
71
expect ( page ) . to be_axe_clean
72
72
end
Original file line number Diff line number Diff line change 28
28
before do
29
29
visit "/admin/tax_categories#{ query } "
30
30
click_on "Add new"
31
- expect ( page ) . to have_selector ( "dialog" )
31
+ expect ( page ) . to have_selector ( "dialog" , wait : 5 )
32
32
expect ( page ) . to have_content ( "New Tax Category" )
33
33
expect ( page ) . to be_axe_clean
34
34
end
You can’t perform that action at this time.
0 commit comments