Class: CoPilot::FeedbackPage

Inherits:
Object
  • Object
show all
Defined in:
lib/copilot/requests/internal/feedback_page.rb

Instance Method Summary collapse

Constructor Details

#initialize(browser, build_id) ⇒ FeedbackPage

Returns a new instance of FeedbackPage.



4
5
6
7
# File 'lib/copilot/requests/internal/feedback_page.rb', line 4

def initialize(browser, build_id)
  @browser = browser
  @build_id = build_id
end

Instance Method Details

#each_summary_detail_pairObject



18
19
20
# File 'lib/copilot/requests/internal/feedback_page.rb', line 18

def each_summary_detail_pair
  summary_rows.to_a.each_index { |i| yield [summary_rows[i], detail_rows[i]] }
end

#expand_detailsObject



13
14
15
16
# File 'lib/copilot/requests/internal/feedback_page.rb', line 13

def expand_details
  summary_rows.each { |tr| tr.click }
  sleep 1
end

#gotoObject



9
10
11
# File 'lib/copilot/requests/internal/feedback_page.rb', line 9

def goto
  b.goto "https://www.testflightapp.com/dashboard/builds/feedback/#{@build_id}"
end