From f170d32bb848c507821fd7e442b61c24fe865e59 Mon Sep 17 00:00:00 2001 From: amatriain Date: Fri, 16 Feb 2018 15:46:42 +0100 Subject: [PATCH] Acceptance tests: better detection of page loading finished --- spec/support/features/acceptance_conditions.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/support/features/acceptance_conditions.rb b/spec/support/features/acceptance_conditions.rb index ec2c80ecc..7c3ad17af 100644 --- a/spec/support/features/acceptance_conditions.rb +++ b/spec/support/features/acceptance_conditions.rb @@ -21,6 +21,7 @@ def user_should_not_be_logged_in def page_should_finish_loading expect(page).not_to have_css '.sidebar-spinner' + expect(page).to have_css '#subscription-stats' end ##