2024-09-05 17:18:38 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2024-10-24 20:15:32 +08:00
|
|
|
describe "DiscourseAutomation | New automation", type: :system do
|
2024-09-05 17:18:38 +08:00
|
|
|
fab!(:admin)
|
|
|
|
|
|
|
|
before do
|
|
|
|
SiteSetting.discourse_automation_enabled = true
|
|
|
|
sign_in(admin)
|
|
|
|
end
|
|
|
|
|
|
|
|
let(:new_automation_page) { PageObjects::Pages::NewAutomation.new }
|
|
|
|
|
2024-10-24 02:04:17 +08:00
|
|
|
context "when a script is clicked" do
|
|
|
|
it "navigates to automation edit route" do
|
|
|
|
new_automation_page.visit
|
2024-09-05 17:18:38 +08:00
|
|
|
|
2024-10-24 02:04:17 +08:00
|
|
|
find(".admin-section-landing-item__content", match: :first).click
|
|
|
|
|
|
|
|
expect(page).to have_css(".scriptables")
|
2024-09-05 17:18:38 +08:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|