Skip to content

Commit

Permalink
Update Lesson system tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciofierrom committed Mar 27, 2024
1 parent ed62f26 commit 0b6a81f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/system/lessons_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ 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"
fill_in "Video URL", with: "https://youtube.com/other-thing"
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"
Expand Down

0 comments on commit 0b6a81f

Please sign in to comment.