@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.218
And
I follow "Clone Channel"
00:00:00.478
And
I select "Fake-Base-Channel-SUSE-like" as the origin channel
00:00:00.070
And
I click on "Clone Channel"
00:00:00.389
Then
I should see a "Create Software Channel" text
00:00:00.194
And
I should see a "Current state of the channel" text
00:00:00.184
When
I click on "Clone Channel"
00:00:00.659
Then
I should see a "Clone of Fake-Base-Channel-SUSE-like" text
00:00:00.186
@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.084
And
I follow "Clone Channel"
00:00:00.377
And
I select "Clone of Fake-Base-Channel-SUSE-like" as the origin channel
00:00:00.051
And
I click on "Clone Channel"
00:00:00.394
Then
I should see a "Create Software Channel" text
00:00:00.190
And
I should see a "Current state of the channel" text
00:00:00.175
When
I click on "Clone Channel"
00:00:00.633
Then
I should see a "Clone of Clone of Fake-Base-Channel-SUSE-like" text
00:00:00.189
When
I follow the left menu "Software > Manage > Channels"
00:00:00.077
And
I follow "Clone of Fake-Base-Channel-SUSE-like"
00:00:00.493
And
I follow "Delete Channel"
00:00:00.399
And
I check "unsubscribeSystems"
00:00:00.084
And
I click on "Delete Channel"
00:00:00.441
Then
I should see a "Clone of Fake-Base-Channel-SUSE-like" text
00:00:00.155
And
I should see a "Unable to delete channel" text
00:00:00.148
@scope_configuration_channels
Scenario: Delete channel without clones neither children
When
I follow the left menu "Software > Manage > Channels"
00:00:00.073
And
I follow "Clone of Clone of Fake-Base-Channel-SUSE-like"
00:00:00.499
And
I follow "Delete Channel"
00:00:00.397
And
I check "unsubscribeSystems"
00:00:00.070
And
I click on "Delete Channel"
00:00:00.607
Then
I should see a "Clone of Clone of Fake-Base-Channel-SUSE-like" text
00:00:00.209
And
I should see a "has been deleted" text
00:00:00.207
@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.078
And
I follow "Clone Channel"
00:00:00.365
And
I select "Fake-RPM-SUSE-Channel" as the origin channel
00:00:00.072
And
I click on "Clone Channel"
00:00:00.425
Then
I should see a "Create Software Channel" text
00:00:00.186
And
I should see a "Current state of the channel" text
00:00:00.178
When
I select "Clone of Fake-Base-Channel-SUSE-like" from "Parent Channel"
00:00:00.065
And
I click on "Clone Channel"
00:00:01.475
Then
I should see a "Clone of Fake-RPM-SUSE-Channel" text
00:00:00.177
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.369
And
I follow "Delete Channel"
00:00:00.397
And
I check "unsubscribeSystems"
00:00:00.071
And
I click on "Delete Channel"
00:00:00.616
Then
I should see a "Clone of Fake-Base-Channel-SUSE-like" text
00:00:00.152
And
I should see a "channel has child channels associated" text
00:00:00.147
And
I should see a "must delete those channels first before deleting the parent." text
00:00:00.144
@scope_configuration_channels
Scenario: Cleanup: remove cloned child channel
When
I follow the left menu "Software > Manage > Channels"
00:00:00.100
And
I follow "Clone of Fake-RPM-SUSE-Channel"
00:00:00.383
And
I follow "Delete Channel"
00:00:00.397
And
I check "unsubscribeSystems"
00:00:00.070
And
I click on "Delete Channel"
00:00:00.756
Then
I should see a "Clone of Fake-RPM-SUSE-Channel" text
00:00:00.159
And
I should see a "has been deleted." text
00:00:00.146
@scope_configuration_channels
Scenario: Cleanup: remove cloned parent channel
When
I follow the left menu "Software > Manage > Channels"
00:00:00.082
And
I follow "Clone of Fake-Base-Channel-SUSE-like"
00:00:00.386
And
I follow "Delete Channel"
00:00:00.321
And
I check "unsubscribeSystems"
00:00:00.070
And
I click on "Delete Channel"
00:00:00.715
Then
I should see a "Clone of Fake-Base-Channel-SUSE-like" text
00:00:00.205
And
I should see a "has been deleted." text
00:00:00.201