Skip to content

Commit

Permalink
require 'helpers/system_test_helper'
Browse files Browse the repository at this point in the history
  • Loading branch information
amtuannguyen committed Jul 18, 2024
1 parent c4ddb95 commit c93eac1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions test/system/students_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

require 'application_system_test_case'
require_relative '../helpers/system_test_helper'
require 'helpers/system_test_helper'

class StudentsTest < ApplicationSystemTestCase
include SystemTestHelper # Include the SystemTestHelper module here
Expand All @@ -26,11 +26,8 @@ class StudentsTest < ApplicationSystemTestCase
visit root_url
fill_in('Non-YorkU Email Address', with: Faker::Internet.email)
click_button('Continue')
puts "\nGoing to Update Details\n"
click_link('Continue') #update
puts "Going to Upload\n"
click_link('Continue') #upload
puts "Going to Review\n"
click_link('Continue') #review
assert_selector '.alert-warning', text: 'Error: You have to upload a primary file to continue'
# page.accept_alert
Expand Down
1 change: 1 addition & 0 deletions test/system/theses_test.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# frozen_string_literal: true

require 'application_system_test_case'
require 'helpers/system_test_helper'

class ThesesTest < ApplicationSystemTestCase
setup do
Expand Down

0 comments on commit c93eac1

Please sign in to comment.