Skip to content

A platform for community discussion. Free, open, simple.

DEV: Fix flaky automation system test (#31867)

Alan Guo Xiang Tanf09c8f61c81c
diff --git a/plugins/automation/spec/system/page_objects/discourse_automation/automation.rb b/plugins/automation/spec/system/page_objects/discourse_automation/automation.rb
index e6d6cc531d0..76574792551 100644
--- a/plugins/automation/spec/system/page_objects/discourse_automation/automation.rb
+++ b/plugins/automation/spec/system/page_objects/discourse_automation/automation.rb
@@ -9,7 +9,7 @@ module PageObjects
end
def set_name(name)
- form.find('input[name="automation-name"]').set("aaaaa")
+ form.find('input[name="automation-name"]').set(name)
self
end
@@ -29,7 +29,7 @@ module PageObjects
end
def update
- form.find(".update-automation").click
+ form.find(".update-automation:not([disabled])").click
self
end