Commit f0bfd4df authored by anonym's avatar anonym
Browse files

Test suite: look for the expected email's subject column.

Previously we looked for the whole line, but calling .click will
result in clicking in its middle which might be something that doesn't
give focus, e.g. the column for the message status (whether it was
read or not).
parent c6f3429a
......@@ -224,11 +224,7 @@ Then /^I can find the email I sent to myself in my inbox$/ do
hit_counter.wait
inbox_view = hit_counter.parent
message_list = inbox_view.child(roleName: 'table')
the_message = message_list.children(roleName: 'table row').find do |message|
# The message will be cropped in the list, so we cannot search
# for the full message.
message.name.start_with?("Automated test suite:")
end
the_message = message_list.child(@subject, roleName: 'table cell')
assert_not_nil(the_message)
# Let's clean up
the_message.click
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment