@scope_configuration_channels
Feature: 0033 - Delete channels with child or clone is not allowed
Description: Using the UI, we cannot delete a channel if it has a child
or a clone created from it
File name: srv_delete_channel_from_ui.feature
Relative path: secondary/srv_delete_channel_from_ui.feature
@scope_configuration_channels
Scenario: Clone the first channel before deletion from UI test
When
I follow the left menu "Software > Manage > Channels"
00:00:00.242
And
I follow "Clone Channel"
00:00:00.493
And
I select "Fake-Base-Channel-SUSE-like" as the origin channel
00:00:00.075
And
I click on "Clone Channel"
00:00:00.424
Then
I should see a "Create Software Channel" text
00:00:00.080
And
I should see a "Current state of the channel" text
00:00:00.079
When
I click on "Clone Channel"
00:00:00.688
Then
I should see a "Clone of Fake-Base-Channel-SUSE-like" text
00:00:00.081
@scope_configuration_channels
Scenario: Clone the second channel using first channel as base
When
I follow the left menu "Software > Manage > Channels"
00:00:00.088
And
I follow "Clone Channel"
00:00:00.551
And
I select "Clone of Fake-Base-Channel-SUSE-like" as the origin channel
00:00:00.053
And
I click on "Clone Channel"
00:00:00.449
Then
I should see a "Create Software Channel" text
00:00:00.086
And
I should see a "Current state of the channel" text
00:00:00.074
When
I click on "Clone Channel"
00:00:01.369
Then
I should see a "Clone of Clone of Fake-Base-Channel-SUSE-like" text
00:00:00.080
When
I follow the left menu "Software > Manage > Channels"
00:00:00.083
And
I follow "Clone of Fake-Base-Channel-SUSE-like"
00:00:00.483
And
I follow "Delete Channel"
00:00:00.356
And
I check "unsubscribeSystems"
00:00:00.089
And
I click on "Delete Channel"
00:00:00.451
Then
I should see a "Clone of Fake-Base-Channel-SUSE-like" text
00:00:00.063
And
I should see a "Unable to delete channel" text
00:00:00.062
@scope_configuration_channels
Scenario: Delete channel without clones neither children
When
I follow the left menu "Software > Manage > Channels"
00:00:00.083
And
I follow "Clone of Clone of Fake-Base-Channel-SUSE-like"
00:00:00.402
And
I follow "Delete Channel"
00:00:00.327
And
I check "unsubscribeSystems"
00:00:00.076
And
I click on "Delete Channel"
00:00:00.599
Then
I should see a "Clone of Clone of Fake-Base-Channel-SUSE-like" text
00:00:00.092
And
I should see a "has been deleted" text
00:00:00.087
@scope_configuration_channels
Scenario: Clone a child channel to the clone of x86_64 test channel
When
I follow the left menu "Software > Manage > Channels"
00:00:00.086
And
I follow "Clone Channel"
00:00:00.387
And
I select "Fake-RPM-SUSE-Channel" as the origin channel
00:00:00.076
And
I click on "Clone Channel"
00:00:00.388
Then
I should see a "Create Software Channel" text
00:00:00.081
And
I should see a "Current state of the channel" text
00:00:00.076
When
I select "Clone of Fake-Base-Channel-SUSE-like" from "Parent Channel"
00:00:00.072
And
I click on "Clone Channel"
00:00:01.111
Then
I should see a "Clone of Fake-RPM-SUSE-Channel" text
00:00:00.074
When
I follow the left menu "Software > Manage > Channels"
00:00:00.080
And
I follow "Clone of Fake-Base-Channel-SUSE-like"
00:00:00.387
And
I follow "Delete Channel"
00:00:00.341
And
I check "unsubscribeSystems"
00:00:00.074
And
I click on "Delete Channel"
00:00:00.421
Then
I should see a "Clone of Fake-Base-Channel-SUSE-like" text
00:00:00.063
And
I should see a "channel has child channels associated" text
00:00:00.069
And
I should see a "must delete those channels first before deleting the parent." text
00:00:00.059
@scope_configuration_channels
Scenario: Cleanup: remove cloned child channel
When
I follow the left menu "Software > Manage > Channels"
00:00:00.080
And
I follow "Clone of Fake-RPM-SUSE-Channel"
00:00:00.492
And
I follow "Delete Channel"
00:00:00.475
And
I check "unsubscribeSystems"
00:00:00.074
And
I click on "Delete Channel"
00:00:01.240
Then
I should see a "Clone of Fake-RPM-SUSE-Channel" text
00:00:00.066
And
I should see a "has been deleted." text
00:00:00.061
@scope_configuration_channels
Scenario: Cleanup: remove cloned parent channel
When
I follow the left menu "Software > Manage > Channels"
00:00:00.086
And
I follow "Clone of Fake-Base-Channel-SUSE-like"
00:00:00.549
And
I follow "Delete Channel"
00:00:00.485
And
I check "unsubscribeSystems"
00:00:00.076
And
I click on "Delete Channel"
00:00:00.711
Then
I should see a "Clone of Fake-Base-Channel-SUSE-like" text
00:00:00.086
And
I should see a "has been deleted." text
00:00:00.089