diff --git a/package.json b/package.json index e03b666a9..3e3572b7d 100644 --- a/package.json +++ b/package.json @@ -106,7 +106,7 @@ "babel-runtime": "^6.26.0", "body-parser": "^1.19.0", "chai": "^4.3.4", - "chromedriver": "^140.0.0", + "chromedriver": "^142.0.0", "cross-env": "^7.0.3", "css-loader": "^6.5.1", "cucumber-html-reporter": "^5.3.0", diff --git a/tests/features/MLFunction.feature b/tests/features/MLFunction.feature index b876bbe46..8d9edb32e 100644 --- a/tests/features/MLFunction.feature +++ b/tests/features/MLFunction.feature @@ -449,7 +449,7 @@ Feature: ML Functions | Secret | | | | yes | Then verify "Volume_Paths_Table_Volume_Name_Input" element in "Resources_Accordion" on "New_Function" wizard should display hover warning "Input_Hint"."Input_Field_Require" Then verify "Volume_Paths_Table_Path_Input" element in "Resources_Accordion" on "New_Function" wizard should display hover warning "Input_Hint"."Input_Field_Require" - Then verify "Volume_Paths_Table_Config_Map_Input" element in "Resources_Accordion" on "New_Function" wizard should display hover warning "Input_Hint"."Input_Field_Require" + Then verify "Volume_Paths_Table_Secret_Name_Input" in "Resources_Accordion" on "New_Function" wizard should display options "Input_Hint"."Secret_Name_Rule_Options" Then verify "Volume_Paths_Table_Path_Input" element in "Resources_Accordion" on "New_Function" wizard should display hint "Input_Hint"."Mount_Path_Hint" When click on "Delete_New_Row_Button" element in "Resources_Accordion" on "New_Function" wizard When add new volume rows to "Volume_Paths_Table" table in "Resources_Accordion" on "New_Function" wizard using nontable inputs @@ -537,7 +537,7 @@ Feature: ML Functions | Function_Environment_Variables_Name_Input | Function_Environment_Variables_Type_Dropdown | Function_Environment_Variables_Secret_Name_Input | Function_Environment_Variables_Secret_Key_Input | Add_Row_Button | | | Secret | | @#$ | yes | Then verify "Function_Environment_Variables_Name_Input" element in "Environment_Variables_Accordion" on "New_Function" wizard should display hover warning "Input_Hint"."Input_Field_Require" - Then verify "Function_Environment_Variables_Secret_Name_Input" element in "Environment_Variables_Accordion" on "New_Function" wizard should display hover warning "Input_Hint"."Input_Field_Require" + Then verify "Function_Environment_Variables_Secret_Name_Input" in "Environment_Variables_Accordion" on "New_Function" wizard should display options "Input_Hint"."Secret_Name_Rule_Options" Then verify "Function_Environment_Variables_Secret_Name_Input" element in "Environment_Variables_Accordion" on "New_Function" wizard should display hint "Input_Hint"."SECRET_INPUT_HINT" Then verify "Function_Environment_Variables_Secret_Key_Input" element in "Environment_Variables_Accordion" on "New_Function" wizard should display hover warning "Input_Hint"."Input_Field_Invalid" Then verify "Function_Environment_Variables_Secret_Key_Input" element in "Environment_Variables_Accordion" on "New_Function" wizard should display hint "Input_Hint"."VALUE_INPUT_HINT" diff --git a/tests/features/common-tools/common-consts.js b/tests/features/common-tools/common-consts.js index 1bdd7adea..97063c125 100644 --- a/tests/features/common-tools/common-consts.js +++ b/tests/features/common-tools/common-consts.js @@ -538,6 +538,14 @@ export default { Distinct_Keys: 'The partition is based on key.', Source_URL_Input: 'Source URL is the Git Repo that is associated with the project. When the user pulls the project it will use the source URL to pull from', + Secret_Name_Rule_Options: + 'Valid characters: a–z, A–Z, 0–9, –, _, .\n' + + 'Must begin and end with: a–z, A–Z, 0–9\n' + + 'No consecutive characters: ..,, .–,, –.\n' + + 'Max length between two periods: 63\n' + + 'Length – max: 253\n'+ + 'This field is required\n'+ + 'Secret does not reference an MLRun secret defined in another project', SECRET_INPUT_HINT: '• Valid characters: A-Z, a-z, 0-9, -, _, .\n' + '• Must begin and end with: A-Z, a-z, 0-9\n' + diff --git a/tests/features/common/page-objects/interactive-popup.po.js b/tests/features/common/page-objects/interactive-popup.po.js index 5a83c9f10..97e290a2e 100644 --- a/tests/features/common/page-objects/interactive-popup.po.js +++ b/tests/features/common/page-objects/interactive-popup.po.js @@ -293,7 +293,7 @@ const actionMenuStructure = { } const volumePathsTable = { - root: '.modal__content .form-row:nth-of-type(7)', + root: '[data-testid="resources.volumesTable"]', header: { root: '.form-table__header-row', sorters: { @@ -306,15 +306,16 @@ const volumePathsTable = { offset: 1, add_row_btn: '.form-table__action-row button', row: { - root: 'div[class=table__row]', + root: 'div.form-table__row.form-table__volume-row', fields: { - type: '.table__cell:nth-of-type(1) .data-ellipsis', - volume_name: '.table__cell:nth-of-type(2) .data-ellipsis', - path: '.table__cell:nth-of-type(3) .data-ellipsis', + type: '.form-table__cell:nth-of-type(1) .data-ellipsis', + volume_name: '.form-table__cell:nth-of-type(2) .data-ellipsis', + path: '.form-table__cell:nth-of-type(3) .data-ellipsis', action_menu: { componentType: actionMenu, structure: actionMenuStructure - } + }, + remove_btn: '[data-testid="delete-btn"]' } } } @@ -474,10 +475,9 @@ const advancedEnvironmentVariablesTable = { ) }, type_dropdown_verify: '.form-table__cell_1 .data-ellipsis', - value_input: '.form-table__cell_3 .form-field__control input', + value_input: '.form-table__cell_3 .form-field__control:nth-of-type(1) input', value_verify: '.form-table__cell_3 .data-ellipsis', - value_input_key: - '.form-table__cell_3 .form-field-input:nth-of-type(2) .form-field__control input' + value_input_key: '.form-table__cell_3 .form-field-input:nth-of-type(2) input' } } } @@ -994,7 +994,7 @@ export default { ), Volumes_Subheader: labelComponent( generateLabelGroup( - '.modal__content .wizard-form__content-container .form-row:nth-child(6)', + '.modal__content .wizard-form__content-container .job-wizard__resources .form-row:nth-child(6)', false, true ) @@ -1196,6 +1196,17 @@ export default { false, true ) + ), + Env_Variables_Table_Secret_Name_Input: inputGroup( + generateInputGroup( + '[data-testid="advanced.environmentVariablesTable"] .form-table__cell:nth-of-type(3) .secret-name', + true, + true, + '.form-field__warning svg' + ) + ), + Delete_New_Row_Button: By.css( + '[data-testid="advanced.environmentVariablesTable"] .form-table__actions-cell .round-icon-cp:nth-of-type(2)' ) }, Hyperparameter_Strategy_Accordion: { diff --git a/tests/features/common/page-objects/project.po.js b/tests/features/common/page-objects/project.po.js index a77339ba3..eeb90a439 100644 --- a/tests/features/common/page-objects/project.po.js +++ b/tests/features/common/page-objects/project.po.js @@ -357,7 +357,9 @@ export default { Realtime_Functions_Nuclio_Statistic_Section: { ConsumerGroups_Stats_Counter: By.css('.d-flex:nth-of-type(2) .project-data-card__header .project-data-card__statistics-item:nth-of-type(4) .project-data-card__statistics-value'), Recent_Text: By.css('.d-flex:nth-of-type(2) .project-data-card__recent-text span'), - All_Realtime_Functions_Link: By.css('.d-flex:nth-of-type(2) .project-data-card__see-all-link') + All_Realtime_Functions_Link: By.css('.d-flex:nth-of-type(2) .project-data-card__see-all-link'), + Running_Counter_Subtitle: By.css('.d-flex:nth-of-type(2) .project-data-card__statistics .project-data-card__statistics-item:nth-of-type(1) span'), + Failed_Counter_Subtitle: By.css('.d-flex:nth-of-type(2) .project-data-card__statistics .project-data-card__statistics-item:nth-of-type(2) span') } }, demoProject: { diff --git a/tests/features/datasets.feature b/tests/features/datasets.feature index 8cb4de88d..9b5a543aa 100644 --- a/tests/features/datasets.feature +++ b/tests/features/datasets.feature @@ -1220,7 +1220,7 @@ Feature: Datasets Page | Secret | | | | yes | Then verify "Volume_Paths_Table_Volume_Name_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hover warning "Input_Hint"."Input_Field_Require" Then verify "Volume_Paths_Table_Path_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hover warning "Input_Hint"."Input_Field_Require" - Then verify "Volume_Paths_Table_Secret_Name_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hover warning "Input_Hint"."Input_Field_Require" + Then verify "Volume_Paths_Table_Secret_Name_Input" in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display options "Input_Hint"."Secret_Name_Rule_Options" Then verify "Volume_Paths_Table_Path_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hint "Input_Hint"."Mount_Path_Hint" When click on "Delete_New_Row_Button" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard When add new volume rows to "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard using nontable inputs @@ -1232,6 +1232,47 @@ Feature: Datasets Page Then verify "Volume_Paths_Table_Path_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hint "Input_Hint"."Mount_Path_Hint" When click on "Delete_New_Row_Button" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard + When add new volume rows to "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard using nontable inputs + | Volume_Paths_Table_Type_Dropdown | Volume_Paths_Table_Volume_Name_Input | Volume_Paths_Table_Path_Input | Volume_Paths_Table_Secret_Name_Input | Add_New_Row_Button | + | Secret | | | mlrun-project-secrets-defaultinv | yes | + Then verify "Volume_Paths_Table_Volume_Name_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hover warning "Input_Hint"."Input_Field_Require" + Then verify "Volume_Paths_Table_Path_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hover warning "Input_Hint"."Input_Field_Require" + Then verify "Volume_Paths_Table_Path_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hint "Input_Hint"."Mount_Path_Hint" + Then verify "Volume_Paths_Table_Secret_Name_Input" in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display options "Input_Hint"."Secret_Name_Rule_Options" + When click on "Delete_New_Row_Button" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard + When add new volume rows to "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard using nontable inputs + | Volume_Paths_Table_Type_Dropdown | Volume_Paths_Table_Volume_Name_Input | Volume_Paths_Table_Path_Input | Volume_Paths_Table_Secret_Name_Input | Add_New_Row_Button | + | Secret | test | test | mlrun-project-secrets-default | yes | + Then verify values in "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard + | type | volume_name | path | + | Secret | test | test | + When click on data "remove_btn" in "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard + | type | + | Secret | + When add new volume rows to "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard using nontable inputs + | Volume_Paths_Table_Type_Dropdown | Volume_Paths_Table_Volume_Name_Input | Volume_Paths_Table_Path_Input | Volume_Paths_Table_Secret_Name_Input | Add_New_Row_Button | + | Secret | | | mlrun-auth-secrets. | yes | + Then verify "Volume_Paths_Table_Volume_Name_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hover warning "Input_Hint"."Input_Field_Require" + Then verify "Volume_Paths_Table_Path_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hover warning "Input_Hint"."Input_Field_Require" + Then verify "Volume_Paths_Table_Path_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hint "Input_Hint"."Mount_Path_Hint" + Then verify "Volume_Paths_Table_Secret_Name_Input" in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display options "Input_Hint"."Secret_Name_Rule_Options" + When click on "Delete_New_Row_Button" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard + When add new volume rows to "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard using nontable inputs + | Volume_Paths_Table_Type_Dropdown | Volume_Paths_Table_Volume_Name_Input | Volume_Paths_Table_Path_Input | Volume_Paths_Table_Secret_Name_Input | Add_New_Row_Button | + | Secret | test | test | mlrun-auth-secrets | yes | + Then verify values in "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard + | type | volume_name | path | + | Secret | test | test | + When click on data "remove_btn" in "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard + | type | + | Secret | + Then verify "Cross_Close_Button" element visibility on "Modal_Wizard_Form" wizard + And click on "Cross_Close_Button" element on "Modal_Wizard_Form" wizard + And wait load page + Then verify "Info_Pane_Tab_Selector" element visibility on "Datasets_Info_Pane" wizard + Then verify "Overview" tab is active in "Info_Pane_Tab_Selector" on "Datasets_Info_Pane" wizard + Then verify "Header" element visibility on "Datasets_Info_Pane" wizard + @MLD @smoke Scenario: MLD024 - Check Advanced components on Train Model wizard @@ -1274,6 +1315,45 @@ Feature: Datasets Page | name1 | secret | sectretName1:sectretKey1 | | name2 | value | 1 | | name3 | secret | sectretName2:sectretKey2 | + When click on "delete_btn" in "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard with offset "false" + | name_verify | + | name1 | + | name2 | + | name3 | + When add data to "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard with several inputs + | name_input | type_dropdown | value_input | value_input_key | + | name1 | Secret | mlrun-project-secrets-defaultinv | sectretKey1 | + Then verify "Env_Variables_Table_Secret_Name_Input" in "Advanced_Accordion" on "Modal_Wizard_Form" wizard should display options "Input_Hint"."Secret_Name_Rule_Options1" + When click on "Delete_New_Row_Button" element in "Advanced_Accordion" on "Modal_Wizard_Form" wizard + When add data to "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard with several inputs + | name_input | type_dropdown | value_input | value_input_key | + | name1 | Secret | mlrun-project-secrets-default | sectretKey1 | + Then verify data in "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard + | name_verify | type_dropdown_verify | value_verify | + | name1 | secret | mlrun-project-secrets-default:sectretKey1 | + When click on "delete_btn" in "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard with offset "false" + | name_verify | + | name1 | + When add data to "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard with several inputs + | name_input | type_dropdown | value_input | value_input_key | + | name1 | Secret | mlrun-auth-secrets. | sectretKey1 | + Then verify "Env_Variables_Table_Secret_Name_Input" in "Advanced_Accordion" on "Modal_Wizard_Form" wizard should display options "Input_Hint"."Secret_Name_Rule_Options1" + When click on "Delete_New_Row_Button" element in "Advanced_Accordion" on "Modal_Wizard_Form" wizard + When add data to "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard with several inputs + | name_input | type_dropdown | value_input | value_input_key | + | name1 | Secret | mlrun-auth-secrets | sectretKey1 | + Then verify data in "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard + | name_verify | type_dropdown_verify | value_verify | + | name1 | secret | mlrun-auth-secrets:sectretKey1 | + When click on "delete_btn" in "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard with offset "false" + | name_verify | + | name1 | + Then verify "Cross_Close_Button" element visibility on "Modal_Wizard_Form" wizard + And click on "Cross_Close_Button" element on "Modal_Wizard_Form" wizard + And wait load page + Then verify "Info_Pane_Tab_Selector" element visibility on "Datasets_Info_Pane" wizard + Then verify "Overview" tab is active in "Info_Pane_Tab_Selector" on "Datasets_Info_Pane" wizard + Then verify "Header" element visibility on "Datasets_Info_Pane" wizard @MLD @smoke @@ -1360,127 +1440,64 @@ Feature: Datasets Page @MLD @smoke - Scenario: MLD027 - Verify dataset elements visibility on Datasets Table with high number of rows - * create "new_dataset_10" Dataset with "set_10" tag in "churn-project-admin" project with code 200 - * create "new_dataset_11" Dataset with "set_11" tag in "churn-project-admin" project with code 200 - * create "new_dataset_12" Dataset with "set_12" tag in "churn-project-admin" project with code 200 - * create "new_dataset_13" Dataset with "set_13" tag in "churn-project-admin" project with code 200 - * create "new_dataset_14" Dataset with "set_14" tag in "churn-project-admin" project with code 200 - * create "new_dataset_15" Dataset with "set_15" tag in "churn-project-admin" project with code 200 - * create "new_dataset_16" Dataset with "set_16" tag in "churn-project-admin" project with code 200 - * create "new_dataset_17" Dataset with "set_17" tag in "churn-project-admin" project with code 200 - * create "new_dataset_18" Dataset with "set_18" tag in "churn-project-admin" project with code 200 - * create "new_dataset_19" Dataset with "set_19" tag in "churn-project-admin" project with code 200 - * create "new_dataset_20" Dataset with "set_20" tag in "churn-project-admin" project with code 200 - * create "new_dataset_21" Dataset with "set_21" tag in "churn-project-admin" project with code 200 - * create "new_dataset_22" Dataset with "set_22" tag in "churn-project-admin" project with code 200 - * create "new_dataset_23" Dataset with "set_23" tag in "churn-project-admin" project with code 200 - * create "new_dataset_24" Dataset with "set_24" tag in "churn-project-admin" project with code 200 + Scenario: MLD027 - Verify not in filtered list message dataset from the main page and version history Given open url And wait load page And click on row root with value "churn-project-admin" in "name" column in "Projects_Table" table on "Projects" wizard And wait load page - And hover "Project_Navigation_Toggler" component on "commonPagesHeader" wizard - And click on cell with value "Datasets" in "link" column in "General_Info_Quick_Links" table on "commonPagesHeader" wizard + And select "tab" with "Datasets" value in breadcrumbs menu And wait load page - And hover "MLRun_Logo" component on "commonPagesHeader" wizard + Then click on "show_all_versions" option on "Datasets" wizard in "Datasets_Table" table with "test-regressor_cox-test-summary" value in "name" column with scroll "false" And wait load page - Then verify that 24 row elements are displayed in "Datasets_Table" on "Datasets" wizard - Then check "new_dataset_10" value in "name" column in "Datasets_Table" table on "Datasets" wizard - Then check "new_dataset_24" value in "name" column in "Datasets_Table" table on "Datasets" wizard - Then check "data_clean_cleaned-data" value in "name" column in "Datasets_Table" table on "Datasets" wizard - Then verify "BE_Pagination_Navigate_Prev" element visibility on "Pagination_Info_Pane" wizard - Then verify "BE_Pagination_Navigate_Prev" element on "Pagination_Info_Pane" wizard is disabled - Then verify "BE_Pagination_Navigate_Next" element visibility on "Pagination_Info_Pane" wizard - Then verify "BE_Pagination_Navigate_Next" element on "Pagination_Info_Pane" wizard is disabled - Then verify "FE_Pagination_Navigate_Next" element visibility on "Pagination_Info_Pane" wizard - Then verify "FE_Pagination_Navigate_Next" element on "Pagination_Info_Pane" wizard is disabled - Then verify "FE_Pagination_Navigate_Prev" element visibility on "Pagination_Info_Pane" wizard - Then verify "FE_Pagination_Navigate_Prev" element on "Pagination_Info_Pane" wizard is disabled - Then verify "Pagination_Page_Number" element visibility on "Pagination_Info_Pane" wizard - Then "Pagination_Page_Number" element on "Pagination_Info_Pane" should contains "1" value - Then verify "Pagination_Count" element visibility on "Pagination_Info_Pane" wizard - Then "Pagination_Count" element on "Pagination_Info_Pane" should contains "Showing 1 - 24" value - Then click on cell with value "data_clean_cleaned-data" in "name" column in "Datasets_Table" table on "Datasets" wizard - And wait load page - Then "Header" element on "Datasets_Info_Pane" should contains "data_clean_cleaned-data" value - Then type value "new_dataset_10" to "Table_Name_Filter_Input" field on "Datasets" wizard - Then click on "Table_Refresh_Button" element on "Datasets" wizard + Then verify "History_Back_Button" element visibility on "Datasets" wizard + Then "Version_History_Model_Name" element on "Datasets" should contains "test-regressor_cox-test-summary" value + Then verify "Register_Dataset_Button" element visibility on "Datasets" wizard + Then click on "Register_Dataset_Button" element on "Datasets" wizard + Then verify if "Register_Dataset" popup dialog appears + Then type value "test-regressor_cox-test-summary" to "Name_Input" field on "Register_Dataset" wizard + When select "V3IO" option in "Path_Scheme_Combobox" combobox on "Target_Path" accordion on "Register_Dataset" wizard + When type value "target/path" to "Path_Scheme_Combobox" field on "Target_Path" on "Register_Dataset" wizard + Then click on "Register_Button" element on "Register_Dataset" wizard + Then verify if "Confirm_Popup" popup dialog appears + Then "Title" element on "Confirm_Popup" should contains "Overwrite dataset?" value + When click on "Overwrite_Button" element on "Confirm_Popup" wizard And wait load page - Then "Header" element on "Datasets_Info_Pane" should contains "data_clean_cleaned-data" value - Then verify "Not_In_Filtered_List_Message" element visibility on "Datasets_Info_Pane" wizard - Then "Not_In_Filtered_List_Message" component on "Datasets_Info_Pane" should be equal "Datasets_Info_Pane"."Info_Banner_Message" - Then click on "Cross_Close_Button" element on "Datasets_Info_Pane" wizard + Then verify "Notification_Pop_Up" element visibility on "Notification_Popup" wizard And wait load page - Then verify "Header" element not exists on "Datasets_Info_Pane" wizard - Then value in "name" column with "text" in "Datasets_Table" on "Datasets" wizard should contains "new_dataset_10" - Then verify "BE_Pagination_Navigate_Prev" element visibility on "Pagination_Info_Pane" wizard - Then verify "BE_Pagination_Navigate_Prev" element on "Pagination_Info_Pane" wizard is disabled - Then verify "BE_Pagination_Navigate_Next" element visibility on "Pagination_Info_Pane" wizard - Then verify "BE_Pagination_Navigate_Next" element on "Pagination_Info_Pane" wizard is disabled - Then verify "FE_Pagination_Navigate_Next" element visibility on "Pagination_Info_Pane" wizard - Then verify "FE_Pagination_Navigate_Next" element on "Pagination_Info_Pane" wizard is disabled - Then verify "FE_Pagination_Navigate_Prev" element visibility on "Pagination_Info_Pane" wizard - Then verify "FE_Pagination_Navigate_Prev" element on "Pagination_Info_Pane" wizard is disabled - Then verify "Pagination_Page_Number" element visibility on "Pagination_Info_Pane" wizard - Then "Pagination_Page_Number" element on "Pagination_Info_Pane" should contains "1" value - Then verify "Pagination_Count" element visibility on "Pagination_Info_Pane" wizard - Then "Pagination_Count" element on "Pagination_Info_Pane" should contains "Showing 1 - 1" value - Then type value "new_data" to "Table_Name_Filter_Input" field on "Datasets" wizard - Then click on "Table_Refresh_Button" element on "Datasets" wizard + Then "Notification_Pop_Up" element on "Notification_Popup" should contains "Register dataset initiated successfully" value And wait load page - Then value in "name" column with "text" in "Datasets_Table" on "Datasets" wizard should contains "new_data" - Then verify "BE_Pagination_Navigate_Prev" element visibility on "Pagination_Info_Pane" wizard - Then verify "BE_Pagination_Navigate_Prev" element on "Pagination_Info_Pane" wizard is disabled - Then verify "BE_Pagination_Navigate_Next" element visibility on "Pagination_Info_Pane" wizard - Then verify "BE_Pagination_Navigate_Next" element on "Pagination_Info_Pane" wizard is disabled - Then verify "FE_Pagination_Navigate_Next" element visibility on "Pagination_Info_Pane" wizard - Then verify "FE_Pagination_Navigate_Next" element on "Pagination_Info_Pane" wizard is disabled - Then verify "FE_Pagination_Navigate_Prev" element visibility on "Pagination_Info_Pane" wizard - Then verify "FE_Pagination_Navigate_Prev" element on "Pagination_Info_Pane" wizard is disabled - Then verify "Pagination_Page_Number" element visibility on "Pagination_Info_Pane" wizard - Then "Pagination_Page_Number" element on "Pagination_Info_Pane" should contains "1" value - Then verify "Pagination_Count" element visibility on "Pagination_Info_Pane" wizard - Then "Pagination_Count" element on "Pagination_Info_Pane" should contains "Showing 1 - 15" value - And hover "Project_Navigation_Toggler" component on "commonPagesHeader" wizard - And click on cell with value "Feature store" in "link" column in "General_Info_Quick_Links" table on "commonPagesHeader" wizard + Then verify "Notification_Pop_Up_Cross_Close_Button" element visibility on "Notification_Popup" wizard + Then click on "Notification_Pop_Up_Cross_Close_Button" element on "Notification_Popup" wizard + Then click on "History_Back_Button" element on "Datasets" wizard And wait load page - And hover "MLRun_Logo" component on "commonPagesHeader" wizard + Then click on cell with value "test-regressor_cox-test-summary" in "name" column in "Datasets_Table" table on "Datasets" wizard And wait load page - And hover "Project_Navigation_Toggler" component on "commonPagesHeader" wizard - And click on cell with value "Datasets" in "link" column in "General_Info_Quick_Links" table on "commonPagesHeader" wizard + Then "Header" element on "Datasets_Info_Pane" should contains "test-regressor_cox-test-summary" value + Then verify "Not_In_Filtered_List_Message" element visibility on "Datasets_Info_Pane" wizard + Then "Not_In_Filtered_List_Message" component on "Datasets_Info_Pane" should be equal "Datasets_Info_Pane"."Info_Banner_Message" + Then click on "Full_View_Button" element on "Datasets_Info_Pane" wizard + Then verify "Cross_Close_Button" element not exists on "Datasets_Info_Pane" wizard + Then verify "Header_Full_View" element visibility on "Datasets_Info_Pane" wizard + Then "Header_Full_View" element on "Datasets_Info_Pane" should contains "test-regressor_cox-test-summary" value + Then verify "Not_In_Filtered_List_Message" element visibility on "Datasets_Info_Pane" wizard + Then "Not_In_Filtered_List_Message" component on "Datasets_Info_Pane" should be equal "Datasets_Info_Pane"."Info_Banner_Message" + Then click on "Refresh_Button_Full_View" element on "Datasets_Info_Pane" wizard And wait load page - Then verify that 24 row elements are displayed in "Datasets_Table" on "Datasets" wizard - Then verify "BE_Pagination_Navigate_Prev" element visibility on "Pagination_Info_Pane" wizard - Then verify "BE_Pagination_Navigate_Prev" element on "Pagination_Info_Pane" wizard is disabled - Then verify "BE_Pagination_Navigate_Next" element visibility on "Pagination_Info_Pane" wizard - Then verify "BE_Pagination_Navigate_Next" element on "Pagination_Info_Pane" wizard is disabled - Then verify "FE_Pagination_Navigate_Next" element visibility on "Pagination_Info_Pane" wizard - Then verify "FE_Pagination_Navigate_Next" element on "Pagination_Info_Pane" wizard is disabled - Then verify "FE_Pagination_Navigate_Prev" element visibility on "Pagination_Info_Pane" wizard - Then verify "FE_Pagination_Navigate_Prev" element on "Pagination_Info_Pane" wizard is disabled - Then verify "Pagination_Page_Number" element visibility on "Pagination_Info_Pane" wizard - Then "Pagination_Page_Number" element on "Pagination_Info_Pane" should contains "1" value - Then verify "Pagination_Count" element visibility on "Pagination_Info_Pane" wizard - Then "Pagination_Count" element on "Pagination_Info_Pane" should contains "Showing 1 - 24" value - Then click on cell with value "test-regressor_cox-test-summary" in "name" column in "Datasets_Table" table on "Datasets" wizard + Then verify "Not_In_Filtered_List_Message" element visibility on "Datasets_Info_Pane" wizard + Then "Not_In_Filtered_List_Message" component on "Datasets_Info_Pane" should be equal "Datasets_Info_Pane"."Info_Banner_Message" + Then click on "Tabel_View_Button" element on "Datasets_Info_Pane" wizard And wait load page - Then verify that 24 row elements are displayed in "Datasets_Table" on "Datasets" wizard - Then verify "BE_Pagination_Navigate_Prev" element visibility on "Pagination_Info_Pane" wizard - Then verify "BE_Pagination_Navigate_Prev" element on "Pagination_Info_Pane" wizard is disabled - Then verify "BE_Pagination_Navigate_Next" element visibility on "Pagination_Info_Pane" wizard - Then verify "BE_Pagination_Navigate_Next" element on "Pagination_Info_Pane" wizard is disabled - Then verify "FE_Pagination_Navigate_Next" element visibility on "Pagination_Info_Pane" wizard - Then verify "FE_Pagination_Navigate_Next" element on "Pagination_Info_Pane" wizard is disabled - Then verify "FE_Pagination_Navigate_Prev" element visibility on "Pagination_Info_Pane" wizard - Then verify "FE_Pagination_Navigate_Prev" element on "Pagination_Info_Pane" wizard is disabled - Then verify "Pagination_Page_Number" element visibility on "Pagination_Info_Pane" wizard - Then "Pagination_Page_Number" element on "Pagination_Info_Pane" should contains "1" value - Then verify "Pagination_Count" element visibility on "Pagination_Info_Pane" wizard - Then "Pagination_Count" element on "Pagination_Info_Pane" should contains "Showing 1 - 24" value + Then verify "Cross_Close_Button" element visibility on "Datasets_Info_Pane" wizard + Then "Header" element on "Datasets_Info_Pane" should contains "test-regressor_cox-test-summary" value + Then verify "Not_In_Filtered_List_Message" element visibility on "Datasets_Info_Pane" wizard + Then "Not_In_Filtered_List_Message" component on "Datasets_Info_Pane" should be equal "Datasets_Info_Pane"."Info_Banner_Message" + Then click on "Table_Refresh_Button" element on "Datasets" wizard + And wait load page + Then "Header" element on "Datasets_Info_Pane" should contains "test-regressor_cox-test-summary" value + Then verify "Not_In_Filtered_List_Message" element not exists on "Datasets_Info_Pane" wizard Then click on "Cross_Close_Button" element on "Datasets_Info_Pane" wizard And wait load page - Then verify "Header" element not exists on "Datasets_Info_Pane" wizard + Then verify "Datasets_Table" element visibility on "Datasets" wizard @MLD @smoke diff --git a/tests/features/jobsAndWorkflows.feature b/tests/features/jobsAndWorkflows.feature index 355055a0e..0ea0bdc69 100644 --- a/tests/features/jobsAndWorkflows.feature +++ b/tests/features/jobsAndWorkflows.feature @@ -2678,7 +2678,7 @@ Feature: Jobs and workflows | Secret | | | | yes | Then verify "Volume_Paths_Table_Volume_Name_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hover warning "Input_Hint"."Input_Field_Require" Then verify "Volume_Paths_Table_Path_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hover warning "Input_Hint"."Input_Field_Require" - Then verify "Volume_Paths_Table_Secret_Name_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hover warning "Input_Hint"."Input_Field_Require" + Then verify "Volume_Paths_Table_Secret_Name_Input" in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display options "Input_Hint"."Secret_Name_Rule_Options" Then verify "Volume_Paths_Table_Path_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hint "Input_Hint"."Mount_Path_Hint" When click on "Delete_New_Row_Button" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard When add new volume rows to "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard using nontable inputs diff --git a/tests/features/projectMonitoring.feature b/tests/features/projectMonitoring.feature index 40d7177bd..0d395de91 100644 --- a/tests/features/projectMonitoring.feature +++ b/tests/features/projectMonitoring.feature @@ -81,10 +81,12 @@ Feature: Project Monitoring Page Then verify "Monitoring_App_Running_Counter_Subtitle" element visibility in "Monitoring_App_Stats_Container" on "Project" wizard Then "Monitoring_App_Running_Counter_Subtitle" element in "Monitoring_App_Stats_Container" on "Project" should contains "Running" value Then verify "Monitoring_App_Running_Counter_Status_Icon" element visibility in "Monitoring_App_Stats_Container" on "Project" wizard + Then verify "Monitoring_App_Running_Counter_Status_Icon" element in "Monitoring_App_Stats_Container" on "Project" wizard should display hover tooltip "Common_Tooltips"."Running" Then verify "Monitoring_App_Failed_Stats_Counter" element visibility in "Monitoring_App_Stats_Container" on "Project" wizard Then verify "Monitoring_App_Failed_Counter_Subtitle" element visibility in "Monitoring_App_Stats_Container" on "Project" wizard Then "Monitoring_App_Failed_Counter_Subtitle" element in "Monitoring_App_Stats_Container" on "Project" should contains "Failed" value Then verify "Monitoring_App_Failed_Counter_Status_Icon" element visibility in "Monitoring_App_Stats_Container" on "Project" wizard + Then verify "Monitoring_App_Failed_Counter_Status_Icon" element in "Monitoring_App_Stats_Container" on "Project" wizard should display hover tooltip "Common_Tooltips"."Failed_Tip" Then verify "Alerts_Stats_Title" element visibility in "Alerts_Stats_Container" on "Project" wizard Then "Alerts_Stats_Title" element in "Alerts_Stats_Container" on "Project" should contains "Alerts" value Then verify "Alerts_Stats_Title_Icon" element visibility in "Alerts_Stats_Container" on "Project" wizard @@ -162,6 +164,8 @@ Feature: Project Monitoring Page Then verify visibility of header column "failed_counter_number" in "Realtime_Functions_Nuclio_Table" table on "Project" wizard Then check "Failed" header value in "failed_counter_subtitle" column in "Realtime_Functions_Nuclio_Table" table on "Project" wizard Then verify visibility of header column "failed_counter_icon" in "Realtime_Functions_Nuclio_Table" table on "Project" wizard + Then verify "Running_Counter_Subtitle" element in "Realtime_Functions_Nuclio_Statistic_Section" on "Project" wizard should display hover tooltip "Common_Tooltips"."Running" + Then verify "Failed_Counter_Subtitle" element in "Realtime_Functions_Nuclio_Statistic_Section" on "Project" wizard should display hover tooltip "Common_Tooltips"."Failed_Tip" Then verify visibility of header column "api_gateways_counter_number" in "Realtime_Functions_Nuclio_Table" table on "Project" wizard Then check "API gateways" header value in "api_gateways_counter_subtitle" column in "Realtime_Functions_Nuclio_Table" table on "Project" wizard Then verify visibility of header column "consumer_groups_counter_number" in "Realtime_Functions_Nuclio_Table" table on "Project" wizard @@ -521,7 +525,323 @@ Feature: Project Monitoring Page Then verify "Parallel_Runs_Number_Input" element visibility on "Modal_Wizard_Form" wizard Then verify "Dask_Clutter_URL_Input" element visibility on "Modal_Wizard_Form" wizard Then "Teardown_Checkbox" element should be unchecked on "Modal_Wizard_Form" wizard - + + @MLPM + @passive + @smoke + Scenario: MLPM029 - Check the Secret name validation in the Resources step on the Batch run wizard + Given open url + And wait load page + And click on row root with value "default" in "name" column in "Projects_Table" table on "Projects" wizard + And wait load page + Then verify "Quick_Actions" element visibility on "Project" wizard + Then verify "Quick_Actions" dropdown element on "Project" wizard should contains "Project"."Quick_Actions_Options" + Then select "Batch run" option in "Quick_Actions" dropdown on "Project" wizard + And wait load page + Then verify "Title" element visibility on "Modal_Wizard_Form" wizard + Then "Title" element on "Modal_Wizard_Form" should contains "Batch Run" value + Then verify "Cross_Close_Button" element visibility on "Modal_Wizard_Form" wizard + Then verify "Wizard_Steps_Content" element visibility on "Modal_Wizard_Form" wizard + And click on row root with value "aggregate" in "name" column in "Functions_Table" table on "Modal_Wizard_Form" wizard + Then "Function_Title" element on "Modal_Wizard_Form" should contains "aggregate" value + And click on "Step_5_Button" element on "commonPagesHeader" wizard + Then "Function_Title" element on "Modal_Wizard_Form" should contains "aggregate" value + Then "Title" element on "Modal_Wizard_Form" should contains "Batch Run" value + Then verify "Form_Header_Resources" element visibility on "commonPagesHeader" wizard + Then "Form_Header_Resources" element on "commonPagesHeader" should contains "Resources" value + Then verify "Volumes_Subheader" element visibility in "Resources_Accordion" on "Modal_Wizard_Form" wizard + Then verify "Volumes_Subheader" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hint "Label_Hint"."New_Job_Volumes" + When add new volume rows to "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard using nontable inputs + | Volume_Paths_Table_Type_Dropdown | Volume_Paths_Table_Volume_Name_Input | Volume_Paths_Table_Path_Input | Volume_Paths_Table_Secret_Name_Input | Add_New_Row_Button | + | Secret | | | mlrun-project-secrets-defaultinv | yes | + Then verify "Volume_Paths_Table_Volume_Name_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hover warning "Input_Hint"."Input_Field_Require" + Then verify "Volume_Paths_Table_Path_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hover warning "Input_Hint"."Input_Field_Require" + Then verify "Volume_Paths_Table_Path_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hint "Input_Hint"."Mount_Path_Hint" + Then verify "Volume_Paths_Table_Secret_Name_Input" in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display options "Input_Hint"."Secret_Name_Rule_Options" + When click on "Delete_New_Row_Button" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard + When add new volume rows to "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard using nontable inputs + | Volume_Paths_Table_Type_Dropdown | Volume_Paths_Table_Volume_Name_Input | Volume_Paths_Table_Path_Input | Volume_Paths_Table_Secret_Name_Input | Add_New_Row_Button | + | Secret | test | test | mlrun-project-secrets-default | yes | + Then verify values in "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard + | type | volume_name | path | + | Secret | test | test | + When click on data "remove_btn" in "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard + | type | + | Secret | + When add new volume rows to "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard using nontable inputs + | Volume_Paths_Table_Type_Dropdown | Volume_Paths_Table_Volume_Name_Input | Volume_Paths_Table_Path_Input | Volume_Paths_Table_Secret_Name_Input | Add_New_Row_Button | + | Secret | | | mlrun-auth-secrets. | yes | + Then verify "Volume_Paths_Table_Volume_Name_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hover warning "Input_Hint"."Input_Field_Require" + Then verify "Volume_Paths_Table_Path_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hover warning "Input_Hint"."Input_Field_Require" + Then verify "Volume_Paths_Table_Path_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hint "Input_Hint"."Mount_Path_Hint" + Then verify "Volume_Paths_Table_Secret_Name_Input" in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display options "Input_Hint"."Secret_Name_Rule_Options" + When click on "Delete_New_Row_Button" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard + When add new volume rows to "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard using nontable inputs + | Volume_Paths_Table_Type_Dropdown | Volume_Paths_Table_Volume_Name_Input | Volume_Paths_Table_Path_Input | Volume_Paths_Table_Secret_Name_Input | Add_New_Row_Button | + | Secret | test | test | mlrun-auth-secrets | yes | + Then verify values in "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard + | type | volume_name | path | + | Secret | test | test | + When click on data "remove_btn" in "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard + | type | + | Secret | + Then verify "Cross_Close_Button" element visibility on "Modal_Wizard_Form" wizard + And click on "Cross_Close_Button" element on "Modal_Wizard_Form" wizard + And wait load page + Then verify "Quick_Actions" element visibility on "Project" wizard + Then verify "Quick_Actions" dropdown element on "Project" wizard should contains "Project"."Quick_Actions_Options" + + @MLPM + @passive + @smoke + Scenario: MLPM030 - Check the Secret name validation in the Advanced step on the Batch run wizard + Given open url + And wait load page + And click on row root with value "default" in "name" column in "Projects_Table" table on "Projects" wizard + And wait load page + Then verify "Quick_Actions" element visibility on "Project" wizard + Then verify "Quick_Actions" dropdown element on "Project" wizard should contains "Project"."Quick_Actions_Options" + Then select "Batch run" option in "Quick_Actions" dropdown on "Project" wizard + And wait load page + Then verify "Title" element visibility on "Modal_Wizard_Form" wizard + Then "Title" element on "Modal_Wizard_Form" should contains "Batch Run" value + Then verify "Cross_Close_Button" element visibility on "Modal_Wizard_Form" wizard + Then verify "Wizard_Steps_Content" element visibility on "Modal_Wizard_Form" wizard + And click on row root with value "erann-job-func" in "name" column in "Functions_Table" table on "Modal_Wizard_Form" wizard + Then "Function_Title" element on "Modal_Wizard_Form" should contains "erann-job-func" value + And click on "Step_6_Button" element on "commonPagesHeader" wizard + Then "Function_Title" element on "Modal_Wizard_Form" should contains "erann-job-func" value + Then "Title" element on "Modal_Wizard_Form" should contains "Batch Run" value + Then verify "Form_Header_Advanced" element visibility on "commonPagesHeader" wizard + Then "Form_Header_Advanced" element on "commonPagesHeader" should contains "Advanced" value + Then "Accordion_Advanced_Subheader" element on "Modal_Wizard_Form" should contains "Environment variables" value + Then verify "Advanced_Environment_Variables_Table" element visibility on "Modal_Wizard_Form" wizard + When add data to "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard with several inputs + | name_input | type_dropdown | value_input | value_input_key | + | name1 | Secret | mlrun-project-secrets-defaultinv | sectretKey1 | + Then verify "Env_Variables_Table_Secret_Name_Input" in "Advanced_Accordion" on "Modal_Wizard_Form" wizard should display options "Input_Hint"."Secret_Name_Rule_Options" + When click on "Delete_New_Row_Button" element in "Advanced_Accordion" on "Modal_Wizard_Form" wizard + When add data to "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard with several inputs + | name_input | type_dropdown | value_input | value_input_key | + | name1 | Secret | mlrun-project-secrets-default | sectretKey1 | + Then verify data in "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard + | name_verify | type_dropdown_verify | value_verify | + | name1 | secret | mlrun-project-secrets-default:sectretKey1 | + When click on "delete_btn" in "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard with offset "false" + | name_verify | + | name1 | + When add data to "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard with several inputs + | name_input | type_dropdown | value_input | value_input_key | + | name1 | Secret | mlrun-auth-secrets. | sectretKey1 | + Then verify "Env_Variables_Table_Secret_Name_Input" in "Advanced_Accordion" on "Modal_Wizard_Form" wizard should display options "Input_Hint"."Secret_Name_Rule_Options" + When click on "Delete_New_Row_Button" element in "Advanced_Accordion" on "Modal_Wizard_Form" wizard + When add data to "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard with several inputs + | name_input | type_dropdown | value_input | value_input_key | + | name1 | Secret | mlrun-auth-secrets | sectretKey1 | + Then verify data in "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard + | name_verify | type_dropdown_verify | value_verify | + | name1 | secret | mlrun-auth-secrets:sectretKey1 | + When click on "delete_btn" in "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard with offset "false" + | name_verify | + | name1 | + Then verify "Cross_Close_Button" element visibility on "Modal_Wizard_Form" wizard + And click on "Cross_Close_Button" element on "Modal_Wizard_Form" wizard + And wait load page + Then verify "Quick_Actions" element visibility on "Project" wizard + Then verify "Quick_Actions" dropdown element on "Project" wizard should contains "Project"."Quick_Actions_Options" + + @MLPM + @passive + @smoke + Scenario: MLPM031 - Check all mandatory components on Batch inference in Advanced section + Given open url + And wait load page + And click on row root with value "default" in "name" column in "Projects_Table" table on "Projects" wizard + And wait load page + Then verify "Quick_Actions" element visibility on "Project" wizard + Then verify "Quick_Actions" dropdown element on "Project" wizard should contains "Project"."Quick_Actions_Options" + Then select "Batch inference" option in "Quick_Actions" dropdown on "Project" wizard + And wait load page + Then verify "Title" element visibility on "Modal_Wizard_Form" wizard + Then "Title" element on "Modal_Wizard_Form" should contains "Batch Inference" value + Then verify "Cross_Close_Button" element visibility on "Modal_Wizard_Form" wizard + Then verify "Wizard_Steps_Content" element visibility on "Modal_Wizard_Form" wizard + Then "Function_Title" element on "Modal_Wizard_Form" should contains "batch-inference-v2" value + And click on "Step_5_Button" element on "commonPagesHeader" wizard + Then "Function_Title" element on "Modal_Wizard_Form" should contains "batch-inference-v2" value + Then "Preview_text" element on "Modal_Wizard_Form" should contains "Tech Preview" value + Then "Title" element on "Modal_Wizard_Form" should contains "Batch Inference" value + Then verify "Form_Header_Advanced" element visibility on "commonPagesHeader" wizard + Then "Form_Header_Advanced" element on "commonPagesHeader" should contains "Advanced" value + Then "Accordion_Advanced_Subheader" element on "Modal_Wizard_Form" should contains "Environment variables" value + Then verify "Advanced_Environment_Variables_Table" element visibility on "Modal_Wizard_Form" wizard + Then verify "Next_Button" element on "Modal_Wizard_Form" wizard is disabled + Then verify "Back_Button" element on "Modal_Wizard_Form" wizard is enabled + Then "Next_Button" element on "Modal_Wizard_Form" should contains "Next" value + Then "Back_Button" element on "Modal_Wizard_Form" should contains "Back" value + Then "Infer_Now_Button" element on "Modal_Wizard_Form" should contains "Infer now" value + Then "Schedule_Infer_Button" element on "Modal_Wizard_Form" should contains "Schedule Infer" value + Then verify "Accordion_Advanced_Subheader" element visibility on "Modal_Wizard_Form" wizard + Then "Accordion_Advanced_Subheader" element on "Modal_Wizard_Form" should contains "Environment variables" value + Then verify "Advanced_Environment_Variables_Table" element visibility on "Modal_Wizard_Form" wizard + When add data to "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard with several inputs + | name_input | type_dropdown | value_input | value_input_key | + | name1 | Value | value1 | | + | name2 | Secret | sectretName1 | sectretKey1 | + | name3 | Secret | sectretName2 | sectretKey2 | + | name4 | Value | value2 | | + | name5 | Secret | sectretName3 | sectretKey3 | + | name6 | Value | value3 | | + | name7 | Secret | sectretName4 | sectretKey4 | + | name8 | Value | value4 | | + Then verify data in "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard + | name_verify | type_dropdown_verify | value_verify | + | name1 | value | value1 | + | name2 | secret | sectretName1:sectretKey1 | + | name3 | secret | sectretName2:sectretKey2 | + | name4 | value | value2 | + | name5 | secret | sectretName3:sectretKey3 | + | name6 | value | value3 | + | name7 | secret | sectretName4:sectretKey4 | + | name8 | value | value4 | + When click on "delete_btn" in "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard with offset "false" + | name_verify | + | name1 | + | name3 | + | name6 | + Then verify data in "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard + | name_verify | type_dropdown_verify | value_verify | + | name2 | secret | sectretName1:sectretKey1 | + | name4 | value | value2 | + | name5 | secret | sectretName3:sectretKey3 | + | name7 | secret | sectretName4:sectretKey4 | + | name8 | value | value4 | + And wait load page + Then edit 1 row in "Advanced_Environment_Variables_Table" key-value table on "Modal_Wizard_Form" wizard + | name_input | value_input | + | edited | edited | + Then verify data in "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard + | name_verify | type_dropdown_verify | value_verify | + | name2edited | secret | sectretName1edited:sectretKey1 | + | name4 | value | value2 | + | name5 | secret | sectretName3:sectretKey3 | + | name7 | secret | sectretName4:sectretKey4 | + | name8 | value | value4 | + And wait load page + Then edit 5 row in "Advanced_Environment_Variables_Table" key-value table on "Modal_Wizard_Form" wizard + | name_input | value_input | + | edited | edited | + Then verify data in "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard + | name_verify | type_dropdown_verify | value_verify | + | name2edited | secret | sectretName1edited:sectretKey1 | + | name4 | value | value2 | + | name5 | secret | sectretName3:sectretKey3 | + | name7 | secret | sectretName4:sectretKey4 | + | name8edited | value | value4edited | + And wait load page + When click on "delete_btn" in "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard with offset "false" + | name_verify | + | name4 | + | name5 | + And wait load page + Then verify "Default_Input_Path_Input" element visibility in "Advanced_Accordion" on "Modal_Wizard_Form" wizard + Then type value "test" to "Default_Input_Path_Input" field on "Advanced_Accordion" on "Modal_Wizard_Form" wizard + Then verify "Default_Artifact_Path_Input" element visibility in "Advanced_Accordion" on "Modal_Wizard_Form" wizard + Then "Default_Artifact_Path_Input" element in "Advanced_Accordion" on "Modal_Wizard_Form" should contains "v3io:///projects/{{run.project}}/artifacts" attribute value + Then verify "Access_Key_Checkbox" element visibility on "Modal_Wizard_Form" wizard + Then uncheck "Access_Key_Checkbox" element on "Modal_Wizard_Form" wizard + Then verify "Access_Key_Input" element visibility on "Modal_Wizard_Form" wizard + Then type value " @" to "Access_Key_Input" field on "Modal_Wizard_Form" wizard + Then verify "Access_Key_Input" on "Modal_Wizard_Form" wizard should display hover warning "Input_Hint"."Input_Field_Invalid" + Then type value "" to "Access_Key_Input" field on "Modal_Wizard_Form" wizard + Then verify "Access_Key_Input" on "Modal_Wizard_Form" wizard should display hover warning "Input_Hint"."Input_Field_Require" + Then check "Access_Key_Checkbox" element on "Modal_Wizard_Form" wizard + When click on "delete_btn" in "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard with offset "false" + | name_verify | + | name2edited | + | name7 | + | name8edited | + And wait load page + When add data to "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard with several inputs + | name_input | type_dropdown | value_input | value_input_key | + | name1 | Secret | mlrun-project-secrets-defaultinv | sectretKey1 | + Then verify "Env_Variables_Table_Secret_Name_Input" in "Advanced_Accordion" on "Modal_Wizard_Form" wizard should display options "Input_Hint"."Secret_Name_Rule_Options" + When click on "Delete_New_Row_Button" element in "Advanced_Accordion" on "Modal_Wizard_Form" wizard + When add data to "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard with several inputs + | name_input | type_dropdown | value_input | value_input_key | + | name1 | Secret | mlrun-project-secrets-default | sectretKey1 | + Then verify data in "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard + | name_verify | type_dropdown_verify | value_verify | + | name1 | secret | mlrun-project-secrets-default:sectretKey1 | + When click on "delete_btn" in "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard with offset "false" + | name_verify | + | name1 | + When add data to "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard with several inputs + | name_input | type_dropdown | value_input | value_input_key | + | name1 | Secret | mlrun-auth-secrets. | sectretKey1 | + Then verify "Env_Variables_Table_Secret_Name_Input" in "Advanced_Accordion" on "Modal_Wizard_Form" wizard should display options "Input_Hint"."Secret_Name_Rule_Options" + When click on "Delete_New_Row_Button" element in "Advanced_Accordion" on "Modal_Wizard_Form" wizard + When add data to "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard with several inputs + | name_input | type_dropdown | value_input | value_input_key | + | name1 | Secret | mlrun-auth-secrets | sectretKey1 | + Then verify data in "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard + | name_verify | type_dropdown_verify | value_verify | + | name1 | secret | mlrun-auth-secrets:sectretKey1 | + When click on "delete_btn" in "Advanced_Environment_Variables_Table" table on "Modal_Wizard_Form" wizard with offset "false" + | name_verify | + | name1 | + And click on "Step_4_Button" element on "commonPagesHeader" wizard + Then "Function_Title" element on "Modal_Wizard_Form" should contains "batch-inference-v2" value + Then verify "Form_Header_Resources" element visibility on "commonPagesHeader" wizard + Then "Form_Header_Resources" element on "commonPagesHeader" should contains "Resources" value + Then verify "Volumes_Subheader" element visibility in "Resources_Accordion" on "Modal_Wizard_Form" wizard + Then verify "Volumes_Subheader" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hint "Label_Hint"."New_Job_Volumes" + When add new volume rows to "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard using nontable inputs + | Volume_Paths_Table_Type_Dropdown | Volume_Paths_Table_Volume_Name_Input | Volume_Paths_Table_Path_Input | Volume_Paths_Table_Secret_Name_Input | Add_New_Row_Button | + | Secret | | | mlrun-project-secrets-defaultinv | yes | + Then verify "Volume_Paths_Table_Volume_Name_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hover warning "Input_Hint"."Input_Field_Require" + Then verify "Volume_Paths_Table_Path_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hover warning "Input_Hint"."Input_Field_Require" + Then verify "Volume_Paths_Table_Path_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hint "Input_Hint"."Mount_Path_Hint" + Then verify "Volume_Paths_Table_Secret_Name_Input" in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display options "Input_Hint"."Secret_Name_Rule_Options" + When click on "Delete_New_Row_Button" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard + When add new volume rows to "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard using nontable inputs + | Volume_Paths_Table_Type_Dropdown | Volume_Paths_Table_Volume_Name_Input | Volume_Paths_Table_Path_Input | Volume_Paths_Table_Secret_Name_Input | Add_New_Row_Button | + | Secret | test | test | mlrun-project-secrets-default | yes | + Then verify values in "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard + | type | volume_name | path | + | Secret | test | test | + When click on data "remove_btn" in "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard + | type | + | Secret | + When add new volume rows to "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard using nontable inputs + | Volume_Paths_Table_Type_Dropdown | Volume_Paths_Table_Volume_Name_Input | Volume_Paths_Table_Path_Input | Volume_Paths_Table_Secret_Name_Input | Add_New_Row_Button | + | Secret | | | mlrun-auth-secrets. | yes | + Then verify "Volume_Paths_Table_Volume_Name_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hover warning "Input_Hint"."Input_Field_Require" + Then verify "Volume_Paths_Table_Path_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hover warning "Input_Hint"."Input_Field_Require" + Then verify "Volume_Paths_Table_Path_Input" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display hint "Input_Hint"."Mount_Path_Hint" + Then verify "Volume_Paths_Table_Secret_Name_Input" in "Resources_Accordion" on "Modal_Wizard_Form" wizard should display options "Input_Hint"."Secret_Name_Rule_Options" + When click on "Delete_New_Row_Button" element in "Resources_Accordion" on "Modal_Wizard_Form" wizard + When add new volume rows to "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard using nontable inputs + | Volume_Paths_Table_Type_Dropdown | Volume_Paths_Table_Volume_Name_Input | Volume_Paths_Table_Path_Input | Volume_Paths_Table_Secret_Name_Input | Add_New_Row_Button | + | Secret | test | test | mlrun-auth-secrets | yes | + Then verify values in "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard + | type | volume_name | path | + | Secret | test | test | + When click on data "remove_btn" in "Volume_Paths_Table" table in "Resources_Accordion" on "Modal_Wizard_Form" wizard + | type | + | Secret | + Then verify "Infer_Now_Button" element on "Modal_Wizard_Form" wizard is enabled + And click on "Infer_Now_Button" element on "Modal_Wizard_Form" wizard + And wait load page + And wait load page + Then verify "Notification_Pop_Up" element visibility on "Notification_Popup" wizard + Then "Notification_Pop_Up" element on "Notification_Popup" should contains "The batch run was started" value + And wait load page + Then verify "Notification_Pop_Up_Cross_Close_Button" element visibility on "Notification_Popup" wizard + Then click on "Notification_Pop_Up_Cross_Close_Button" element on "Notification_Popup" wizard + And wait load page + Then value in "name" column with "text" in "Jobs_Monitor_Table" on "Jobs_Monitor_Tab" wizard should contains "batch-inference-v2" + @MLPM @passive @smoke diff --git a/tests/features/step-definitions/table.steps.js b/tests/features/step-definitions/table.steps.js index f5b8c384d..87f8bb561 100644 --- a/tests/features/step-definitions/table.steps.js +++ b/tests/features/step-definitions/table.steps.js @@ -1081,6 +1081,34 @@ When( } ) +When( + 'click on data {string} in {string} table in {string} on {string} wizard', + async function (field, tableName, accordion, wizardName, dataTable) { + const column = dataTable['rawTable'][0][0] + const rows = dataTable.rows() + + for (const row_indx in rows) { + const arr = await findRowIndexesByColumnValue( + this.driver, + pageObjects[wizardName][accordion][tableName], + column, + rows[row_indx][0] + ) + const indx = arr[0] - pageObjects[wizardName][accordion][tableName].offset + + await hoverComponent( + this.driver, + pageObjects[wizardName][accordion][tableName]['tableFields'][field](indx + 1), + false + ) + await clickOnComponent( + this.driver, + pageObjects[wizardName][accordion][tableName]['tableFields'][field](indx + 1) + ) + } + } +) + When( 'click on data {string} in {string} table on {string} wizard', async function (field, tableName, wizardName, dataTable) {