mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
UX: simplify and shorten new script flow for automations (#29178)
This commit is contained in:
@ -10,11 +10,13 @@ describe "DiscourseAutomation | New automation", type: :system, js: true do
|
||||
|
||||
let(:new_automation_page) { PageObjects::Pages::NewAutomation.new }
|
||||
|
||||
context "when the script is not selected" do
|
||||
it "shows an error" do
|
||||
new_automation_page.visit.fill_name("aaaaa").create
|
||||
context "when a script is clicked" do
|
||||
it "navigates to automation edit route" do
|
||||
new_automation_page.visit
|
||||
|
||||
expect(new_automation_page).to have_error(I18n.t("errors.messages.blank"))
|
||||
find(".admin-section-landing-item__content", match: :first).click
|
||||
|
||||
expect(page).to have_css(".scriptables")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user