mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-08-07 13:43:57 +00:00
24 lines
496 B
Ruby
24 lines
496 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module PageObjects
|
||
|
module Modals
|
||
|
class DiffModal < PageObjects::Modals::Base
|
||
|
def visible?
|
||
|
page.has_css?(".composer-ai-helper-modal", wait: 5)
|
||
|
end
|
||
|
|
||
|
def confirm_changes
|
||
|
find(".modal-footer button.confirm", wait: 5).click
|
||
|
end
|
||
|
|
||
|
def old_value
|
||
|
find(".composer-ai-helper-modal__old-value").text
|
||
|
end
|
||
|
|
||
|
def new_value
|
||
|
find(".composer-ai-helper-modal__new-value").text
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|