From cf413aef5eb72b9a3ed45a36d749a87533a364b4 Mon Sep 17 00:00:00 2001 From: Olena Zhelnytska Date: Mon, 19 May 2025 12:21:35 +0200 Subject: [PATCH] Updated the tests to meet the latest requirements: - remove the "All tags" option from the filter list on main artifact page - updated navbar locators --- tests/features/MLFunction.feature | 13 ++++--- tests/features/alertsMonitoring.feature | 8 ++-- tests/features/artifacts.feature | 31 ++++++++++++++- tests/features/common-tools/common-consts.js | 5 ++- .../common/actions/dropdown.action.js | 5 +++ .../page-objects/commonPagesHeader.po.js | 10 ++--- .../page-objects/interactive-popup.po.js | 4 +- .../page-objects/project-settings.po.js | 6 +-- .../common/page-objects/project.po.js | 2 +- .../common/page-objects/projects.po.js | 2 +- tests/features/datasets.feature | 38 +++++++++++-------- tests/features/documents.feature | 2 +- tests/features/featureStore.feature | 2 + tests/features/jobsAndWorkflows.feature | 10 ++--- tests/features/models.feature | 33 ++++++++++++++-- tests/features/projectMonitoring.feature | 14 ++++--- tests/features/quickActions.feature | 5 ++- tests/features/step-definitions/steps.js | 14 ++++++- tests/mockServer/data/alerts.json | 8 ++-- 19 files changed, 152 insertions(+), 60 deletions(-) diff --git a/tests/features/MLFunction.feature b/tests/features/MLFunction.feature index dfc97a5bcf..0f11d0f3cc 100644 --- a/tests/features/MLFunction.feature +++ b/tests/features/MLFunction.feature @@ -1087,6 +1087,7 @@ Feature: ML Functions And wait load page And click on "MLRun_Logo" element on "commonPagesHeader" wizard And wait load page + And wait load page Then verify "Projects_Table" element visibility on "Projects" wizard @MLF @@ -1109,7 +1110,7 @@ Feature: ML Functions Then verify "Cross_Cancel_Button" element visibility on "View_YAML" wizard Then verify "YAML_Modal_Container" element visibility on "View_YAML" wizard Then click on "Cross_Cancel_Button" element on "View_YAML" wizard - Then click on cell with row index 9 in "expand_btn" column in "Functions_Table" table on "ML_Functions" wizard + Then click on cell with row index 8 in "expand_btn" column in "Functions_Table" table on "ML_Functions" wizard And wait load page Then select "View YAML" option in action menu on "ML_Functions" wizard in "Functions_Table" table at row with "Nov 23, 2021, 11:31:51 AM" value in "name" column Then verify if "View_YAML" popup dialog appears @@ -1156,8 +1157,8 @@ Feature: ML Functions Then verify "Date_Picker_Filter_Dropdown" element visibility on "ML_Functions" wizard When select "Any time" option in "Date_Picker_Filter_Dropdown" filter dropdown on "ML_Functions" wizard And wait load page - Then verify options in action menu on "ML_Functions" wizard in "Functions_Table" table with "Job" value in "kind" column should contains "ML_Functions_Tab"."Common_Action_Menu_Options" - Then verify options in action menu on "ML_Functions" wizard in "Functions_Table" table with "Serving" value in "kind" column should contains "ML_Functions_Tab"."Serving_Action_Menu_Options" + Then verify options in action menu on "ML_Functions" wizard in "Functions_Table" table with "Job" value in "kind" column should contains "ML_Functions_Tab"."Common_Action_Menu_Options_Demo" + Then verify options in action menu on "ML_Functions" wizard in "Functions_Table" table with "Serving" value in "kind" column should contains "ML_Functions_Tab"."Serving_Action_Menu_Options_Demo" #TODO: check if serving function can be edited @MLF @@ -1180,7 +1181,7 @@ Feature: ML Functions When click on cell with row index 3 in "name" column in "Functions_Table" table on "ML_Functions" wizard And wait load page Then verify "Action_Menu" element visibility on "ML_Function_Info_Pane" wizard - Then verify "Action_Menu" dropdown element on "ML_Function_Info_Pane" wizard should contains "ML_Functions_Tab"."Common_Action_Menu_Options" + Then verify "Action_Menu" dropdown element on "ML_Function_Info_Pane" wizard should contains "ML_Functions_Tab"."Common_Action_Menu_Options_Demo" @MLF @passive @@ -1203,7 +1204,7 @@ Feature: ML Functions When click on cell with row index 9 in "name" column in "Functions_Table" table on "ML_Functions" wizard And wait load page Then verify "Action_Menu" element visibility on "ML_Function_Info_Pane" wizard - Then verify "Action_Menu" dropdown element on "ML_Function_Info_Pane" wizard should contains "ML_Functions_Tab"."Serving_Action_Menu_Options" + Then verify "Action_Menu" dropdown element on "ML_Function_Info_Pane" wizard should contains "ML_Functions_Tab"."Serving_Action_Menu_Options_Demo" #TODO: check if serving function can be edited @MLF @@ -1350,7 +1351,7 @@ Feature: ML Functions And wait load page When click on cell with row index 1 in "name" column in "Functions_Table" table on "ML_Functions" wizard And wait load page - Then verify redirection from "projects/default/functions/INVALID/latest/overview" to "projects/default/functions" + Then verify redirection from "projects/default/functions/INVALID/latest/overview?dates=anyTime" to "projects/default/functions?dates=anyTime" And wait load page And wait load page Then verify "Notification_Pop_Up" element visibility on "Notification_Popup" wizard diff --git a/tests/features/alertsMonitoring.feature b/tests/features/alertsMonitoring.feature index 2629585998..7ea7488fdc 100644 --- a/tests/features/alertsMonitoring.feature +++ b/tests/features/alertsMonitoring.feature @@ -76,6 +76,10 @@ Feature: Alerts Monitoring Page Then verify "Table_FilterBy_Button" element on "Alerts_Monitoring" wizard should display hover tooltip "Common_Tooltips"."FilterBy_Button_1" Then click on "Table_FilterBy_Button" element on "Alerts_Monitoring" wizard Then "Title" element on "FilterBy_Popup" should contains "Filter by" value + Then verify "Clear_Button" element visibility on "FilterBy_Popup" wizard + Then verify "Apply_Button" element visibility on "FilterBy_Popup" wizard + Then verify "Clear_Button" element on "FilterBy_Popup" wizard is enabled + Then verify "Apply_Button" element on "FilterBy_Popup" wizard is disabled Then verify "Project_Name_Filter_Dropdown" element visibility on "FilterBy_Popup" wizard Then verify "Project_Name_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" Then verify "Entity_Type_Filter_Dropdown" element visibility on "FilterBy_Popup" wizard @@ -93,10 +97,6 @@ Feature: Alerts Monitoring Page Then verify "Event_Type_Filter_Dropdown" element visibility on "FilterBy_Popup" wizard Then verify "Event_Type_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" Then verify "Event_Type_Filter_Dropdown" dropdown element on "FilterBy_Popup" wizard should contains "Dropdown_Options"."Event_Type_Endpoint_Filter_Options" - Then verify "Clear_Button" element visibility on "FilterBy_Popup" wizard - Then verify "Apply_Button" element visibility on "FilterBy_Popup" wizard - Then verify "Clear_Button" element on "FilterBy_Popup" wizard is enabled - Then verify "Apply_Button" element on "FilterBy_Popup" wizard is disabled Then click on breadcrumbs "projectsPage" label on "commonPagesHeader" wizard And wait load page Then verify "Monitoring_Container" element visibility in "Projects_Monitoring_Container" on "Projects" wizard diff --git a/tests/features/artifacts.feature b/tests/features/artifacts.feature index ea72d7720f..941178179d 100644 --- a/tests/features/artifacts.feature +++ b/tests/features/artifacts.feature @@ -33,7 +33,7 @@ Feature: Artifacts Page Then verify "Files_Table" element visibility on "Files" wizard Then verify "Register_File_Button" element visibility on "Files" wizard Then "Register_File_Button" element on "Files" should contains "Register artifact" value - Then verify "Table_Tree_Filter_Dropdown" dropdown element on "FilterBy_Popup" wizard should contains "Dropdown_Options"."Tag_Filer_Options" + Then verify "Table_Tree_Filter_Dropdown" dropdown element on "FilterBy_Popup" wizard should contains "Dropdown_Options"."Tag_Filer_Options_Main_Table" @MLA @passive @@ -317,7 +317,7 @@ Feature: Artifacts Page And wait load page Then verify "Table_FilterBy_Button" element on "Files" wizard should display hover tooltip "Common_Tooltips"."FilterBy_Button" Then click on "Table_FilterBy_Button" element on "Files" wizard - Then select "All tags" option in "Table_Tree_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard + Then select "test" option in "Table_Tree_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard Then click on "Apply_Button" element on "FilterBy_Popup" wizard And wait load page When click on cell with value "test-file" in "name" column in "Files_Table" table on "Files" wizard @@ -527,6 +527,7 @@ Feature: Artifacts Page And wait load page Then select "Download" option in action menu on "Modal_Transition_Popup" wizard And wait load page + And wait load page Then verify "Download_Pop_Up" element visibility on "Downloads_Popup" wizard And wait load page Then verify "Download_Pop_Up_Cross_Cancel_Button" element visibility on "Downloads_Popup" wizard @@ -577,6 +578,7 @@ Feature: Artifacts Page And wait load page And click on "MLRun_Logo" element on "commonPagesHeader" wizard And wait load page + And wait load page Then verify "Projects_Table" element visibility on "Projects" wizard @MLA @@ -845,6 +847,28 @@ Feature: Artifacts Page And wait load page Then click on "show_all_versions" option on "Files" wizard in "Files_Table" table with "images" value in "name" column with scroll "false" And wait load page + Then verify "History_Back_Button" element visibility on "Files" wizard + Then verify "Version_History_Title" element visibility on "Files" wizard + Then "Version_History_Title" element on "Files" should contains "Version history:" value + Then verify "Version_History_Model_Name" element visibility on "Files" wizard + Then "Version_History_Model_Name" element on "Files" should contains "images" value + Then verify "Table_Refresh_Button" element visibility on "Files" wizard + Then verify "Register_File_Button" element visibility on "Files" wizard + Then verify "Table_FilterBy_Button" element visibility on "Files" wizard + Then click on "Table_FilterBy_Button" element on "Files" wizard + And wait load page + Then verify "Title" element visibility on "FilterBy_Popup" wizard + Then verify "Table_Label_Filter_Input" element visibility on "FilterBy_Popup" wizard + Then verify "Table_Tree_Filter_Dropdown" element visibility on "FilterBy_Popup" wizard + Then verify "Table_Tree_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected attribute option value "All tags" + Then verify "Show_Iterations_Checkbox" element visibility on "FilterBy_Popup" wizard + Then "Show_Iterations_Checkbox" element should be unchecked on "FilterBy_Popup" wizard + Then verify "Clear_Button" element visibility on "FilterBy_Popup" wizard + Then verify "Clear_Button" element on "FilterBy_Popup" wizard is disabled + Then verify "Apply_Button" element visibility on "FilterBy_Popup" wizard + Then verify "Apply_Button" element on "FilterBy_Popup" wizard is disabled + Then click on "Table_FilterBy_Button" element on "Files" wizard + Then verify "Files_Table" element visibility on "Files" wizard Then click on "Register_File_Button" element on "Files" wizard Then verify if "Register_File_Popup" popup dialog appears Then type value "images" to "New_File_Name_Input" field on "Register_File_Popup" wizard @@ -868,6 +892,9 @@ Feature: Artifacts Page Then verify "Overview" tab is active in "Info_Pane_Tab_Selector" on "Files_Info_Pane" wizard Then verify "Overview_General_Headers" on "Files_Info_Pane" wizard should contains "Files_Info_Pane"."Overview_General_Headers" Then check "latest123456" value in "tag" column in "Overview_Table" table on "Files_Info_Pane" wizard + Then click on "Table_FilterBy_Button" element on "Files" wizard + And wait load page + Then verify "Table_Tree_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected attribute option value "All tags" @MLA @smoke diff --git a/tests/features/common-tools/common-consts.js b/tests/features/common-tools/common-consts.js index 7eb3ee7526..9bb10f8560 100644 --- a/tests/features/common-tools/common-consts.js +++ b/tests/features/common-tools/common-consts.js @@ -191,7 +191,9 @@ module.exports = { }, ML_Functions_Tab: { Common_Action_Menu_Options: ['Edit', 'View YAML', 'Delete'], - Serving_Action_Menu_Options: ['Edit', 'View YAML', 'Delete'] + Common_Action_Menu_Options_Demo: ['Edit', 'View YAML', 'Delete all versions'], + Serving_Action_Menu_Options: ['Edit', 'View YAML', 'Delete'], + Serving_Action_Menu_Options_Demo: ['Edit', 'View YAML', 'Delete all versions'] }, ML_Function_Info_Pane: { Initialized_State: 'Initialized', @@ -607,6 +609,7 @@ module.exports = { }, Dropdown_Options: { Tag_Filer_Options: ['All tags', 'latest'], + Tag_Filer_Options_Main_Table: ['latest'], Status_Filter_Options: ['All', 'Completed', 'Running', 'Pending', 'Error', 'Aborted'], Entity_Type_Filter_Options: ['All', 'Job', 'Endpoint', 'Application'], Severity_Filter_Options: ['All', 'High', 'Medium', 'Low'], diff --git a/tests/features/common/actions/dropdown.action.js b/tests/features/common/actions/dropdown.action.js index 1c9fdd2fcc..3b3c36a2ee 100644 --- a/tests/features/common/actions/dropdown.action.js +++ b/tests/features/common/actions/dropdown.action.js @@ -79,6 +79,11 @@ const action = { const txt = await element.getText() expect(txt).equal(option) }, + checkDropdownSelectedOptionWithAttribute: async function(driver, dropdown, option) { + const element = await driver.findElement(dropdown.open_button) + const attributeTxt = await element.getAttribute('value') + expect(attributeTxt).equal(option) + }, checkDropdownOptions: async function(driver, dropdown, values) { const options = await getOptionValues(driver, dropdown.options) const diff = differenceWith(options, values, isEqual) diff --git a/tests/features/common/page-objects/commonPagesHeader.po.js b/tests/features/common/page-objects/commonPagesHeader.po.js index 10db9e33c1..55b8480907 100644 --- a/tests/features/common/page-objects/commonPagesHeader.po.js +++ b/tests/features/common/page-objects/commonPagesHeader.po.js @@ -58,7 +58,7 @@ module.exports = { '[data-testid="nav-link-project-settings"] .nav-link__button svg' ), Pin_Quick_Link_Button: By.css( - '.navbar .navbar__body .tooltip-wrapper button.round-icon-cp__circle' + '.navbar .navbar__pin-icon [data-testid="navabr-pin-tooltip-wrapper"]' ), Navigation_Bar: By.css('.ml-app .navbar'), Project_Monitoring_Button: By.css('#monitor > span'), @@ -83,10 +83,10 @@ module.exports = { Jobs_And_Workflows_Icon: By.css('#jobs > svg'), ML_Functions_Button: By.css('#ml-functions > span'), ML_Functions_Icon: By.css('#ml-functions > svg'), - Real_Time_Functions_Button: By.css('.ml-app .navbar .navbar__content .navbar-links .nav-link:nth-of-type(9) span'), - Real_Time_Functions_Icon: By.css('.ml-app .navbar .navbar__content .navbar-links .nav-link:nth-of-type(9) svg'), - API_Gateways_Button: By.css('.ml-app .navbar .navbar__content .navbar-links .nav-link:nth-of-type(10) span'), - API_Gateways_Icon: By.css('.ml-app .navbar .navbar__content .navbar-links .nav-link:nth-of-type(10) svg'), + Real_Time_Functions_Button: By.css('.ml-app .navbar .navbar-links [data-testid="nav-link-real-time-functions"] span'), + Real_Time_Functions_Icon: By.css('.ml-app .navbar .navbar-links [data-testid="nav-link-real-time-functions"] svg'), + API_Gateways_Button: By.css('.ml-app .navbar .navbar-links [data-testid="nav-link-api-gateways"] span'), + API_Gateways_Icon: By.css('.ml-app .navbar .navbar-links [data-testid="nav-link-api-gateways"] svg'), Alerts_Button: By.css('[data-testid="nav-link-alerts"] .nav-link__label'), Alerts_Icon: By.css('[data-testid="nav-link-alerts"] svg'), General_Info_Quick_Panel: By.css('.ml-app .navbar .navbar__body'), diff --git a/tests/features/common/page-objects/interactive-popup.po.js b/tests/features/common/page-objects/interactive-popup.po.js index 66ba6a4c30..213a3bc0cd 100644 --- a/tests/features/common/page-objects/interactive-popup.po.js +++ b/tests/features/common/page-objects/interactive-popup.po.js @@ -645,8 +645,8 @@ const commonProjectFilterInput = inputGroup( const commonTableTreeFilterDropdown = dropdownComponent( generateDropdownGroup( - '#overlay_container .form-tag-filter .form-tag-filter__input-wrapper', - '.form-tag-filter__dropdown-button', + '.filters-wizard .form-tag-filter', + '.form-tag-filter__input-wrapper input', '.form-tag-filter__dropdown .form-tag-filter__dropdown-item' ) ) diff --git a/tests/features/common/page-objects/project-settings.po.js b/tests/features/common/page-objects/project-settings.po.js index 87c1f0166c..31c68c8bab 100644 --- a/tests/features/common/page-objects/project-settings.po.js +++ b/tests/features/common/page-objects/project-settings.po.js @@ -29,11 +29,11 @@ const tabSelector = { root: '.content-menu', header: {}, body: { - root: '.content-menu__list', + root: '.content-menu__tabs', row: { - root: '.content-menu__item', + root: '.content-menu__tab', fields: { - key: 'a' + key: '' } } } diff --git a/tests/features/common/page-objects/project.po.js b/tests/features/common/page-objects/project.po.js index 47784b2537..22cab8706f 100644 --- a/tests/features/common/page-objects/project.po.js +++ b/tests/features/common/page-objects/project.po.js @@ -310,7 +310,7 @@ module.exports = { Alerts_Stats_Total_Number: By.css('.main-info__statistics-section_right .stats-card:nth-of-type(2) [data-testid="alerts_total_counter"] .stats__counter'), Alerts_Stats_Endpoint_Number: By.css('.main-info__statistics-section_right .stats-card:nth-of-type(2) [data-testid="alerts_endpoint_counter"] .stats__counter'), Alerts_Stats_Jobs_Number: By.css('.main-info__statistics-section_right .stats-card:nth-of-type(2) [data-testid="alerts_jobs_counter"] .stats__counter'), - Alerts_Stats_Application_Number: By.css('.main-info__statistics-section_right .stats-card:nth-of-type(2) [data-testid="alerts_application_counter"] .stats__counter'), + Alerts_Stats_Application_Number: By.css('.main-info__statistics-section_right .stats-card:nth-of-type(2) [data-testid="alerts_application_counter stats__counter-large"] .stats__counter'), Jobs_Info_Card_Statistics: commonTable(generalInfoJobsCardStat), Real_Time_Functions_Card_Statistics: commonTable( generalInfoRealTimeFunctionsCardStat diff --git a/tests/features/common/page-objects/projects.po.js b/tests/features/common/page-objects/projects.po.js index b9b3fc3381..7e261373ac 100644 --- a/tests/features/common/page-objects/projects.po.js +++ b/tests/features/common/page-objects/projects.po.js @@ -271,7 +271,7 @@ module.exports = { '.stats-card:nth-of-type(4) [data-testid="alerts_jobs_counter"] .stats__subtitle' ), Total_Application_Counter_Number: By.css( - '.stats-card:nth-of-type(4) [data-testid="alerts_application_counter"] .stats__counter' + '.stats-card:nth-of-type(4) [data-testid="alerts_application_counter stats__counter-large"] .stats__counter' ), Total_Application_Counter_Title: By.css( '.stats-card:nth-of-type(4) [data-testid="alerts_application_counter"] .stats__subtitle' diff --git a/tests/features/datasets.feature b/tests/features/datasets.feature index ad1dedc5a4..1527a07436 100644 --- a/tests/features/datasets.feature +++ b/tests/features/datasets.feature @@ -36,7 +36,7 @@ Feature: Datasets Page Then "Title" element on "FilterBy_Popup" should contains "Filter by" value Then verify "Table_Label_Filter_Input" element visibility on "FilterBy_Popup" wizard Then verify "Table_Tree_Filter_Dropdown" element visibility on "FilterBy_Popup" wizard - Then verify "Table_Tree_Filter_Dropdown" dropdown element on "FilterBy_Popup" wizard should contains "Dropdown_Options"."Tag_Filer_Options" + Then verify "Table_Tree_Filter_Dropdown" dropdown element on "FilterBy_Popup" wizard should contains "Dropdown_Options"."Tag_Filer_Options_Main_Table" Then click on "Title" element on "FilterBy_Popup" wizard Then verify "Show_Iterations_Checkbox" element visibility on "FilterBy_Popup" wizard Then "Checkbox_Label" element on "FilterBy_Popup" should contains "Show best iteration only" value @@ -714,6 +714,28 @@ Feature: Datasets Page And wait load page Then click on "show_all_versions" option on "Datasets" wizard in "Datasets_Table" table with "cleaned_data" value in "name" column with scroll "false" And wait load page + Then verify "History_Back_Button" element visibility on "Datasets" wizard + Then verify "Version_History_Title" element visibility on "Datasets" wizard + Then "Version_History_Title" element on "Datasets" should contains "Version history:" value + Then verify "Version_History_Model_Name" element visibility on "Datasets" wizard + Then "Version_History_Model_Name" element on "Datasets" should contains "cleaned_data" value + Then verify "Table_Refresh_Button" element visibility on "Datasets" wizard + Then verify "Register_Dataset_Button" element visibility on "Datasets" wizard + Then verify "Table_FilterBy_Button" element visibility on "Datasets" wizard + Then click on "Table_FilterBy_Button" element on "Datasets" wizard + And wait load page + Then verify "Title" element visibility on "FilterBy_Popup" wizard + Then verify "Table_Label_Filter_Input" element visibility on "FilterBy_Popup" wizard + Then verify "Table_Tree_Filter_Dropdown" element visibility on "FilterBy_Popup" wizard + Then verify "Table_Tree_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected attribute option value "All tags" + Then verify "Show_Iterations_Checkbox" element visibility on "FilterBy_Popup" wizard + Then "Show_Iterations_Checkbox" element should be unchecked on "FilterBy_Popup" wizard + Then verify "Clear_Button" element visibility on "FilterBy_Popup" wizard + Then verify "Clear_Button" element on "FilterBy_Popup" wizard is disabled + Then verify "Apply_Button" element visibility on "FilterBy_Popup" wizard + Then verify "Apply_Button" element on "FilterBy_Popup" wizard is disabled + Then click on "Table_FilterBy_Button" element on "Datasets" wizard + Then verify "Datasets_Table" 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 "cleaned_data" to "Name_Input" field on "Register_Dataset" wizard @@ -1293,10 +1315,6 @@ Feature: Datasets Page Then verify that 9 row elements are displayed in "Datasets_Table" on "Datasets" wizard Then click on "Cross_Close_Button" element on "Datasets_Info_Pane" wizard Then verify that 9 row elements are displayed in "Datasets_Table" on "Datasets" wizard - Then click on "Table_FilterBy_Button" element on "Datasets" wizard - Then select "All tags" option in "Table_Tree_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard - Then click on "Apply_Button" element on "FilterBy_Popup" wizard - And wait load page Then check "expand_btn" not presented in "Datasets_Table" on "Datasets" wizard Then verify that 9 row elements are displayed in "Datasets_Table" on "Datasets" wizard Then click on cell with row index 1 in "name" column in "Datasets_Table" table on "Datasets" wizard @@ -1360,11 +1378,9 @@ Feature: Datasets Page 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 And wait load page @@ -1374,9 +1390,6 @@ Feature: Datasets Page 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 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 @@ -1414,11 +1427,6 @@ Feature: Datasets 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 wait load page - Then verify "Table_FilterBy_Button" element visibility on "Datasets" wizard - Then click on "Table_FilterBy_Button" element on "Datasets" wizard - Then select "All tags" option in "Table_Tree_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard - Then click on "Apply_Button" element on "FilterBy_Popup" 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 diff --git a/tests/features/documents.feature b/tests/features/documents.feature index 252c28ad00..a475a5fbdc 100644 --- a/tests/features/documents.feature +++ b/tests/features/documents.feature @@ -34,7 +34,7 @@ Feature: Documents Page Then "Title" element on "FilterBy_Popup" should contains "Filter by" value Then verify "Table_Label_Filter_Input" element visibility on "FilterBy_Popup" wizard Then verify "Table_Tree_Filter_Dropdown" element visibility on "FilterBy_Popup" wizard - Then verify "Table_Tree_Filter_Dropdown" dropdown element on "FilterBy_Popup" wizard should contains "Dropdown_Options"."Tag_Filer_Options" + Then verify "Table_Tree_Filter_Dropdown" dropdown element on "FilterBy_Popup" wizard should contains "Dropdown_Options"."Tag_Filer_Options_Main_Table" Then click on "Title" element on "FilterBy_Popup" wizard Then verify "Show_Iterations_Checkbox" element visibility on "FilterBy_Popup" wizard Then "Checkbox_Label" element on "FilterBy_Popup" should contains "Show best iteration only" value diff --git a/tests/features/featureStore.feature b/tests/features/featureStore.feature index 971e51b78b..1e7025702a 100644 --- a/tests/features/featureStore.feature +++ b/tests/features/featureStore.feature @@ -218,6 +218,7 @@ Feature: Feature Store Page And select "tab" with "Feature store" value in breadcrumbs menu And wait load page And select "Feature Vectors" tab in "Feature_Store_Tab_Selector" on "Feature_Store_Feature_Sets_Tab" wizard + And wait load page Then verify "Feature Vectors" tab is active in "Feature_Store_Tab_Selector" on "Feature_Store_Features_Vectors_Tab" wizard When click on cell with row index 1 in "name" column in "Feature_Vectors_Table" table on "Feature_Store_Features_Vectors_Tab" wizard Then verify "Header" element visibility on "Feature_Vectors_Info_Pane" wizard @@ -255,6 +256,7 @@ Feature: Feature Store Page And click on cell with value "Feature store" in "link" column in "General_Info_Quick_Links" table on "commonPagesHeader" wizard And wait load page And select "Feature Vectors" tab in "Feature_Store_Tab_Selector" on "Feature_Store_Feature_Sets_Tab" wizard + And wait load page Then verify "Feature Vectors" tab is active in "Feature_Store_Tab_Selector" on "Feature_Store_Features_Vectors_Tab" wizard Then click on "Table_FilterBy_Button" element on "Feature_Store_Features_Vectors_Tab" wizard When select "test-tag" option in "Table_Tree_Filter_Dropdown" filter dropdown on "FilterBy_Popup" wizard diff --git a/tests/features/jobsAndWorkflows.feature b/tests/features/jobsAndWorkflows.feature index 7603021614..30ead4cb8a 100644 --- a/tests/features/jobsAndWorkflows.feature +++ b/tests/features/jobsAndWorkflows.feature @@ -438,8 +438,10 @@ Feature: Jobs and workflows Then "Auto_Refresh_Checkbox" element should be unchecked on "Jobs_Monitor_Tab" wizard Then check "Auto_Refresh_Checkbox" element on "Jobs_Monitor_Tab" wizard Then "Auto_Refresh_Checkbox" element should be checked on "Jobs_Monitor_Tab" wizard - When pick up "Custom range" from "11/07/2021 18:00" to "11/08/2021 18:00" in "Date_Time_Picker" via "Date_Picker_Filter_Dropdown" on "Jobs_Monitor_Tab" wizard - Then verify from "11/07/2021 18:00" to "11/08/2021 18:00" filter band in "Custom_Range_Filter_Dropdown" filter dropdown on "Jobs_Monitor_Tab" wizard + When pick up "Custom range" from "11/07/2021 17:00" to "11/08/2021 17:00" in "Date_Time_Picker" via "Date_Picker_Filter_Dropdown" on "Jobs_Monitor_Tab" wizard + And wait load page + Then verify from "11/07/2021 17:00" to "11/08/2021 17:00" filter band in "Custom_Range_Filter_Dropdown" filter dropdown on "Jobs_Monitor_Tab" wizard + And wait load page Then value in "datetime" column in "Jobs_Monitor_Table" on "Jobs_Monitor_Tab" wizard should be from "11/07/2021 18:00" to "11/08/2021 18:00" @MLJW @@ -1478,9 +1480,6 @@ Feature: Jobs and workflows And wait load page Then click on "Table_Refresh_Button" element on "Schedule_Monitor_Tab" wizard And wait load page - And wait load page - Then click on "Table_Refresh_Button" element on "Schedule_Monitor_Tab" wizard - And wait load page Then click on cell with row index 2 in "lastRun" column in "Schedule_Monitor_Table" table on "Schedule_Monitor_Tab" wizard And wait load page Then verify if "Modal_Transition_Popup" popup dialog appears @@ -2843,6 +2842,7 @@ Feature: Jobs and workflows And hover "MLRun_Logo" component on "commonPagesHeader" wizard And wait load page And select "Monitor Workflows" tab in "Jobs_Tab_Selector" on "Jobs_Monitor_Tab" wizard + And wait load page When select "Any time" option in "Date_Picker_Filter_Dropdown" filter dropdown on "Jobs_Monitor_Tab" wizard And wait load page Then value in "status" column with "tooltip" in "Workflows_Monitor_Table" on "Workflows_Monitor_Tab" wizard should contains "Completed" diff --git a/tests/features/models.feature b/tests/features/models.feature index 882a1a8ba7..f1594e4d89 100644 --- a/tests/features/models.feature +++ b/tests/features/models.feature @@ -31,7 +31,7 @@ Feature: Models Page Then click on "Table_FilterBy_Button" element on "Models" wizard Then verify "Table_Label_Filter_Input" element visibility on "FilterBy_Popup" wizard Then verify "Table_Tree_Filter_Dropdown" element visibility on "FilterBy_Popup" wizard - Then verify "Table_Tree_Filter_Dropdown" dropdown element on "FilterBy_Popup" wizard should contains "Dropdown_Options"."Tag_Filer_Options" + Then verify "Table_Tree_Filter_Dropdown" dropdown element on "FilterBy_Popup" wizard should contains "Dropdown_Options"."Tag_Filer_Options_Main_Table" Then verify "Show_Iterations_Checkbox" element visibility on "FilterBy_Popup" wizard Then verify "Table_Refresh_Button" element visibility on "Models" wizard Then verify "Models_Table" element visibility on "Models" wizard @@ -1130,6 +1130,7 @@ Feature: Models Page Then click on "Notification_Pop_Up_Cross_Close_Button" element on "Notification_Popup" wizard When click on cell with row index 1 in "name" column in "Models_Table" table on "Models" wizard And wait load page + And wait load page Then select "Preview" tab in "Info_Pane_Tab_Selector" on "Models_Info_Pane" wizard And wait load page When select "Model Endpoints" tab in "Models_Tab_Selector" on "Models" wizard @@ -1154,7 +1155,14 @@ Feature: Models Page And wait load page Then verify redirection from "projects/default/models/real-time-pipelines/pipeline/INVALID" to "projects/default/models/real-time-pipelines" Then verify redirection from "projects/INVALID/models/real-time-pipelines" to "projects" - + And wait load page + And wait load page + Then verify if "Notification_Popup" popup dialog appears + Then verify "Notification_Pop_Up" element visibility on "Notification_Popup" wizard + Then "Notification_Pop_Up" element on "Notification_Popup" should contains "This project does not exist" value + 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 + @MLM @smoke Scenario: MLM033 - Check active/highlited items with details panel on Model Endpoints tab @@ -1378,8 +1386,27 @@ Feature: Models Page Then click on "show_all_versions" option on "Models" wizard in "Models_Table" table with "transaction_fraud_xgboost" value in "name" column with scroll "false" And wait load page Then verify "Table_FilterBy_Button" element on "Models" wizard should display hover tooltip "Common_Tooltips"."FilterBy_Button" + Then verify "History_Back_Button" element visibility on "Models" wizard + Then verify "Version_History_Title" element visibility on "Models" wizard + Then "Version_History_Title" element on "Models" should contains "Version history:" value + Then verify "Version_History_Model_Name" element visibility on "Models" wizard + Then "Version_History_Model_Name" element on "Models" should contains "transaction_fraud_xgboost" value + Then verify "Table_Refresh_Button" element visibility on "Models" wizard + Then verify "Table_FilterBy_Button" element visibility on "Models" wizard Then click on "Table_FilterBy_Button" element on "Models" wizard - Then "Version_Tag_Value" element on "FilterBy_Popup" should contains "All" attribute value + And wait load page + Then verify "Title" element visibility on "FilterBy_Popup" wizard + Then verify "Table_Label_Filter_Input" element visibility on "FilterBy_Popup" wizard + Then verify "Table_Tree_Filter_Dropdown" element visibility on "FilterBy_Popup" wizard + Then verify "Table_Tree_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected attribute option value "All tags" + Then verify "Show_Iterations_Checkbox" element visibility on "FilterBy_Popup" wizard + Then "Show_Iterations_Checkbox" element should be unchecked on "FilterBy_Popup" wizard + Then verify "Clear_Button" element visibility on "FilterBy_Popup" wizard + Then verify "Clear_Button" element on "FilterBy_Popup" wizard is disabled + Then verify "Apply_Button" element visibility on "FilterBy_Popup" wizard + Then verify "Apply_Button" element on "FilterBy_Popup" wizard is disabled + Then click on "Table_FilterBy_Button" element on "Models" wizard + Then verify "Models_Table" element visibility on "Models" wizard When click on cell with row index 2 in "name" column in "Models_Table" table on "Models" wizard And wait load page When save to context "versionHistoryName" page value from "Version_History_Model_Name" element on "Models" wizard diff --git a/tests/features/projectMonitoring.feature b/tests/features/projectMonitoring.feature index d8c6753399..5ccba9ae2a 100644 --- a/tests/features/projectMonitoring.feature +++ b/tests/features/projectMonitoring.feature @@ -62,7 +62,6 @@ Feature: Project Monitoring Page Then verify "Feature_Store_Button" element visibility on "commonPagesHeader" wizard Then verify "Datasets_Button" element visibility on "commonPagesHeader" wizard Then verify "Documents_Button" element visibility on "commonPagesHeader" wizard - Then verify "LLM_Prompts_Button" element visibility on "commonPagesHeader" wizard Then verify "Artifacts_Button" element visibility on "commonPagesHeader" wizard Then verify "Models_Button" element visibility on "commonPagesHeader" wizard Then verify "Monitoring_App_Button" element visibility on "commonPagesHeader" wizard @@ -85,15 +84,13 @@ Feature: Project Monitoring Page Then verify "Feature_Store_Icon" element visibility on "commonPagesHeader" wizard Then verify "Datasets_Button" element invisibility on "commonPagesHeader" wizard Then verify "Datasets_Icon" element visibility on "commonPagesHeader" wizard - Then verify "Documents_Button" element visibility on "commonPagesHeader" wizard + Then verify "Documents_Button" element invisibility on "commonPagesHeader" wizard Then verify "Documents_Icon" element visibility on "commonPagesHeader" wizard - Then verify "LLM_Prompts_Button" element visibility on "commonPagesHeader" wizard - Then verify "LLM_Prompts_Icon" element visibility on "commonPagesHeader" wizard Then verify "Artifacts_Button" element invisibility on "commonPagesHeader" wizard Then verify "Artifacts_Icon" element visibility on "commonPagesHeader" wizard Then verify "Models_Button" element invisibility on "commonPagesHeader" wizard Then verify "Models_Icon" element visibility on "commonPagesHeader" wizard - Then verify "Monitoring_App_Button" element visibility on "commonPagesHeader" wizard + Then verify "Monitoring_App_Button" element invisibility on "commonPagesHeader" wizard Then verify "Monitoring_App_Icon" element visibility on "commonPagesHeader" wizard Then verify "Jobs_And_Workflows_Button" element invisibility on "commonPagesHeader" wizard Then verify "Jobs_And_Workflows_Icon" element visibility on "commonPagesHeader" wizard @@ -149,6 +146,12 @@ Feature: Project Monitoring Page Then verify "Quick_actions_Active" not input element on "commonPagesHeader" wizard is active Then click on "Project_Monitoring_Second_Instance" element on "commonPagesHeader" wizard Then verify "Project_Monitoring_Active" not input element on "commonPagesHeader" wizard is active + #check visibility of menu buttons in demo mode + When turn on demo mode with query params "false" + And wait load page + And wait load page + Then verify "LLM_Prompts_Button" element visibility on "commonPagesHeader" wizard + Then verify "LLM_Prompts_Icon" element visibility on "commonPagesHeader" wizard @MLPM @passive @@ -160,6 +163,7 @@ Feature: Project Monitoring Page And wait load page And click on "MLRun_Logo" element on "commonPagesHeader" wizard And wait load page + And wait load page Then verify "Projects_Table" element visibility on "Projects" wizard @MLPM diff --git a/tests/features/quickActions.feature b/tests/features/quickActions.feature index 34181003a7..3ec06b0022 100644 --- a/tests/features/quickActions.feature +++ b/tests/features/quickActions.feature @@ -89,6 +89,7 @@ Feature: Quick actions Page Given open url And wait load page When turn on demo mode with query params "false" + 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 And hover "Project_Navigation_Toggler" component on "commonPagesHeader" wizard @@ -256,6 +257,7 @@ Feature: Quick actions Page Given open url And wait load page When turn on demo mode with query params "false" + And wait load page And click on row root with value "automation-test-1003" in "name" column in "Projects_Table" table on "Projects" wizard And wait load page And hover "Project_Navigation_Toggler" component on "commonPagesHeader" wizard @@ -566,7 +568,7 @@ Feature: Quick actions Page Then click on "Table_FilterBy_Button" element on "Datasets" wizard Then verify "Table_Label_Filter_Input" element visibility on "FilterBy_Popup" wizard Then verify "Table_Tree_Filter_Dropdown" element visibility on "FilterBy_Popup" wizard - Then verify "Table_Tree_Filter_Dropdown" dropdown element on "FilterBy_Popup" wizard should contains "Dropdown_Options"."Tag_Filer_Options" + Then verify "Table_Tree_Filter_Dropdown" dropdown element on "FilterBy_Popup" wizard should contains "Dropdown_Options"."Tag_Filer_Options_Main_Table" Then verify "Table_Refresh_Button" element visibility on "Datasets" wizard @MLPH @@ -704,6 +706,7 @@ Feature: Quick actions Page Then verify "Train_Model_Button" element visibility on "Models" wizard Then "Train_Model_Button" element on "Models" should contains "Train model" value When turn on demo mode with query params "true" + And wait load page Then verify "Register_Model_Button" element visibility on "Models" wizard Then "Register_Model_Button" element on "Models" should contains "Register model" value diff --git a/tests/features/step-definitions/steps.js b/tests/features/step-definitions/steps.js index 86f27b58f5..fd47318b1d 100644 --- a/tests/features/step-definitions/steps.js +++ b/tests/features/step-definitions/steps.js @@ -62,6 +62,7 @@ import { checkDropdownContainsOptions, checkDropdownOptions, checkDropdownSelectedOption, + checkDropdownSelectedOptionWithAttribute, openDropdown, selectOptionInDropdown, selectOptionInDropdownWithoutCheck @@ -179,7 +180,7 @@ Then( const expectedUrl = `http://${test_url}:${test_port}/${expectedPath}` await navigateToPage(this.driver, invalidUrl) - await this.driver.sleep(250) + await this.driver.sleep(1000) const afterURL = await this.driver.getCurrentUrl() expect(expectedUrl).equal( @@ -748,6 +749,17 @@ When( } ) +Then( + 'verify {string} dropdown on {string} wizard selected attribute option value {string}', + async function(dropdownName, wizardName, optionValue) { + await checkDropdownSelectedOptionWithAttribute( + this.driver, + pageObjects[wizardName][dropdownName], + optionValue + ) + } +) + Then( 'verify {string} dropdown on {string} wizard selected option value {string}', async function(dropdownName, wizardName, optionValue) { diff --git a/tests/mockServer/data/alerts.json b/tests/mockServer/data/alerts.json index 308a85c7ab..c59b57c0c8 100644 --- a/tests/mockServer/data/alerts.json +++ b/tests/mockServer/data/alerts.json @@ -317,7 +317,7 @@ "name": "alert-name-uqbxb-proj-default", "project": "default", "severity": "high", - "activation_time": "2025-03-30T15:50:55.190000+00:00", + "activation_time": "2025-05-31T15:50:55.190000+00:00", "entity_id": "a7c95783e6a726a1a233e581ea898ba33fa7e342.rujmfi.result.data_drift_test", "entity_kind": "model-endpoint-result", "criteria": { @@ -343,7 +343,7 @@ "name": "alert-name-jukmn-proj-default", "project": "default", "severity": "high", - "activation_time": "2025-03-30T15:50:54.207000+00:00", + "activation_time": "2025-05-31T15:50:54.207000+00:00", "entity_id": "a7c95783e6a726a1a233e581ea898ba33fa7e342.hskoyl.result.data_drift_test", "entity_kind": "model-endpoint-result", "criteria": { @@ -369,7 +369,7 @@ "name": "alert-name-uqbxb-proj-default", "project": "default", "severity": "high", - "activation_time": "2025-03-30T15:48:57.907000+00:00", + "activation_time": "2025-05-31T15:48:57.907000+00:00", "entity_id": "a7c95783e6a726a1a233e581ea898ba33fa7e342.rujmfi.result.data_drift_test", "entity_kind": "model-endpoint-result", "criteria": { @@ -395,7 +395,7 @@ "name": "alert-name-jukmn-proj-default", "project": "default", "severity": "high", - "activation_time": "2025-03-30T15:48:56.440000+00:00", + "activation_time": "2025-05-31T15:48:56.440000+00:00", "entity_id": "a7c95783e6a726a1a233e581ea898ba33fa7e342.hskoyl.result.data_drift_test", "entity_kind": "model-endpoint-result", "criteria": {