summaryrefslogtreecommitdiff
path: root/spec/features/markdown
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-02-24 00:18:13 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-02-24 00:18:13 +0000
commit30340141d591cc79dc47c0b07e38ea6a9fb0612b (patch)
tree45dfb2904fb9ca58e538ba46c96f5efce9c6251e /spec/features/markdown
parent67770e6591eccb40cd9d6436370be5126c77544a (diff)
downloadgitlab-ce-30340141d591cc79dc47c0b07e38ea6a9fb0612b.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/markdown')
-rw-r--r--spec/features/markdown/keyboard_shortcuts_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/features/markdown/keyboard_shortcuts_spec.rb b/spec/features/markdown/keyboard_shortcuts_spec.rb
index 81b1928658c..82288af1f9f 100644
--- a/spec/features/markdown/keyboard_shortcuts_spec.rb
+++ b/spec/features/markdown/keyboard_shortcuts_spec.rb
@@ -37,6 +37,14 @@ RSpec.describe 'Markdown keyboard shortcuts', :js do
expect(markdown_field.value).to eq('_italic_')
end
+ it 'strikes text when <modifier>+<shift>+x is pressed' do
+ type_and_select('strikethrough')
+
+ markdown_field.send_keys([modifier_key, :shift, 'x'])
+
+ expect(markdown_field.value).to eq('~~strikethrough~~')
+ end
+
it 'links text when <modifier>+K is pressed' do
type_and_select('link')