diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-12-22 15:22:54 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-12-22 15:22:54 +0100 |
commit | 481f461380d4919077c543c51f58e37337167706 (patch) | |
tree | 805c6610c741cfa1fcbc2c00e8f45f44ef99cfad /qa/qa/page/validator.rb | |
parent | b51ba96e4dddd847e42f0e41c3e1df2ff58d42e4 (diff) | |
download | gitlab-ce-481f461380d4919077c543c51f58e37337167706.tar.gz |
Add implementation for matching view elements in QA
Diffstat (limited to 'qa/qa/page/validator.rb')
-rw-r--r-- | qa/qa/page/validator.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/qa/qa/page/validator.rb b/qa/qa/page/validator.rb new file mode 100644 index 00000000000..bd9511595c5 --- /dev/null +++ b/qa/qa/page/validator.rb @@ -0,0 +1,18 @@ +module QA + module Page + class Validator + def initialize(page) + @page = page + @views = page.views + end + + def errors + @errors ||= @views.map do |view| + end + end + + def message + end + end + end +end |