summaryrefslogtreecommitdiff
path: root/qa/qa/page/main/terms.rb
blob: 024510c33cf097a40786fb8e81f34d45699a21fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# frozen_string_literal: true

module QA
  module Page
    module Main
      class Terms < Page::Base
        view 'app/views/layouts/terms.html.haml' do
          element :user_avatar, required: true
        end

        view 'app/assets/javascripts/terms/components/app.vue' do
          element :terms_content, required: true

          element :accept_terms_button
        end

        def accept_terms
          click_element :accept_terms_button, Page::Main::Menu
        end
      end
    end
  end
end