Welcome to mirror list, hosted at ThFree Co, Russian Federation.

terms.rb « main « page « qa « qa - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a4928f243976191ba75c49c1dc8fa8e8375f9431 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

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

      view 'app/views/users/terms/index.html.haml' 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