mirror of
https://github.com/discourse/discourse.git
synced 2024-12-16 05:33:54 +08:00
587264f9d2
namely `js: true`, requiring `rails_helper`, and default `freeze_time` args
23 lines
532 B
Ruby
23 lines
532 B
Ruby
# frozen_string_literal: true
|
|
|
|
describe "DiscourseAutomation | New automation", type: :system do
|
|
fab!(:admin)
|
|
|
|
before do
|
|
SiteSetting.discourse_automation_enabled = true
|
|
sign_in(admin)
|
|
end
|
|
|
|
let(:new_automation_page) { PageObjects::Pages::NewAutomation.new }
|
|
|
|
context "when a script is clicked" do
|
|
it "navigates to automation edit route" do
|
|
new_automation_page.visit
|
|
|
|
find(".admin-section-landing-item__content", match: :first).click
|
|
|
|
expect(page).to have_css(".scriptables")
|
|
end
|
|
end
|
|
end
|