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
path: root/qa/spec
diff options
context:
space:
mode:
authorddavison <ddavison@gitlab.com>2019-07-11 02:20:31 +0300
committerddavison <ddavison@gitlab.com>2019-07-11 02:20:31 +0300
commit3281e6db23d8f1ea6757af6eb71e87ed7a93c130 (patch)
tree2ea1d8c45c904dc2b453c8984a8b70ecacfb3e62 /qa/spec
parent015b61b1dc73e2c8d6e6cf04b6b2c7fb896a452f (diff)
Treat element#selector_css string appropriately
Proper escaping should be used for page/base.rb#scroll_to as it is a single quoted JS string
Diffstat (limited to 'qa/spec')
-rw-r--r--qa/spec/page/element_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/spec/page/element_spec.rb b/qa/spec/page/element_spec.rb
index 87c9fbf74a3..20d4a00c020 100644
--- a/qa/spec/page/element_spec.rb
+++ b/qa/spec/page/element_spec.rb
@@ -114,7 +114,7 @@ describe QA::Page::Element do
describe 'data-qa selectors' do
subject { described_class.new(:my_element) }
it 'properly translates to a data-qa-selector' do
- expect(subject.selector_css).to include("[data-qa-selector='my_element']")
+ expect(subject.selector_css).to include(%q([data-qa-selector="my_element"]))
end
end
end