Skip to content

Commit

Permalink
Revert certain tests now that samples_count in the groups fixture has…
Browse files Browse the repository at this point in the history
… been added
  • Loading branch information
malchua committed Oct 18, 2024
1 parent b9dd594 commit 968a91e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/controllers/groups_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class GroupsControllerTest < ActionDispatch::IntegrationTest
test 'should not delete a group' do
sign_in users(:joan_doe)

group = groups(:group_twelve)
group = groups(:group_one)
assert_no_difference('Group.count') do
delete group_path(group)
end
Expand Down Expand Up @@ -177,7 +177,7 @@ class GroupsControllerTest < ActionDispatch::IntegrationTest

test 'should transfer group' do
sign_in users(:john_doe)
group = groups(:group_twelve)
group = groups(:group_one)
new_namespace = groups(:group_two)

put group_transfer_path(group),
Expand Down
4 changes: 2 additions & 2 deletions test/system/groups_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -282,15 +282,15 @@ def setup
end

test 'can transfer a group' do
group1 = groups(:group_two)
group1 = groups(:group_one)
group3 = groups(:group_three)
visit group_url(group1)

click_on I18n.t('groups.sidebar.settings')
click_link I18n.t('groups.sidebar.general')

assert_selector 'h2', text: I18n.t('groups.edit.advanced.transfer.title')
within %(form[action="/group-2/transfer"]) do
within %(form[action="/group-1/transfer"]) do
assert_selector 'input[type=submit]:disabled'
find('input#select2-input').click
find("button[data-viral--select2-primary-param='#{group3.full_path}']").click
Expand Down

0 comments on commit 968a91e

Please sign in to comment.