We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f84add3 commit 1d3dd55Copy full SHA for 1d3dd55
spec/system/tags/update_spec.rb
@@ -8,6 +8,7 @@
8
before do
9
login_as(user)
10
create(:tag_cognate, tag: tag, cognate: cognate)
11
+ create(:provider)
12
end
13
14
context "as an Admin" do
@@ -31,11 +32,16 @@
31
32
33
34
context "when the cognate entered doesn't already exist" do
- it "show an error" do
35
+ it "shows an error" do
36
wait_and_visit(edit_tag_path(tag.id))
- enter_and_choose_tag("URTI")
37
38
- expect(page).to have_text("Please select a tag from the list")
+ within "div[data-controller='select-tags']" do
39
+ tag_input = find(".ts-control input")
40
+ tag_input.click
41
+ tag_input.set("URTI")
42
+
43
+ expect(page).to have_css(".no-results", text: "No results found", visible: true)
44
+ end
45
46
47
0 commit comments