UX: simplify and shorten new script flow for automations (#29178)

This commit is contained in:
Kris
2024-10-23 14:04:17 -04:00
committed by GitHub
parent b7f76d99e8
commit d471c01ff6
17 changed files with 210 additions and 168 deletions

View File

@ -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