@automation_test@all_module_except_evaluation@create_edit_person
Feature: [PERSON] - NATURAL
@automation_test
@all_module_except_evaluation
@create_edit_person
@person_natural
Scenario: [Natural] - Create new Person with all mandatory fields 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"
When
I click to "Add person" button
And
Person type dialog should be displayed
And
I click "natural" Person button
And
The "person-edit-container" page or section should be "displayed"
And
The title of this screen with value is "Create person"
And
I input to "name" textbox with random data "AT1 Create"
And
I input to "firstname" textbox with random data "AT1 Test"
And
I click to "Cancel" button
And
I input to "personInputSearchId" textbox with random data "AT1 Test"
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_person
@person_natural
Scenario: [Natural] - Create new Person with least one mandatory field empty 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
And
Person type dialog should be displayed
And
I click "natural" Person button
And
The "person-edit-container" page or section should be "displayed"
And
The title of this screen with value is "Create person"
And
I input to "name" textbox with random data "AT1 Create"
And
I click to "Save" button
And
I verify at "firstname" field show tooltip message "First name is required."
And
I verify at "Save" button show tooltip message
Message |
---|
First name is required. |
And
I input to "name" textbox with data ""
And
I input to "firstname" textbox with random data "AT1 Test"
And
I click to "Save" button
And
I verify at "name" field show tooltip message "Name is required."
And
I verify at "Save" button show tooltip message
Message |
---|
Name is required. |
And
I input to "name" textbox with data ""
And
I input to "firstname" textbox with data ""
And
I click to "Save" button
And
I verify at "name" field show tooltip message "Name is required."
And
I verify at "firstname" field show tooltip message "First name is required."
And
I verify at "Save" button show tooltip message
Message |
---|
Name is required. |
First 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_person
@person_natural
Scenario: [Natural] - Create new Person 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
And
Person type dialog should be displayed
And
I click "natural" Person button
And
The "person-edit-container" page or section should be "displayed"
And
The title of this screen with value is "Create person"
And
I input to "name" textbox with random data "AT1 Create"
And
I input to "firstname" textbox with random data "AT1 Test"
And
I input to "dateOfBirth" textbox with data "01/01/2000"
And
I input to "salutationId" textbox with data "Mr."
And
I input to "sexId" textbox with data "male"
And
I input to "nationalityId" textbox with data "Switzerland"
And
I input to "firstLanguageId" textbox with data "English"
And
I input to "corespondenceLanguageId" textbox with data "English"
And
I input to "abbreviation" textbox with data "Abbreviation"
And
I input to "socialSecurityNumber" textbox with data "123.4567.8901.28"
And
I input to "additional" textbox with data "Additional"
And
I input to "hometown" textbox with data "English"
And
I input to "nameInPassport" textbox with data "AT1 Create AT1 Test"
And
I input to "civilStateId" textbox with data "Single"
And
I input to "placeOfBirth" textbox with data "London"
And
I input to "firstnameInPassport" textbox with data "AT1 Test"
And
I input to "singleName" textbox with data "AT1 Create"
And
I input to "religionId" textbox with data "Roman catholic"
And
I input to "profession" textbox with data "Auto Test"
And
I input to "title" textbox with data "Auto Test"
And
I click to "Save" button
And
I click to dynamic "persons" "AT1 Test" on Last Opened box
And
The "natural-person" page or section should be "displayed"
And
Wait for box icon loading invisible
And
The title of this screen with random value are "AT1 Create" and "AT1 Test"
And
I click to "Personal data" box
And
The title of this screen with value is "Edit person"
And
I get actual value at "name" field then compare with expected random value "AT1 Create"
And
I get actual value at "firstname" field then compare with expected random value "AT1 Test"
And
I get actual value at "dateOfBirth" field then compare with expected value "01/01/2000"
And
I get actual value at "salutationId" field then compare with expected value "Mr."
And
I get actual value at "sexId" field then compare with expected value "male"
And
I get actual value at "nationalityId" field then compare with expected value "Switzerland"
And
I get actual value at "firstLanguageId" field then compare with expected contain value "English"
And
I get actual value at "corespondenceLanguageId" field then compare with expected contain value "English"
And
I get actual value at "abbreviation" field then compare with expected value "Abbreviation"
And
I get actual value at "socialSecurityNumber" field then compare with expected value "123.4567.8901.28"
And
I get actual value at "additional" field then compare with expected value "Additional"
And
I get actual value at "hometown" field then compare with expected value "English"
And
I get actual value at "nameInPassport" field then compare with expected value "AT1 Create AT1 Test"
And
I get actual value at "civilStateId" field then compare with expected value "Single"
And
I get actual value at "placeOfBirth" field then compare with expected value "London"
And
I get actual value at "firstnameInPassport" field then compare with expected value "AT1 Test"
And
I get actual value at "singleName" field then compare with expected value "AT1 Create"
And
I get actual value at "religionId" field then compare with expected value "Roman catholic"
And
I get actual value at "profession" field then compare with expected value "Auto Test"
And
I get actual value at "title" field then compare with expected value "Auto Test"
Then
The console log should not have error
@automation_test
@all_module_except_evaluation
@create_edit_person
@person_natural
Scenario: [Natural] - Create new Person and upload person image 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
And
Person type dialog should be displayed
And
I click "natural" Person button
And
The "person-edit-container" page or section should be "displayed"
And
The title of this screen with value is "Create person"
And
I input to "name" textbox with random data "AT2 Create"
And
I input to "firstname" textbox with random data "AT2 Test"
And
I click avatar icon
And
I upload avatar with name "PersonAvatar.png"
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 click to dynamic "persons" "AT2 Test" on Last Opened box
And
The "natural-person" page or section should be "displayed"
And
Wait for box icon loading invisible
And
The title of this screen with random value are "AT2 Create" and "AT2 Test"
And
I click to "Personal data" box
And
The title of this screen with value is "Edit person"
And
Avatar should be uploaded successfully
Then
The console log should not have error
@automation_test
@all_module_except_evaluation
@create_edit_person
@person_natural
Scenario: [Natural] - Delete person image 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"
And
I click to dynamic "persons" "AT2 Test" on Last Opened box
And
The "natural-person" page or section should be "displayed"
And
Wait for box icon loading invisible
And
The title of this screen with random value are "AT2 Create" and "AT2 Test"
And
I click to "Personal data" box
And
The title of this screen with value is "Edit person"
And
Avatar should be uploaded successfully
And
I click to "Remove" button
And
I click to "Save" button
And
The "natural-person" page or section should be "displayed"
And
Wait for box icon loading invisible
And
The title of this screen with random value are "AT2 Create" and "AT2 Test"
And
I click to "Personal data" box
And
The title of this screen with value is "Edit person"
And
Avatar should be deleted successfully
Then
The console log should not have error