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 @@
require 'spec_helper'
describe 'User updates wiki page' do
include WikiHelpers
let(:user) { create(:user) }
before do
......@@ -11,8 +13,11 @@ describe 'User updates wiki page' do
end
context 'when wiki is empty' do
before do
before do |example|
visit(project_wikis_path(project))
wait_for_svg_to_be_loaded(example)
click_link "Create your first page"
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