Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/projects/wiki/user_views_wiki_page_spec.rb')
-rw-r--r--spec/features/projects/wiki/user_views_wiki_page_spec.rb16
1 files changed, 11 insertions, 5 deletions
diff --git a/spec/features/projects/wiki/user_views_wiki_page_spec.rb b/spec/features/projects/wiki/user_views_wiki_page_spec.rb
index c7856342fb2..1a9cde4571e 100644
--- a/spec/features/projects/wiki/user_views_wiki_page_spec.rb
+++ b/spec/features/projects/wiki/user_views_wiki_page_spec.rb
@@ -19,9 +19,12 @@ describe 'User views a wiki page' do
sign_in(user)
end
- context 'when wiki is empty' do
+ context 'when wiki is empty', :js do
before do
- visit(project_wikis_path(project))
+ visit project_wikis_path(project)
+
+ wait_for_svg_to_be_loaded
+
click_link "Create your first page"
fill_in(:wiki_title, with: 'one/two/three-test')
@@ -32,7 +35,7 @@ describe 'User views a wiki page' do
end
end
- it 'shows the history of a page that has a path', :js do
+ it 'shows the history of a page that has a path' do
expect(current_path).to include('one/two/three-test')
first(:link, text: 'three').click
@@ -45,7 +48,7 @@ describe 'User views a wiki page' do
end
end
- it 'shows an old version of a page', :js do
+ it 'shows an old version of a page' do
expect(current_path).to include('one/two/three-test')
expect(find('.wiki-pages')).to have_content('three')
@@ -162,9 +165,12 @@ describe 'User views a wiki page' do
end
it 'opens a default wiki page', :js do
- visit(project_path(project))
+ visit project_path(project)
find('.shortcuts-wiki').click
+
+ wait_for_svg_to_be_loaded
+
click_link "Create your first page"
expect(page).to have_content('Create New Page')