2021-04-29 21:17:54 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
RSpec.describe 'groups/settings/_remove.html.haml' do
|
|
|
|
describe 'render' do
|
|
|
|
it 'enables the Remove group button for a group' do
|
|
|
|
group = build(:group)
|
|
|
|
|
|
|
|
render 'groups/settings/remove', group: group
|
|
|
|
|
2021-12-11 22:18:48 +05:30
|
|
|
expect(rendered).to have_selector '[data-button-testid="remove-group-button"]'
|
|
|
|
expect(rendered).not_to have_selector '[data-button-testid="remove-group-button"].disabled'
|
2021-04-29 21:17:54 +05:30
|
|
|
expect(rendered).not_to have_selector '[data-testid="group-has-linked-subscription-alert"]'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|