@automation_test@all_module_except_evaluation@create_edit_organisation
Feature: [PERSON] - ORGANISATION
@automation_test
@all_module_except_evaluation
@create_edit_organisation
@85763
@person_natural
Scenario: [Org] - Create new Organisation 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 "organisation" Person button
And
The "person-edit-detail-juristic-data-container" page or section should be "displayed"
Then
The title of this screen with value is "Create organisation"
When
I input to "companyName" textbox with random data "AT1 Company"
And
I input to "companyType" textbox with data "Sole proprietorship"
And
I input to "additional1" textbox with data "Company Additional 1"
And
I input to "additional2" textbox with data "Company Additional 2"
And
I input to "companyApprentiship" textbox with data "12345"
And
I input to "correspondenceLanguage" textbox with data "English"
And
I click to "Save" button
And
I click to dynamic "persons" "AT1 Company" on Last Opened box
Then
The "juristic-detail" page or section should be "displayed"
When
Wait for box icon loading invisible
And
I click to "Organisation data" box
Then
The title of this screen with value is "Edit AT1 Company"
And
I get actual value at "companyName" field then compare with expected random value "AT1 Company"
And
I get actual value at "companyType" field then compare with expected value "Sole proprietorship"
And
I get actual value at "additional1" field then compare with expected value "Company Additional 1"
And
I get actual value at "additional2" field then compare with expected value "Company Additional 2"
And
I get actual value at "companyApprentiship" field then compare with expected value "12345"
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_organisation
@85766
@person_natural
Scenario: [Org] - Edit Organisation 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 Company" on Last Opened box
And
The "juristic-detail" page or section should be "displayed"
When
Wait for box icon loading invisible
And
I click to "Organisation data" box
Then
The title of this screen with value is "Edit AT1 Company"
When
I input to "companyName" textbox with random data "AT1 New Company"
And
I input to "companyType" textbox with data "School / Educational unit"
And
I input to "additional1" textbox with data "Company New Additional 1"
And
I input to "additional2" textbox with data "Company New Additional 2"
And
I input to "companyApprentiship" textbox with data "989898"
And
I input to "correspondenceLanguage" textbox with data "German"
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 New Company"
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_organisation
@85767
@person_natural
Scenario: [Org] - Edit Organisation 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 Company" on Last Opened box
And
The "juristic-detail" page or section should be "displayed"
When
Wait for box icon loading invisible
And
I click to "Organisation data" box
Then
The title of this screen with value is "Edit AT1 Company"
When
I input to "companyName" textbox with data ""
And
I input to "companyType" textbox with data "School / Educational unit"
And
I input to "additional1" textbox with data "Company New Additional 1"
And
I input to "additional2" textbox with data "Company New Additional 2"
And
I input to "companyApprentiship" textbox with data "989898"
And
I input to "correspondenceLanguage" textbox with data "German"
And
I click to "Save" button
And
I verify at "companyName" field show tooltip message "Company name is required."
And
I verify at "Save" button show tooltip message
Message |
---|
Company name is required. |
Then
The console log should not have error
@automation_test
@all_module_except_evaluation
@create_edit_organisation
@85769
@person_natural
Scenario: [Org] - Edit Organisation 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 Company" on Last Opened box
And
The "juristic-detail" page or section should be "displayed"
When
Wait for box icon loading invisible
And
I click to "Organisation data" box
Then
The title of this screen with value is "Edit AT1 Company"
When
I input to "companyName" textbox with random data "AT1 New Company"
And
I input to "companyType" textbox with data "School / Educational unit"
And
I input to "additional1" textbox with data "Company New Additional 1"
And
I input to "correspondenceLanguage" textbox with data "German"
And
I click to "Save" button
When
Wait for box icon loading invisible
And
I click to "Organisation data" box
Then
The title of this screen with value is "Edit AT1 New Company"
And
I get actual value at "companyName" field then compare with expected random value "AT1 New Company"
And
I get actual value at "companyType" field then compare with expected value "School / Educational unit"
And
I get actual value at "additional1" field then compare with expected value "Company New Additional 1"
And
I get actual value at "additional2" field then compare with expected value "Company Additional 2"
And
I get actual value at "companyApprentiship" field then compare with expected value "12345"
And
I get actual value at "correspondenceLanguage" field then compare with expected contain value "German"