A platform for community discussion. Free, open, simple.
DEV: fix form template flaky (#32360)
Renato Atilio4c26679b2d9d
diff --git a/spec/requests/form_templates_controller_spec.rb b/spec/requests/form_templates_controller_spec.rbindex 957d7d23f56..55e7601bf0f 100644--- a/spec/requests/form_templates_controller_spec.rb+++ b/spec/requests/form_templates_controller_spec.rb@@ -87,7 +87,7 @@ RSpec.describe FormTemplatesController dotag_group: "tag_group1" # Replace with actual value if neededvalidations:required: false-+- type: tag-chooserid: 2attributes:@@ -116,13 +116,13 @@ RSpec.describe FormTemplatesController doexpect(parsed_template[1]["attributes"]["tag_group"]).to eq(tag_group2.name)expect(parsed_template[0]["attributes"]["tag_choices"]).to eq(- { "tag1" => "Tag 1 custom Translation" },+ { tag1.name => tag1.description },)expect(parsed_template[1]["attributes"]["tag_choices"]).to eq(- { "tag2" => "Tag 2 custom Translation" },+ { tag2.name => tag2.description },)- expect(parsed_template[0]["choices"]).to eq(%w[tag1 tag3])- expect(parsed_template[1]["choices"]).to eq(%w[tag2 tag4])+ expect(parsed_template[0]["choices"]).to eq([tag1.name, tag3.name])+ expect(parsed_template[1]["choices"]).to eq([tag2.name, tag4.name])endendend