diff options
author | George Tsiolis <tsiolis.g@gmail.com> | 2019-02-15 23:23:17 +0000 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2019-02-15 23:23:17 +0000 |
commit | f07051a2b6df683f11f366342b5ed15bfc1f80ba (patch) | |
tree | 084df6adc74e9f68c476f7a104276209896e8b4e /spec/features/projects/wiki/markdown_preview_spec.rb | |
parent | d06c3ac3ff868a28a445c34b831e7aa6c2154d9c (diff) | |
download | gitlab-ce-f07051a2b6df683f11f366342b5ed15bfc1f80ba.tar.gz |
Remove second primary button on wiki create and edit
Diffstat (limited to 'spec/features/projects/wiki/markdown_preview_spec.rb')
-rw-r--r-- | spec/features/projects/wiki/markdown_preview_spec.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/features/projects/wiki/markdown_preview_spec.rb b/spec/features/projects/wiki/markdown_preview_spec.rb index 3b469fee867..49244c53a91 100644 --- a/spec/features/projects/wiki/markdown_preview_spec.rb +++ b/spec/features/projects/wiki/markdown_preview_spec.rb @@ -3,6 +3,7 @@ require 'spec_helper' describe 'Projects > Wiki > User previews markdown changes', :js do let(:user) { create(:user) } let(:project) { create(:project, :wiki_repo, namespace: user.namespace) } + let(:wiki_page) { create(:wiki_page, wiki: project.wiki, attrs: { title: 'home', content: '[some link](other-page)' }) } let(:wiki_content) do <<-HEREDOC [regular link](regular) @@ -18,9 +19,7 @@ describe 'Projects > Wiki > User previews markdown changes', :js do sign_in(user) - visit project_path(project) - find('.shortcuts-wiki').click - click_link "Create your first page" + visit project_wiki_path(project, wiki_page) end context "while creating a new wiki page" do |