From 0b6a81fe950ba0244d0ac4a548cf12d12943ee6c Mon Sep 17 00:00:00 2001 From: Mauricio Fierro Date: Wed, 27 Mar 2024 06:40:14 -0500 Subject: [PATCH] Update Lesson system tests --- test/system/lessons_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/system/lessons_test.rb b/test/system/lessons_test.rb index 6da9aed..423f3ac 100644 --- a/test/system/lessons_test.rb +++ b/test/system/lessons_test.rb @@ -27,7 +27,7 @@ class LessonsTest < ApplicationSystemTestCase test "should update Lesson" do visit lesson_url(@lesson) - click_on "Edit this lesson", match: :first + find(".fa-edit", match: :first).click select "Guitar", from: "Instrument" fill_in "Name", with: "New Light" @@ -35,7 +35,7 @@ class LessonsTest < ApplicationSystemTestCase click_on "Update Lesson" # assert_text "Lesson was successfully updated" - click_on "Back to lessons" + find(".fa-arrow-left", match: :first).click assert_selector ".title", text: "Lessons" assert_text "New Light"