|
129 | 129 | it "should show error when no main advisor is selected" do |
130 | 130 | fill_record_select("professor_", "professors", "Fiona") |
131 | 131 | fill_record_select("enrollment_", "enrollments", "M04") |
132 | | - find(:css, "#record_main_advisor_").set(false) |
133 | 132 | click_button_and_wait "Salvar" |
134 | 133 | expect(page).to have_content "Um dos orientadores deve ser Orientador Principal" |
135 | 134 | end |
136 | 135 |
|
137 | 136 | it "should show error when advisor does not have authorization at level" do |
138 | | - fill_record_select("professor_", "professors", "Gisela") |
| 137 | + fill_record_select("professor_", "professors", "Gis") |
139 | 138 | fill_record_select("enrollment_", "enrollments", "M04") |
140 | 139 | find(:css, "#record_main_advisor_").set(true) |
141 | 140 | click_button_and_wait "Salvar" |
142 | 141 | expect(page).to have_content "Ao menos um orientador deve ter credenciamento no nível da matrícula" |
143 | 142 | end |
144 | 143 |
|
145 | 144 | it "should show error when advisor research area is different from enrollment" do |
146 | | - fill_record_select("professor_", "professors", "Helia") |
| 145 | + fill_record_select("professor_", "professors", "Hel") |
147 | 146 | fill_record_select("enrollment_", "enrollments", "M04") |
148 | 147 | find(:css, "#record_main_advisor_").set(true) |
149 | 148 | click_button_and_wait "Salvar" |
|
0 commit comments