Skip to content

Commit

Permalink
readd test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisHuynh333 committed Dec 20, 2024
1 parent 7de13c0 commit 973859e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions test/system/projects/samples_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1412,6 +1412,27 @@ class SamplesTest < ApplicationSystemTestCase
### VERIFY END ###
end

test 'clone dialog sample listing' do
### SETUP START ###
samples = @project.samples.pluck(:puid, :name)
visit namespace_project_samples_url(@namespace, @project)
### SETUP END ###

### ACTIONS START ###
click_button I18n.t(:'projects.samples.index.select_all_button')
click_link I18n.t('projects.samples.index.clone_button')
### ACTIONS END ###

### VERIFY START ###
within('#list_selections') do
samples.each do |sample|
assert_text sample[0]
assert_text sample[1]
end
end
### VERIFY END ###
end

test 'should clone samples' do
### SETUP START ###
visit namespace_project_samples_url(@namespace, @project2)
Expand Down

0 comments on commit 973859e

Please sign in to comment.