diff --git a/test/system/creating_an_artist_test.rb b/test/system/creating_an_artist_test.rb index 2263a05..bf57a15 100644 --- a/test/system/creating_an_artist_test.rb +++ b/test/system/creating_an_artist_test.rb @@ -18,8 +18,9 @@ class CreatingAnArtistTest < ApplicationSystemTestCase attach_file 'Profile picture', Rails.root.join('test/fixtures/files/cover.png') click_on 'Save' + assert_text 'Artist was successfully created' - visit artist_path(Artist.last) + visit artist_path(Artist.find_by(name: 'The Beatles')) assert_text 'The Beatles' assert_text 'Liverpool' diff --git a/test/test_helper.rb b/test/test_helper.rb index ac3ba22..a423606 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -7,6 +7,8 @@ module ActiveSupport class TestCase + parallelize(workers: 1) + include FactoryBot::Syntax::Methods WebMock.disable_net_connect!(allow_localhost: true)