@automation_test@all_module_except_evaluation@create_edit_group
Feature: [PERSON] - GROUP
@automation_test
@all_module_except_evaluation
@create_edit_group
@84484
@person_natural
Scenario: [Group] - Create new Group with all mandatory fields and press Save
Given
I visit the homepage
And
The "my-start-page" page or section should be "displayed"
Given
I open to "person" dashboard
And
The "dashboard-person" page or section should be "displayed"
And
The title of this screen with value is "Dashboard person"
When
I click to "Add person" button
Then
Person type dialog should be displayed
When
I click "group" Person button
And
The "group-edit-container" page or section should be "displayed"
Then
The title of this screen with value is "Create group"
When
I input to "groupName" textbox with random data "AT1 Group"
And
I input to "groupType" textbox with data "Family"
And
I input to "additional1" textbox with data "Test Additional1"
And
I input to "additional2" textbox with data "Additional2"
And
I input to "correspondenceLanguage" textbox with data "English"
And
I click to "Save" button
And
I click to dynamic "persons" "AT1 Group" on Last Opened box
Then
The "group-detail" page or section should be "displayed"
When
Wait for box icon loading invisible
And
I click to "Group" box
Then
The title of this screen with value is "Edit AT1 Group"
And
I get actual value at "groupName" field then compare with expected random value "AT1
Group"
And
I get actual value at "groupType" field then compare with expected value "Family"
And
I get actual value at "additional1" field then compare with expected value "Test
Additional1"
And
I get actual value at "additional2" field then compare with expected value
"Additional2"
And
I get actual value at "correspondenceLanguage" field then compare with expected contain
value "English"
Then
The console log should not have error
@automation_test
@all_module_except_evaluation
@create_edit_group
@84488
@person_natural
Scenario: [Group] - Edit group and leave at least 1 mandatory field and save
Given
I visit the homepage
And
The "my-start-page" page or section should be "displayed"
Given
I open to "person" dashboard
And
The "dashboard-person" page or section should be "displayed"
And
The title of this screen with value is "Dashboard person"
And
I click to dynamic "persons" "AT1 Group" on Last Opened box
And
The "group-detail" page or section should be "displayed"
When
Wait for box icon loading invisible
And
I click to "Group" box
Then
The title of this screen with value is "Edit AT1 Group"
When
I input to "groupName" textbox with data ""
And
I click to "Save" button
And
I verify at "groupName" field show tooltip message "Group name is required."
And
I verify at "Save" button show tooltip message
Message |
---|
Group name is required. |
And
I click to "Cancel" button
Then
The console log should not have error
@automation_test
@all_module_except_evaluation
@create_edit_group
@84489
@person_natural
Scenario: [Group] - Edit group and before saving and press Cancel
Given
I visit the homepage
And
The "my-start-page" page or section should be "displayed"
Given
I open to "person" dashboard
And
The "dashboard-person" page or section should be "displayed"
And
The title of this screen with value is "Dashboard person"
And
I click to dynamic "persons" "AT1 Group" on Last Opened box
And
The "group-detail" page or section should be "displayed"
When
Wait for box icon loading invisible
And
I click to "Group" box
Then
The title of this screen with value is "Edit AT1 Group"
When
I input to "groupName" textbox with data "AT1 Group New Name"
And
I input to "groupType" textbox with data "Association"
And
I click to "Cancel" button
And
I open to "person" dashboard
And
The "dashboard-person" page or section should be "displayed"
And
I input to "personInputSearchId" search textbox with random data "AT1 Group New Name"
And
I click to search icon at all dashboard screen
Then
The "search-person-container" page or section should be "displayed"
And
The title of this screen with value is "Search person"
And
The "searchPersonDynamicResult" datatable should be displayed with empty data and
message "No data found."
Then
The console log should not have error
@automation_test
@all_module_except_evaluation
@create_edit_group
@84490
@person_natural
Scenario: [Group] - Upload group image, save
Given
I visit the homepage
And
The "my-start-page" page or section should be "displayed"
Given
I open to "person" dashboard
And
The "dashboard-person" page or section should be "displayed"
And
The title of this screen with value is "Dashboard person"
And
I click to dynamic "persons" "AT1 Group" on Last Opened box
And
The "group-detail" page or section should be "displayed"
When
Wait for box icon loading invisible
And
I click to "Group" box
Then
The title of this screen with value is "Edit AT1 Group"
And
I click avatar icon
And
I upload avatar with name "love.jpeg"
And
I click to "OK" button
And
Wait for Upload avatar form invisible
And
Avatar should be uploaded successfully
And
I click to "Save" button
And
I open to "person" dashboard
And
I input to "personInputSearchId" textbox with random data "AT1 Group"
And
I click to search icon at all dashboard screen
And
The "search-person-container" page or section should be "displayed"
And
The title of this screen with value is "Search person"
And
I click to random "AT1 Group" cell in "searchPersonDynamicResult" datatable
And
The "group-detail" page or section should be "displayed"
When
Wait for box icon loading invisible
And
I click to "Group" box
Then
The title of this screen with value is "Edit AT1 Group"
And
Avatar should be uploaded successfully
Then
The console log should not have error
@automation_test
@all_module_except_evaluation
@create_edit_group
@84491
@person_natural
Scenario: [Group] - Edit group image (existing) and save
Given
I visit the homepage
And
The "my-start-page" page or section should be "displayed"
Given
I open to "person" dashboard
And
The "dashboard-person" page or section should be "displayed"
And
The title of this screen with value is "Dashboard person"
And
I click to dynamic "persons" "AT1 Group" on Last Opened box
And
The "group-detail" page or section should be "displayed"
When
Wait for box icon loading invisible
And
I click to "Group" box
Then
The title of this screen with value is "Edit AT1 Group"
And
I click avatar icon
And
I upload avatar with name "sakura.jpg"
And
I click to "OK" button
And
Wait for Upload avatar form invisible
And
Avatar should be uploaded successfully
And
I click to "Save" button
And
I open to "person" dashboard
TimeoutError: Control at: xpath=//*[contains(@ng-repeat,'in vm.persons')]//*[contains(text(),'AT1 Group 1539567291307')] can not be visible. Wait timed out after 50059ms at C:\Basenet\AutomationTest\Dev\educase-e2e-testing\node_modules\selenium-webdriver\lib\promise.js:2107:17 at (anonymous) at process._tickCallback (internal/process/next_tick.js:188:7)
And
The "group-detail" page or section should be "displayed"
When
Wait for box icon loading invisible
And
I click to "Group" box
Then
The title of this screen with value is "Edit AT1 Group"
And
Avatar should be uploaded successfully
Then
The console log should not have error