From 1e046435767dd4a4d1f05a996ed67407d2b9c655 Mon Sep 17 00:00:00 2001 From: Julian Herrero Date: Tue, 12 Mar 2019 17:31:39 +0100 Subject: [PATCH] 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. --- spec/features/welcome_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/features/welcome_spec.rb b/spec/features/welcome_spec.rb index 23b88849f..c93622cc2 100644 --- a/spec/features/welcome_spec.rb +++ b/spec/features/welcome_spec.rb @@ -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