Коммит a787b92f создал по автору Stan Hu's avatar Stan Hu
Просмотр файлов

Prefer `find(:xpath, ...)` to `expect(...).to have_xpath`

владелец f18f513d
......@@ -141,7 +141,7 @@ def get_parallel_line_components(line_holder, diff_side = nil)
def comment_on_line(line_holder, line)
line[:num].find(comment_button_class).trigger 'click'
expect(line_holder).to have_xpath notes_holder_input_xpath
line_holder.find(:xpath, notes_holder_input_xpath)
notes_holder_input = line_holder.find(:xpath, notes_holder_input_xpath)
expect(notes_holder_input[:class]).to include(notes_holder_input_class)
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать