Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed Sep 4, 2024
1 parent f5e9337 commit 2b43b55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/dashboard/test/system/project_manager_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -727,18 +727,18 @@ def add_auto_environment_variable(project_id, script_id, save: true)
test 'cant show invalid script' do
Dir.mktmpdir do |dir|
project_id = setup_project(dir)
visit project_launcher_path(project_id, '1')
visit project_launcher_path(project_id, '12345678')
assert_current_path("/projects/#{project_id}")
assert_selector('.alert-danger', text: "Close\nCannot find script 1")
assert_selector('.alert-danger', text: "Close\nCannot find script 12345678")
end
end

test 'cant edit invalid script' do
Dir.mktmpdir do |dir|
project_id = setup_project(dir)
visit edit_project_launcher_path(project_id, '1')
visit edit_project_launcher_path(project_id, '12345678')
assert_current_path("/projects/#{project_id}")
assert_selector('.alert-danger', text: "Close\nCannot find script 1")
assert_selector('.alert-danger', text: "Close\nCannot find script 12345678")
end
end

Expand Down

0 comments on commit 2b43b55

Please sign in to comment.