From af42beb68951e8ad2c4bf8f4b3bf0514652a4ff6 Mon Sep 17 00:00:00 2001 From: Anton Shopin Date: Fri, 20 Dec 2024 19:36:28 +0300 Subject: [PATCH] split data exchange steps --- resources/steps/aop_catalog_steps.robot | 71 ---------- .../steps/api_dynamic_entity_steps.robot | 126 ++++++++++++++++++ resources/steps/dynamic_entity_steps.robot | 126 +----------------- resources/steps/products_steps.robot | 1 - .../b2b/bapi/dynamic_entity/positive.robot | 2 +- .../b2c/bapi/dynamic_entity/positive.robot | 2 +- .../mp_b2b/bapi/dynamic_entity/positive.robot | 2 +- .../mp_b2c/bapi/dynamic_entity/positive.robot | 2 +- .../dynamic_entity/complex/positive.robot | 1 - .../suite/bapi/dynamic_entity/positive.robot | 2 +- .../ui/b2b/data_exchange/data_exchange.robot | 5 +- .../ui/b2c/data_exchange/data_exchange.robot | 5 +- .../mp_b2b/data_exchange/data_exchange.robot | 5 +- .../mp_b2c/data_exchange/data_exchange.robot | 5 +- .../suite/data_exchange/data_exchange.robot | 5 +- 15 files changed, 147 insertions(+), 213 deletions(-) delete mode 100644 resources/steps/aop_catalog_steps.robot create mode 100644 resources/steps/api_dynamic_entity_steps.robot diff --git a/resources/steps/aop_catalog_steps.robot b/resources/steps/aop_catalog_steps.robot deleted file mode 100644 index 87d19aa0a..000000000 --- a/resources/steps/aop_catalog_steps.robot +++ /dev/null @@ -1,71 +0,0 @@ -*** Settings *** -Resource ../common/common_zed.robot -Resource ../common/common.robot -Resource ../pages/zed/zed_aop_pbc_details_page.robot - -*** Variables *** -${appTitle} ${pbc_datails_title_locator} -${appShortDescription} ${pbc_datails_short_description_locator} -${appLogo} ${pbc_datails_app_logo_locator} -${appAuthor} ${pbc_datails_author_link_locator} -${appPendingStatus} ${pbc_details_pending_status_locator} -${appConnectedStatus} ${pbc_details_connected_status_locator} - -*** Keywords *** -Zed: AOP catalog page should contain the following apps: - [Documentation] check that pbc is displayed in the aop catalog page. Possible arguments: pbc title (multiple titles are supported, case sensitive) - [Arguments] @{pbc_title_list} ${element1}=${EMPTY} ${element2}=${EMPTY} ${element3}=${EMPTY} ${element4}=${EMPTY} ${element5}=${EMPTY} ${element6}=${EMPTY} ${element7}=${EMPTY} ${element8}=${EMPTY} ${element9}=${EMPTY} ${element10}=${EMPTY} ${element11}=${EMPTY} ${element12}=${EMPTY} ${element13}=${EMPTY} ${element14}=${EMPTY} ${element15}=${EMPTY} - ${pbc_titles_list_count}= get length ${pbc_title_list} - FOR ${index} IN RANGE 0 ${pbc_titles_list_count} - ${pbc_title_to_check}= Get From List ${pbc_title_list} ${index} - Run Keywords - ... Log ${pbc_title_to_check} - ... AND Wait Until Element Is Visible xpath=//app-application-card//*[contains(@class,'application-card')][contains(@class,'title')][text()='${pbc_title_to_check}'] - ... AND Page Should Contain Element xpath=//app-application-card//*[contains(@class,'application-card')][contains(@class,'title')][text()='${pbc_title_to_check}'] - - END - -Zed: go to the PBC details page: - [Arguments] ${pbc_title} - Wait Until Page Contains Element xpath=//app-application-card//*[contains(@class,'application-card')][contains(@class,'title')][text()='${pbc_title}'] - Click xpath=//app-application-card//*[contains(@class,'application-card')][contains(@class,'title')][text()='${pbc_title}'] - Wait Until Element Is Visible ${pbc_details_main_content_locator} - Page Should Contain Element ${pbc_details_main_content_locator} - -Zed: PBC details page should contain the following elements: - [Arguments] @{pbc_elements_list} ${element1}=${EMPTY} ${element2}=${EMPTY} ${element3}=${EMPTY} ${element4}=${EMPTY} ${element5}=${EMPTY} ${element6}=${EMPTY} ${element7}=${EMPTY} ${element8}=${EMPTY} ${element9}=${EMPTY} ${element10}=${EMPTY} ${element11}=${EMPTY} ${element12}=${EMPTY} ${element13}=${EMPTY} ${element14}=${EMPTY} ${element15}=${EMPTY} - ${pbc_elements_list_coumt}= get length ${pbc_elements_list} - FOR ${index} IN RANGE 0 ${pbc_elements_list_coumt} - ${pbc_element_to_check}= Get From List ${pbc_elements_list} ${index} - Log ${pbc_element_to_check} - ${is_element_image}= Run Keyword And Ignore Error Should Be Equal ${pbc_element_to_check} ${pbc_datails_app_logo_locator} - IF 'FAIL' in ${is_element_image} Page Should Contain Element ${pbc_element_to_check} - IF 'PASS' in ${is_element_image} Verify the src attribute of the image is accessible: ${pbc_element_to_check} - END - -Zed: click button on the PBC details page: - [Documentation] Possible values: 'connect' or 'configure' - [Arguments] ${buttonName} - IF '${buttonName}'=='connect' - Run keywords - Click ${pbc_details_connect_button_locator} - Reload - Wait Until Element Is Visible ${pbc_details_configure_button_locator} - END - IF '${buttonName}'=='configure' - Run keywords - Click ${pbc_details_configure_button_locator} - Wait Until Element Is Visible ${pbc_configuration_form_main_content_locator} - END - -Zed: submit pbc configuration form - Click ${pbc_configuration_form_save_button} - -Zed: Disconnect pbc - Click ${pbc_common_details_actions_menu_button} - Wait Until Element Is Visible ${pbc_actions_menu_disconnect_button} - Click ${pbc_actions_menu_disconnect_button} - Wait Until Element Is Visible ${pbc_actions_menu_confirm_disconnect_button} - Click ${pbc_actions_menu_confirm_disconnect_button} - Reload - Wait Until Element Is Visible ${pbc_details_connect_button_locator} diff --git a/resources/steps/api_dynamic_entity_steps.robot b/resources/steps/api_dynamic_entity_steps.robot new file mode 100644 index 000000000..2ac11e4c7 --- /dev/null +++ b/resources/steps/api_dynamic_entity_steps.robot @@ -0,0 +1,126 @@ +*** Settings *** +Resource ../common/common_api.robot + +*** Keywords *** +Create api key in db + [Documentation] This keyword creates api key hash for data exchange api in the DB table spy_api_key. Key hash is static and matches env variable `dummy_api_key`. + ... + ... Each combination of `dummy_api_key` and `dummy_key_hash` is unique + ... + ### works for MariaDB and PostgreSQL ### + [Arguments] ${key_hash}=${dummy_key_hash} ${created_by}=1 + Connect to Spryker DB + ${hash_id}= Query select id_api_key from spy_api_key WHERE key_hash='${key_hash}'; + ${hash_id_length}= Get Length ${hash_id} + IF ${hash_id_length} > 0 + Execute Sql String DELETE FROM spy_api_key WHERE key_hash='${key_hash}'; + END + ${new_id}= Get next id from table spy_api_key id_api_key + Connect to Spryker DB + IF '${db_engine}' == 'pymysql' + Execute Sql String insert into spy_api_key (id_api_key, name, key_hash, created_by) value ('${new_id}', 'autotest${random}', '${key_hash}', '${created_by}'); + ELSE + Execute Sql String insert into spy_api_key (id_api_key, name, key_hash, created_by) values ('${new_id}', 'autotest${random}', '${key_hash}', '${created_by}'); + END + Disconnect From Database + +Delete api key from db + [Documentation] This keyword deletes api key hash for data exchange api in the DB table spy_api_key. + ... + ### works for MariaDB and PostgreSQL ### + [Arguments] ${key_hash}=${dummy_key_hash} + Connect to Spryker DB + ${hash_id}= Query select id_api_key from spy_api_key WHERE key_hash='${key_hash}'; + ${hash_id_length}= Get Length ${hash_id} + IF ${hash_id_length} > 0 + Execute Sql String DELETE FROM spy_api_key WHERE key_hash='${key_hash}'; + END + Disconnect From Database + +Delete mime_type by id_mime_type in Database: + [Documentation] This keyword deletes a mime type by id_mime_type in the DB table spy_mime_type. + ... *Example:* + ... + ... ``Delete mime_type by id_mime_type in Database: 21`` + ... + [Arguments] ${id_mime_type} + Connect to Spryker DB + Execute Sql String DELETE FROM spy_mime_type WHERE id_mime_type = '${id_mime_type}'; + Disconnect From Database + +Find first available product via data exchange api + [Arguments] ${start_from_index}=0 ${end_index}=100 + Remove Tags * + Set Tags bapi + API_test_setup + I get access token by user credentials: ${zed_admin.email} + I set Headers: Content-Type=application/json Authorization=Bearer ${token} + FOR ${index} IN RANGE ${start_from_index} ${end_index} + I send a GET request: /dynamic-entity/stock-products/${index} + ${is_200}= Run Keyword And Ignore Error Response status code should be: 200 + IF 'FAIL' in ${is_200} Continue For Loop + Save value to a variable: [data][is_never_out_of_stock] initial_is_never_out_of_stock + Save value to a variable: [data][quantity] initial_quantity + IF '${initial_is_never_out_of_stock}' == 'False' + IF ${initial_quantity} > 0 + Save value to a variable: [data][fk_product] fk_product + Set Test Variable ${index} ${index} + Exit For Loop + ELSE + Continue For Loop + END + ELSE + Save value to a variable: [data][fk_product] fk_product + Set Test Variable ${index} ${index} + Exit For Loop + END + END + Get concrete product sku by id from DB: ${fk_product} + Make sure that concrete product is available: ${concrete_sku} + RETURN ${concrete_sku} + +Make sure that concrete product is available: + [Arguments] ${sku}=${concrete_sku} + Remove Tags * + Set Tags glue + API_test_setup + I set Headers: Content-Type==application/json + I send a GET request: /concrete-products/${concrete_sku}/concrete-product-availabilities + ${is_available}= Run Keyword And Ignore Error Response body parameter should be: [data][0][attributes][availability] True + IF 'FAIL' in ${is_available} + ${index}= Evaluate ${index}+1 + Find first available product via data exchange api ${index} + END + +Product availability status should be changed on: + [Arguments] ${is_available} ${sku}=${concrete_sku} ${sleep_time}=5s ${iterations}=26 + ${is_available}= Convert To Title Case ${is_available} + Remove Tags * + Set Tags glue + API_test_setup + I set Headers: Content-Type==application/json + FOR ${index} IN RANGE 1 ${iterations} + I send a GET request: /concrete-products/${concrete_sku}/concrete-product-availabilities + Response status code should be: 200 + ${actual_availability}= Run Keyword And Ignore Error Response body parameter should be: [data][0][attributes][availability] ${is_available} + IF ${index} == ${iterations}-1 + Fail Expected product availability is not reached. Check P&S + END + IF 'PASS' in ${actual_availability} + Exit For Loop + END + IF 'FAIL' in ${actual_availability} + Sleep ${sleep_time} + Continue For Loop + END + + END + +Restore product initial stock via data exchange api: + [Arguments] ${id_stock_product}=${index} + Remove Tags * + Set Tags bapi + API_test_setup + I get access token by user credentials: ${zed_admin.email} + I set Headers: Content-Type=application/json Authorization=Bearer ${token} + I send a PATCH request: /dynamic-entity/stock-products/${id_stock_product} {"data":{"is_never_out_of_stock":${initial_is_never_out_of_stock},"quantity":${initial_quantity}}} diff --git a/resources/steps/dynamic_entity_steps.robot b/resources/steps/dynamic_entity_steps.robot index 2bffb5c32..77c75bc8f 100644 --- a/resources/steps/dynamic_entity_steps.robot +++ b/resources/steps/dynamic_entity_steps.robot @@ -5,41 +5,6 @@ Resource ../../resources/pages/zed/zed_data_exchange_api_configurator_page.ro *** Keywords *** -Create api key in db - [Documentation] This keyword creates api key hash for data exchange api in the DB table spy_api_key. Key hash is static and matches env varaible `dummy_api_key`. - ... - ... Each combination of `dummy_api_key` and `dummy_key_hash` is unique - ... - ### works for MariaDB and PostgreSQL ### - [Arguments] ${key_hash}=${dummy_key_hash} ${created_by}=1 - Connect to Spryker DB - ${hash_id}= Query select id_api_key from spy_api_key WHERE key_hash='${key_hash}'; - ${hash_id_length}= Get Length ${hash_id} - IF ${hash_id_length} > 0 - Execute Sql String DELETE FROM spy_api_key WHERE key_hash='${key_hash}'; - END - ${new_id}= Get next id from table spy_api_key id_api_key - Connect to Spryker DB - IF '${db_engine}' == 'pymysql' - Execute Sql String insert into spy_api_key (id_api_key, name, key_hash, created_by) value ('${new_id}', 'autotest${random}', '${key_hash}', '${created_by}'); - ELSE - Execute Sql String insert into spy_api_key (id_api_key, name, key_hash, created_by) values ('${new_id}', 'autotest${random}', '${key_hash}', '${created_by}'); - END - Disconnect From Database - -Delete api key from db - [Documentation] This keyword deletes api key hash for data exchange api in the DB table spy_api_key. - ... - ### works for MariaDB and PostgreSQL ### - [Arguments] ${key_hash}=${dummy_key_hash} - Connect to Spryker DB - ${hash_id}= Query select id_api_key from spy_api_key WHERE key_hash='${key_hash}'; - ${hash_id_length}= Get Length ${hash_id} - IF ${hash_id_length} > 0 - Execute Sql String DELETE FROM spy_api_key WHERE key_hash='${key_hash}'; - END - Disconnect From Database - Zed: start creation of new data exchange api configuration for db table: [Arguments] ${table_name} Zed: go to first navigation item level: Data Exchange API Configuration @@ -92,17 +57,6 @@ Zed: save data exchange api configuration Page Should Not Contain Element ${zed_error_message} 1s Page Should Not Contain Element ${zed_error_flash_message} 1s -Delete mime_type by id_mime_type in Database: - [Documentation] This keyword deletes a mime type by id_mime_type in the DB table spy_mime_type. - ... *Example:* - ... - ... ``Delete mime_type by id_mime_type in Database: 21`` - ... - [Arguments] ${id_mime_type} - Connect to Spryker DB - Execute Sql String DELETE FROM spy_mime_type WHERE id_mime_type = '${id_mime_type}'; - Disconnect From Database - Zed: download data exchange api specification should be active: [Arguments] ${expected_condition} ${currentURL}= Get Location @@ -135,87 +89,9 @@ Zed: check that downloaded api specification does not contain: ${file_content}= Get File ${specification_file_path} Should Not Contain ${file_content} ${expected_content} -Zed: delete dowloaded api specification +Zed: delete downloaded api specification Remove File ${specification_file_path} Zed: wait until info box is not displayed [Arguments] ${iterations}=20 ${delays}=10 Try reloading page until element is/not appear: ${zed_info_flash_message} false tries=${iterations} timeout=${delays} message='Download API Specification' button is disabled. Check "Trigger API specification update" CLI command results - -Find first available product via data exchange api - [Arguments] ${start_from_index}=0 ${end_index}=100 - Remove Tags * - Set Tags bapi - API_test_setup - I get access token by user credentials: ${zed_admin.email} - I set Headers: Content-Type=application/json Authorization=Bearer ${token} - FOR ${index} IN RANGE ${start_from_index} ${end_index} - I send a GET request: /dynamic-entity/stock-products/${index} - ${is_200}= Run Keyword And Ignore Error Response status code should be: 200 - IF 'FAIL' in ${is_200} Continue For Loop - Save value to a variable: [data][is_never_out_of_stock] initial_is_never_out_of_stock - Save value to a variable: [data][quantity] initial_quantity - IF '${initial_is_never_out_of_stock}' == 'False' - IF ${initial_quantity} > 0 - Save value to a variable: [data][fk_product] fk_product - Set Test Variable ${index} ${index} - Exit For Loop - ELSE - Continue For Loop - END - ELSE - Save value to a variable: [data][fk_product] fk_product - Set Test Variable ${index} ${index} - Exit For Loop - END - END - Get concrete product sku by id from DB: ${fk_product} - Make sure that concrete product is available: ${concrete_sku} - RETURN ${concrete_sku} - -Make sure that concrete product is available: - [Arguments] ${sku}=${concrete_sku} - Remove Tags * - Set Tags glue - API_test_setup - I set Headers: Content-Type==application/json - I send a GET request: /concrete-products/${concrete_sku}/concrete-product-availabilities - ${is_avaialbe}= Run Keyword And Ignore Error Response body parameter should be: [data][0][attributes][availability] True - IF 'FAIL' in ${is_avaialbe} - ${index}= Evaluate ${index}+1 - Find first available product via data exchange api ${index} - END - -Product availability status should be changed on: - [Arguments] ${is_available} ${sku}=${concrete_sku} ${sleep_time}=5s ${iterations}=26 - ${is_available}= Convert To Title Case ${is_available} - Remove Tags * - Set Tags glue - API_test_setup - I set Headers: Content-Type==application/json - FOR ${index} IN RANGE 1 ${iterations} - I send a GET request: /concrete-products/${concrete_sku}/concrete-product-availabilities - Response status code should be: 200 - ${actual_availability}= Run Keyword And Ignore Error Response body parameter should be: [data][0][attributes][availability] ${is_available} - IF ${index} == ${iterations}-1 - Fail Expected product availability is not reached. Check P&S - END - IF 'PASS' in ${actual_availability} - Exit For Loop - END - IF 'FAIL' in ${actual_availability} - Sleep ${sleep_time} - Continue For Loop - END - - END - - -Restore product initial stock via data exchange api: - [Arguments] ${id_stock_product}=${index} - Remove Tags * - Set Tags bapi - API_test_setup - I get access token by user credentials: ${zed_admin.email} - I set Headers: Content-Type=application/json Authorization=Bearer ${token} - I send a PATCH request: /dynamic-entity/stock-products/${id_stock_product} {"data":{"is_never_out_of_stock":${initial_is_never_out_of_stock},"quantity":${initial_quantity}}} diff --git a/resources/steps/products_steps.robot b/resources/steps/products_steps.robot index 4b3dac052..b96c12769 100644 --- a/resources/steps/products_steps.robot +++ b/resources/steps/products_steps.robot @@ -4,7 +4,6 @@ Resource ../common/common.robot Resource ../pages/zed/zed_edit_product_page.robot Resource ../pages/zed/zed_view_abstract_product_page.robot Resource ../pages/zed/zed_view_concrete_product_page.robot -Resource aop_catalog_steps.robot *** Keywords *** Zed: discontinue the following product: diff --git a/tests/api/b2b/bapi/dynamic_entity/positive.robot b/tests/api/b2b/bapi/dynamic_entity/positive.robot index 0dbed8df5..7a1dfeffc 100644 --- a/tests/api/b2b/bapi/dynamic_entity/positive.robot +++ b/tests/api/b2b/bapi/dynamic_entity/positive.robot @@ -2,7 +2,7 @@ Suite Setup API_suite_setup Test Setup API_test_setup Resource ../../../../../resources/common/common_api.robot -Resource ../../../../../resources/steps/dynamic_entity_steps.robot +Resource ../../../../../resources/steps/api_dynamic_entity_steps.robot Test Tags bapi *** Test Cases *** diff --git a/tests/api/b2c/bapi/dynamic_entity/positive.robot b/tests/api/b2c/bapi/dynamic_entity/positive.robot index 0dbed8df5..7a1dfeffc 100644 --- a/tests/api/b2c/bapi/dynamic_entity/positive.robot +++ b/tests/api/b2c/bapi/dynamic_entity/positive.robot @@ -2,7 +2,7 @@ Suite Setup API_suite_setup Test Setup API_test_setup Resource ../../../../../resources/common/common_api.robot -Resource ../../../../../resources/steps/dynamic_entity_steps.robot +Resource ../../../../../resources/steps/api_dynamic_entity_steps.robot Test Tags bapi *** Test Cases *** diff --git a/tests/api/mp_b2b/bapi/dynamic_entity/positive.robot b/tests/api/mp_b2b/bapi/dynamic_entity/positive.robot index 0dbed8df5..7a1dfeffc 100644 --- a/tests/api/mp_b2b/bapi/dynamic_entity/positive.robot +++ b/tests/api/mp_b2b/bapi/dynamic_entity/positive.robot @@ -2,7 +2,7 @@ Suite Setup API_suite_setup Test Setup API_test_setup Resource ../../../../../resources/common/common_api.robot -Resource ../../../../../resources/steps/dynamic_entity_steps.robot +Resource ../../../../../resources/steps/api_dynamic_entity_steps.robot Test Tags bapi *** Test Cases *** diff --git a/tests/api/mp_b2c/bapi/dynamic_entity/positive.robot b/tests/api/mp_b2c/bapi/dynamic_entity/positive.robot index 0dbed8df5..7a1dfeffc 100644 --- a/tests/api/mp_b2c/bapi/dynamic_entity/positive.robot +++ b/tests/api/mp_b2c/bapi/dynamic_entity/positive.robot @@ -2,7 +2,7 @@ Suite Setup API_suite_setup Test Setup API_test_setup Resource ../../../../../resources/common/common_api.robot -Resource ../../../../../resources/steps/dynamic_entity_steps.robot +Resource ../../../../../resources/steps/api_dynamic_entity_steps.robot Test Tags bapi *** Test Cases *** diff --git a/tests/api/suite/bapi/dynamic_entity/complex/positive.robot b/tests/api/suite/bapi/dynamic_entity/complex/positive.robot index ec4c7a01a..1d06a8514 100644 --- a/tests/api/suite/bapi/dynamic_entity/complex/positive.robot +++ b/tests/api/suite/bapi/dynamic_entity/complex/positive.robot @@ -2,7 +2,6 @@ Suite Setup API_suite_setup Test Setup API_test_setup Resource ../../../../../../resources/common/common_api.robot -Resource ../../../../../../resources/steps/dynamic_entity_steps.robot Test Tags bapi diff --git a/tests/api/suite/bapi/dynamic_entity/positive.robot b/tests/api/suite/bapi/dynamic_entity/positive.robot index 0dbed8df5..7a1dfeffc 100644 --- a/tests/api/suite/bapi/dynamic_entity/positive.robot +++ b/tests/api/suite/bapi/dynamic_entity/positive.robot @@ -2,7 +2,7 @@ Suite Setup API_suite_setup Test Setup API_test_setup Resource ../../../../../resources/common/common_api.robot -Resource ../../../../../resources/steps/dynamic_entity_steps.robot +Resource ../../../../../resources/steps/api_dynamic_entity_steps.robot Test Tags bapi *** Test Cases *** diff --git a/tests/ui/b2b/data_exchange/data_exchange.robot b/tests/ui/b2b/data_exchange/data_exchange.robot index d72ad2fb1..1a7242d1f 100644 --- a/tests/ui/b2b/data_exchange/data_exchange.robot +++ b/tests/ui/b2b/data_exchange/data_exchange.robot @@ -40,6 +40,7 @@ Resource ../../../../resources/steps/glossary_steps.robot Resource ../../../../resources/steps/order_comments_steps.robot Resource ../../../../resources/steps/configurable_product_steps.robot Resource ../../../../resources/steps/dynamic_entity_steps.robot +Resource ../../../../resources/steps/api_dynamic_entity_steps.robot *** Test Cases *** Data_exchange_API_download_specification @@ -50,7 +51,7 @@ Data_exchange_API_download_specification Zed: download data exchange api specification Zed: check that downloaded api specification contains: /dynamic-entity/product-abstracts Zed: check that downloaded api specification does not contain: /dynamic-entity/mime-types - Zed: delete dowloaded api specification + Zed: delete downloaded api specification Zed: start creation of new data exchange api configuration for db table: spy_mime_type Zed: edit data exchange api configuration: ... || table_name | is_enabled || @@ -83,7 +84,7 @@ Data_exchange_API_download_specification ... AND Zed: save data exchange api configuration ... AND Trigger API specification update ... AND Zed: wait until info box is not displayed - ... AND Zed: delete dowloaded api specification + ... AND Zed: delete downloaded api specification ... AND Delete dynamic entity configuration in Database: mime-types ... AND Trigger API specification update diff --git a/tests/ui/b2c/data_exchange/data_exchange.robot b/tests/ui/b2c/data_exchange/data_exchange.robot index d72ad2fb1..1a7242d1f 100644 --- a/tests/ui/b2c/data_exchange/data_exchange.robot +++ b/tests/ui/b2c/data_exchange/data_exchange.robot @@ -40,6 +40,7 @@ Resource ../../../../resources/steps/glossary_steps.robot Resource ../../../../resources/steps/order_comments_steps.robot Resource ../../../../resources/steps/configurable_product_steps.robot Resource ../../../../resources/steps/dynamic_entity_steps.robot +Resource ../../../../resources/steps/api_dynamic_entity_steps.robot *** Test Cases *** Data_exchange_API_download_specification @@ -50,7 +51,7 @@ Data_exchange_API_download_specification Zed: download data exchange api specification Zed: check that downloaded api specification contains: /dynamic-entity/product-abstracts Zed: check that downloaded api specification does not contain: /dynamic-entity/mime-types - Zed: delete dowloaded api specification + Zed: delete downloaded api specification Zed: start creation of new data exchange api configuration for db table: spy_mime_type Zed: edit data exchange api configuration: ... || table_name | is_enabled || @@ -83,7 +84,7 @@ Data_exchange_API_download_specification ... AND Zed: save data exchange api configuration ... AND Trigger API specification update ... AND Zed: wait until info box is not displayed - ... AND Zed: delete dowloaded api specification + ... AND Zed: delete downloaded api specification ... AND Delete dynamic entity configuration in Database: mime-types ... AND Trigger API specification update diff --git a/tests/ui/mp_b2b/data_exchange/data_exchange.robot b/tests/ui/mp_b2b/data_exchange/data_exchange.robot index 81b638fc3..a99a33ffc 100644 --- a/tests/ui/mp_b2b/data_exchange/data_exchange.robot +++ b/tests/ui/mp_b2b/data_exchange/data_exchange.robot @@ -40,6 +40,7 @@ Resource ../../../../resources/steps/glossary_steps.robot Resource ../../../../resources/steps/order_comments_steps.robot Resource ../../../../resources/steps/configurable_product_steps.robot Resource ../../../../resources/steps/dynamic_entity_steps.robot +Resource ../../../../resources/steps/api_dynamic_entity_steps.robot *** Test Cases *** Data_exchange_API_download_specification @@ -50,7 +51,7 @@ Data_exchange_API_download_specification Zed: download data exchange api specification Zed: check that downloaded api specification contains: /dynamic-entity/product-abstracts Zed: check that downloaded api specification does not contain: /dynamic-entity/mime-types - Zed: delete dowloaded api specification + Zed: delete downloaded api specification Zed: start creation of new data exchange api configuration for db table: spy_mime_type Zed: edit data exchange api configuration: ... || table_name | is_enabled || @@ -83,7 +84,7 @@ Data_exchange_API_download_specification ... AND Zed: save data exchange api configuration ... AND Trigger API specification update ... AND Zed: wait until info box is not displayed - ... AND Zed: delete dowloaded api specification + ... AND Zed: delete downloaded api specification ... AND Delete dynamic entity configuration in Database: mime-types ... AND Trigger API specification update diff --git a/tests/ui/mp_b2c/data_exchange/data_exchange.robot b/tests/ui/mp_b2c/data_exchange/data_exchange.robot index 4a2b64830..f701bdbc1 100644 --- a/tests/ui/mp_b2c/data_exchange/data_exchange.robot +++ b/tests/ui/mp_b2c/data_exchange/data_exchange.robot @@ -40,6 +40,7 @@ Resource ../../../../resources/steps/glossary_steps.robot Resource ../../../../resources/steps/order_comments_steps.robot Resource ../../../../resources/steps/configurable_product_steps.robot Resource ../../../../resources/steps/dynamic_entity_steps.robot +Resource ../../../../resources/steps/api_dynamic_entity_steps.robot *** Test Cases *** Data_exchange_API_download_specification @@ -50,7 +51,7 @@ Data_exchange_API_download_specification Zed: download data exchange api specification Zed: check that downloaded api specification contains: /dynamic-entity/product-abstracts Zed: check that downloaded api specification does not contain: /dynamic-entity/mime-types - Zed: delete dowloaded api specification + Zed: delete downloaded api specification Zed: start creation of new data exchange api configuration for db table: spy_mime_type Zed: edit data exchange api configuration: ... || table_name | is_enabled || @@ -83,7 +84,7 @@ Data_exchange_API_download_specification ... AND Zed: save data exchange api configuration ... AND Trigger API specification update ... AND Zed: wait until info box is not displayed - ... AND Zed: delete dowloaded api specification + ... AND Zed: delete downloaded api specification ... AND Delete dynamic entity configuration in Database: mime-types ... AND Trigger API specification update diff --git a/tests/ui/suite/data_exchange/data_exchange.robot b/tests/ui/suite/data_exchange/data_exchange.robot index f5caab6f2..096a9598a 100644 --- a/tests/ui/suite/data_exchange/data_exchange.robot +++ b/tests/ui/suite/data_exchange/data_exchange.robot @@ -40,6 +40,7 @@ Resource ../../../../resources/steps/glossary_steps.robot Resource ../../../../resources/steps/order_comments_steps.robot Resource ../../../../resources/steps/configurable_product_steps.robot Resource ../../../../resources/steps/dynamic_entity_steps.robot +Resource ../../../../resources/steps/api_dynamic_entity_steps.robot *** Test Cases *** Data_exchange_API_download_specification @@ -51,7 +52,7 @@ Data_exchange_API_download_specification Zed: download data exchange api specification Zed: check that downloaded api specification contains: /dynamic-entity/product-abstracts Zed: check that downloaded api specification does not contain: /dynamic-entity/mime-types - Zed: delete dowloaded api specification + Zed: delete downloaded api specification Zed: start creation of new data exchange api configuration for db table: spy_mime_type Zed: edit data exchange api configuration: ... || table_name | is_enabled || @@ -84,7 +85,7 @@ Data_exchange_API_download_specification ... AND Zed: save data exchange api configuration ... AND Trigger API specification update ... AND Zed: wait until info box is not displayed - ... AND Zed: delete dowloaded api specification + ... AND Zed: delete downloaded api specification ... AND Delete dynamic entity configuration in Database: mime-types ... AND Trigger API specification update