Adjust spec after changing welcome pages
Welcome pages no longer have classes or `span' tags. They still have the 4 `li' tags, so we check for them.
This commit is contained in:
@@ -95,8 +95,7 @@ feature "Welcome screen" do
|
||||
login_through_form_as(user)
|
||||
|
||||
4.times do |i|
|
||||
expect(page).to have_css ".user-permissions > ul:nth-child(2) >
|
||||
li:nth-child(#{i + 1}) > span:nth-child(1)"
|
||||
expect(page).to have_css "li:nth-child(#{i + 1})"
|
||||
end
|
||||
|
||||
Setting["feature.user.skip_verification"] = nil
|
||||
|
||||
Reference in New Issue
Block a user