Commit graph

8 commits

Author SHA1 Message Date
ddavison
3281e6db23
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
2019-07-10 16:20:31 -07:00
ddavison
390e0d8906
Introduce data-qa-selector to supplant .qa-class
In order to break away from using CSS classes as
our primary method of element identification, we
need to provide the ability to search for data
attributes.

Make Test::Sanity::Selectors now work

Utilize regex to match on literal strings of the element name

Suggest the data-qa-selector pattern vs the qa-

Add data-qa-selector to login page to start

We need a page that is heavily used in order to be
confident that this functionality works. Let's start
with the Login page

Use appropriate HAML data tag practices
2019-07-10 16:09:43 -07:00
ddavison
7d5b68d837
Implement dynamic validation on QA Pages
Elements now have the ability to be required on pages or not
Currently using the default wait mechanism
Altered the ElementWithPattern Cop to fit new splat for init
2019-05-20 12:35:51 -07:00
Thong Kuah
0be52bf32f Add frozen_string_literal to qa/
This will be default in Ruby 3, so will be good to apply in QA ahead of
time to be consistent.
2019-04-13 00:45:38 +12:00
Grzegorz Bizon
9910968f0c Fix QA selector class used to click on QA elements 2018-01-10 10:49:11 +01:00
Grzegorz Bizon
7725a7071d Reduce duplication in QA page elements-related code 2018-01-09 14:28:10 +01:00
Grzegorz Bizon
4b945e2845 Make it possible to define a QA-specific page element 2018-01-09 10:02:55 +01:00
Grzegorz Bizon
d69e4541a4 Use composite pattern to return page view errors 2017-12-22 15:40:46 +01:00