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:
authorMike Greiling <mike@pixelcog.com>2017-10-19 17:59:49 +0300
committerMike Greiling <mike@pixelcog.com>2017-10-19 17:59:49 +0300
commitb673fcc14fceb7553a3e2ddf375ad45b93106ea9 (patch)
treea0819294851fcc5cc4b4e386ef88998a9c9dda9c /spec/features/issues
parent5e63566bf1fde65de8894f3fd588846853d139d9 (diff)
clear localstorage between tests
Diffstat (limited to 'spec/features/issues')
-rw-r--r--spec/features/issues/markdown_toolbar_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/features/issues/markdown_toolbar_spec.rb b/spec/features/issues/markdown_toolbar_spec.rb
index 6869c2c869d..c50a676d959 100644
--- a/spec/features/issues/markdown_toolbar_spec.rb
+++ b/spec/features/issues/markdown_toolbar_spec.rb
@@ -11,6 +11,10 @@ feature 'Issue markdown toolbar', :js do
visit project_issue_path(project, issue)
end
+ after do
+ execute_script("localStorage.clear();");
+ end
+
it "doesn't include first new line when adding bold" do
find('#note-body').native.send_keys('test')
find('#note-body').native.send_key(:enter)