Commit 65fdd24d authored by Rémy Coutable's avatar Rémy Coutable

Wait for the 'Empty wiki' SVG to load before performing test assertions

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 236fb31b
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
require 'spec_helper' require 'spec_helper'
describe 'User updates wiki page' do describe 'User updates wiki page' do
include WikiHelpers
let(:user) { create(:user) } let(:user) { create(:user) }
before do before do
...@@ -11,8 +13,11 @@ describe 'User updates wiki page' do ...@@ -11,8 +13,11 @@ describe 'User updates wiki page' do
end end
context 'when wiki is empty' do context 'when wiki is empty' do
before do before do |example|
visit(project_wikis_path(project)) visit(project_wikis_path(project))
wait_for_svg_to_be_loaded(example)
click_link "Create your first page" click_link "Create your first page"
end end
......
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