DEV: Remove skipped form template system spec (#21832)

Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
This commit is contained in:
Keegan George 2023-05-30 11:37:32 -07:00 committed by GitHub
parent 3569a48b2d
commit 856c4ed295
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 9 deletions

View File

@ -3,23 +3,18 @@
describe "Admin Customize Form Templates", type: :system, js: true do
let(:form_template_page) { PageObjects::Pages::FormTemplate.new }
let(:ace_editor) { PageObjects::Components::AceEditor.new }
fab!(:admin) { Fabricate(:admin) }
fab!(:form_template) { Fabricate(:form_template) }
fab!(:category) do
Fabricate(:category, name: "Cool Category", slug: "cool-cat", topic_count: 3234)
end
fab!(:category) { Fabricate(:category) }
before do
skip(<<~TEXT) if ENV["CI"]
The specs here are extremely flaky on CI for some reason.
TEXT
SiteSetting.experimental_form_templates = true
sign_in(admin)
end
describe "when visiting the page to customize form templates" do
before { category.update(form_template_ids: [form_template.id]) }
before { category.update!(form_template_ids: [form_template.id]) }
it "should show the existing form templates in a table" do
visit("/admin/customize/form-templates")

View File

@ -31,7 +31,7 @@ module PageObjects
# Form Template new/edit form related
def type_in_template_name(input)
find(".form-templates__form-name-input").send_keys(input)
find(".form-templates__form-name-input").fill_in(with: input)
self
end