mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 19:45:23 +08:00
19 lines
285 B
Ruby
19 lines
285 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module PageObjects
|
||
|
module Modals
|
||
|
class Base
|
||
|
include Capybara::DSL
|
||
|
include RSpec::Matchers
|
||
|
|
||
|
def close
|
||
|
find(".modal-close").click
|
||
|
end
|
||
|
|
||
|
def cancel
|
||
|
find(".d-modal-cancel").click
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|