|
27 | 27 |
|
28 | 28 | click_on "Change organization" |
29 | 29 |
|
30 | | - expect(page).to have_text "You’ve selected Change Organization for 2 clients" |
| 30 | + page_change_check("You’ve selected Change Organization for 2 clients") |
31 | 31 | select "Orange Organization", from: "New organization" |
32 | 32 | fill_in "Send message (English)", with: "Orange is your best bet" |
33 | 33 | fill_in "Send message (Spanish)", with: "Naranja es la mejor" |
34 | 34 | fill_in "Add an internal note", with: "Moved!" |
35 | 35 | click_on "Submit" |
36 | 36 |
|
37 | | - expect(current_path).to eq hub_user_notifications_path |
| 37 | + page_change_check(hub_user_notifications_path, path: true) |
38 | 38 | perform_enqueued_jobs |
39 | 39 | visit page.current_path |
40 | 40 | expect(page).to have_text "You successfully moved 2 clients to Orange Organization." |
|
51 | 51 | click_on "Nombre" |
52 | 52 | end |
53 | 53 | click_on "Notes" |
54 | | - expect(page).to have_text "Moved!" |
| 54 | + page_change_check("Moved!") |
55 | 55 |
|
56 | 56 | perform_enqueued_jobs |
57 | 57 |
|
58 | 58 | click_on "Messages" |
59 | | - expect(page).to have_text "Naranja es la mejor" |
| 59 | + page_change_check("Naranja es la mejor") |
60 | 60 |
|
61 | 61 | visit hub_user_notifications_path |
62 | 62 | within ".in-progress" do |
|
86 | 86 |
|
87 | 87 | click_on "Send a message" |
88 | 88 |
|
89 | | - expect(page).to have_text "You’ve selected Send a Message for 2 clients" |
| 89 | + page_change_check("You’ve selected Send a Message for 2 clients") |
90 | 90 | fill_in "Send message (English)", with: "Orange is your best bet" |
91 | 91 | fill_in "Send message (Spanish)", with: "Naranja es la mejor" |
92 | 92 | click_on "Submit" |
93 | 93 |
|
94 | | - expect(current_path).to eq hub_user_notifications_path |
| 94 | + page_change_check(hub_user_notifications_path, path: true) |
95 | 95 | perform_enqueued_jobs |
96 | 96 | visit page.current_path |
97 | 97 | expect(page).to have_text "Bulk Send a Message In Progress" |
|
106 | 106 | click_on "Nombre" |
107 | 107 | end |
108 | 108 | click_on "Messages" |
109 | | - expect(page).to have_text "Naranja es la mejor" |
| 109 | + page_change_check("Naranja es la mejor") |
110 | 110 |
|
111 | 111 | visit hub_user_notifications_path |
112 | 112 | within ".in-progress" do |
|
117 | 117 | click_on "Name" |
118 | 118 | end |
119 | 119 | click_on "Messages" |
120 | | - expect(page).to have_text "Orange is your best bet" |
| 120 | + page_change_check("Orange is your best bet") |
121 | 121 | end |
122 | 122 |
|
123 | 123 | scenario "bulk changing assignee and/or status", js: true do |
|
0 commit comments