Skip to content

Commit

Permalink
Update lesson tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciofierrom committed Jun 19, 2024
1 parent 415b8ef commit 5edf0be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/system/lessons_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ class LessonsTest < ApplicationSystemTestCase

test "should create lesson" do
visit lessons_url
click_on "New lesson"
click_on "New Lesson"

select "Guitar", from: "Instrument"
fill_in "Name", with: "Wild Blue"
fill_in "Video URL", with: "https://youtube.com/something2"
fill_in "Video link", with: "https://youtube.com/something2"
page.execute_script("document.querySelector('#lesson_duration_in_seconds').value = 123");

click_on "Create Lesson"
Expand All @@ -31,7 +31,7 @@ class LessonsTest < ApplicationSystemTestCase

select "Guitar", from: "Instrument"
fill_in "Name", with: "New Light"
fill_in "Video URL", with: "https://youtube.com/other-thing"
fill_in "Video link", with: "https://youtube.com/other-thing"
click_on "Update Lesson"

# assert_text "Lesson was successfully updated"
Expand Down

0 comments on commit 5edf0be

Please sign in to comment.