@skip_if_github_validation
@scope_visualization
@sle_minion
@new_issue
Feature: 0074 - Correct timezone display
Description: * Related GitHub Card: https://github.com/SUSE/spacewalk/issues/30809
File name: min_timezone.feature
Relative path: secondary/min_timezone.feature
@skip_if_github_validation
@scope_visualization
@sle_minion
@new_issue
Scenario: Create a new user in a timezone different than server's timezone
When
I follow the left menu "Users > User List > Active"
00:00:00.213
And
I follow "Create User"
00:00:00.288
And
I enter "MalaysianUser" as "login"
00:00:00.064
And
I enter "MalaysianUser" as "desiredpassword"
00:00:00.062
And
I enter "MalaysianUser" as "desiredpasswordConfirm"
00:00:00.071
And
I select "Mr." from "prefix"
00:00:00.049
And
I enter "Test" as "firstNames"
00:00:00.055
And
I enter "User" as "lastName"
00:00:00.054
And
I enter "galaxy-noise@localhost" as "email"
00:00:00.075
And
I select "(GMT+0800) Malaysia" from "timezone"
00:00:00.065
And
I click on "Create Login"
00:00:06.194
@skip_if_github_validation
@scope_visualization
@sle_minion
@new_issue
@new_issue
Scenario: Add roles for the Malaysian user
When
I follow the left menu "Users > User List > Active"
00:00:00.095
And
I follow "MalaysianUser"
00:00:00.262
And
the "role_satellite_admin" checkbox should be disabled
00:00:10.005
And
I check "role_org_admin"
00:00:00.083
And
I check "role_system_group_admin"
00:00:00.075
And
I check "role_channel_admin"
00:00:00.075
And
I check "role_activation_key_admin"
00:00:00.073
And
I check "role_config_admin"
00:00:00.074
And
I click on "Update"
00:00:00.597
@skip_if_github_validation
@scope_visualization
@sle_minion
@new_issue
Scenario: Schedule a remote script to run now and see the correct timezone details in history
Given
I am on the Systems overview page of this "sle_minion"
00:00:02.491
When
I follow "Remote Command" in the content area
00:00:00.071
And
I enter as remote command this script in
00:00:00.050
#!/bin/bash ls
And
I click on "Schedule"
00:00:00.547
And
I wait until I see "Remote Command has been scheduled successfully" text
00:00:00.182
And
I follow "Events" in the content area
00:00:00.069
And
I follow "Pending" in the content area
00:00:00.067
And
I wait at most 180 seconds until I do not see "Remote Command on" text, refreshing the page
00:00:16.723
And
I follow "History" in the content area
00:00:00.070
And
I follow first "scheduled by MalaysianUser"
00:00:00.516
Then
I should see a "MYT" text
00:00:00.149
@skip_if_github_validation
@scope_visualization
@sle_minion
@new_issue
Scenario: Login as the new Malaysian user if the previous scenario failed
Given
I am authorized as "MalaysianUser" with password "MalaysianUser"
00:00:00.463
Then
I should see a "MalaysianUser" link
00:00:00.008
@skip_if_github_validation
@scope_visualization
@sle_minion
@new_issue
Scenario: Schedule a remote script in the future and see the correct timezone as a pop up
Given
I am on the Systems overview page of this "sle_minion"
00:00:02.420
When
I follow "Remote Command" in the content area
00:00:00.060
And
I enter as remote command this script in
00:00:00.048
#!/bin/bash ls
And
I enter "00:00" as "date_timepicker_widget_input"
00:00:00.071
And
I click on "Schedule"
00:00:00.939
Then
I should see a "00:00:00 MYT" text
00:00:00.180
@skip_if_github_validation
@scope_visualization
@sle_minion
@new_issue
Scenario: Login as the new Malaysian user if the previous scenario failed
Given
I am authorized as "MalaysianUser" with password "MalaysianUser"
00:00:00.936
Then
I should see a "MalaysianUser" link
00:00:00.008
@skip_if_github_validation
@scope_visualization
@sle_minion
@new_issue
Scenario: Cleanup: Log in as admin user again and remove scheduled actions
Given
I am authorized for the "Admin" section
00:00:03.189
- Try to cancel "Remote Command on uyuni-master-suse-minion.sumaci.aws. scheduled by MalaysianUser" action - Removed "Remote Command on uyuni-master-suse-minion.sumaci.aws. scheduled by MalaysianUser" action
@skip_if_github_validation
@scope_visualization
@sle_minion
@new_issue
Scenario: Cleanup: Remove role
When
I follow the left menu "Users > User List > Active"
00:00:00.215
And
I follow "MalaysianUser"
00:00:00.436
And
I uncheck "role_org_admin"
00:00:10.099
And
I click on "Update"
00:00:00.652
Then
I should see "role_org_admin" as unchecked
00:00:00.016
And
I should see "role_system_group_admin" as checked
00:00:00.018
And
I should see "role_channel_admin" as checked
00:00:00.018
And
I should see "role_activation_key_admin" as checked
00:00:00.018
And
I should see "role_config_admin" as checked
00:00:00.020