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

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

module QA
  module Page
    module Project
      class Pages < Page::Base
        view 'app/views/projects/pages/_access.html.haml' do
          element 'access-page-container'
        end

        def go_to_access_page
          within_element('access-page-container') do
            find('a').click
            page.driver.browser.switch_to.window(page.driver.browser.window_handles.last)
          end
        end
      end
    end
  end
end

QA::Page::Project::Pages.prepend_mod_with("Page::Project::Pages", namespace: QA)