diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-01-10 10:49:11 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-01-10 10:49:11 +0100 |
commit | 9910968f0c3a630b9ac04b9691b4fba51619e2d3 (patch) | |
tree | a4a04819e26579161756e93d724cc3a73aff16e7 /qa/spec | |
parent | fc9ecdbb4f98e91d01ad73edcd3d659dfed7b9bf (diff) | |
download | gitlab-ce-9910968f0c3a630b9ac04b9691b4fba51619e2d3.tar.gz |
Fix QA selector class used to click on QA elements
Diffstat (limited to 'qa/spec')
-rw-r--r-- | qa/spec/page/element_spec.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/qa/spec/page/element_spec.rb b/qa/spec/page/element_spec.rb index a48f1f54a32..8598c57ad34 100644 --- a/qa/spec/page/element_spec.rb +++ b/qa/spec/page/element_spec.rb @@ -1,11 +1,18 @@ describe QA::Page::Element do describe '#selector' do - it 'transform element name into QA-specific selector' do + it 'transforms element name into QA-specific selector' do expect(described_class.new(:sign_in_button).selector) .to eq 'qa-sign-in-button' end end + describe '#selector_css' do + it 'transforms element name into QA-specific clickable css selector' do + expect(described_class.new(:sign_in_button).selector_css) + .to eq '.qa-sign-in-button' + end + end + context 'when pattern is an expression' do subject { described_class.new(:something, /button 'Sign in'/) } |