Skip to content

Commit 53bdd05

Browse files
committed
Adapt tests to new inplaceEditFields
1 parent 9866ece commit 53bdd05

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/overviews/spec/components/overviews/project_custom_fields/section_component_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ def render_component(...)
5353
end
5454

5555
it "renders two custom fields" do
56-
expect(rendered_component).to have_css ".op-project-custom-field-container", count: 2
56+
expect(rendered_component).to have_css ".op-inplace-edit--display-field", count: 2
5757
end
5858
end

spec/components/open_project/common/inplace_edit_fields/display_fields/rich_text_area_component_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
)
6161

6262
expect(rendered_content).to have_css("[data-controller='attribute']", text: "Hello")
63-
expect(rendered_content).to have_css("ellipsis-expander")
63+
expect(rendered_content).to have_css(".ellipsis-expander")
6464
end
6565

6666
it "adds no inplace-edit stimulus data when not writable" do

0 commit comments

Comments
 (0)