diff options
Diffstat (limited to 'qa/spec')
-rw-r--r-- | qa/spec/page/element_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/qa/spec/page/element_spec.rb b/qa/spec/page/element_spec.rb index c665267b90e..a48f1f54a32 100644 --- a/qa/spec/page/element_spec.rb +++ b/qa/spec/page/element_spec.rb @@ -1,4 +1,11 @@ describe QA::Page::Element do + describe '#selector' do + it 'transform element name into QA-specific selector' do + expect(described_class.new(:sign_in_button).selector) + .to eq 'qa-sign-in-button' + end + end + context 'when pattern is an expression' do subject { described_class.new(:something, /button 'Sign in'/) } |