diff --git a/tests/features/MLFunction.feature b/tests/features/MLFunction.feature index ff3a114412..b876bbe46b 100644 --- a/tests/features/MLFunction.feature +++ b/tests/features/MLFunction.feature @@ -1110,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 8 in "expand_btn" column in "Functions_Table" table on "ML_Functions" wizard + Then click on cell with row index 9 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, 10:31:51 AM" value in "name" column Then verify if "View_YAML" popup dialog appears diff --git a/tests/features/common-tools/common-consts.js b/tests/features/common-tools/common-consts.js index 940d46b3de..2061db0cc6 100644 --- a/tests/features/common-tools/common-consts.js +++ b/tests/features/common-tools/common-consts.js @@ -96,6 +96,7 @@ export default { }, Feature_Vectors_Info_Pane: { Tab_List: ['Overview', 'Requested Features', 'Analysis'], + Tab_List_Extended: ['Overview', 'Requested Features', 'Returned Features', 'Statistics', 'Analysis'], Overview_General_Headers: [ 'Description:', 'Labels:', @@ -428,7 +429,8 @@ export default { Expand_All_Button: 'Expand all', In_Process_Jobs: 'Aborting, Pending, Pending retry, Running', Running_Tip: 'Running, Terminating', - Failed_Tip: 'Failed', + Running: 'Running', + Failed_Tip: 'Error, Unhealthy', Failed_Jobs: 'Aborted, Error', Failed_Worflows: 'Error, Failed', Succeeded: 'Completed', diff --git a/tests/features/common/page-objects/info-pane.po.js b/tests/features/common/page-objects/info-pane.po.js index 4e1e87ef52..61e15d5fc6 100644 --- a/tests/features/common/page-objects/info-pane.po.js +++ b/tests/features/common/page-objects/info-pane.po.js @@ -157,6 +157,7 @@ const infoPaneOverviewProducerHeaders = { fields: { key: '.details-item__header', link: '.details-item__data .link', + producer_link: '.details-item__link', value: '.details-item__data' } } @@ -313,7 +314,7 @@ const infoPaneDriftHeaders = { } const filesInfoSourcesTable = { - root: '.info-sources .info-sources-table', + root: '.info-sources', header: { root: '.info-sources-table__header', sorters: { @@ -323,10 +324,12 @@ const filesInfoSourcesTable = { }, body: { row: { - root: '.info-sources-table__content', + root: '.info-sources__table', fields: { - name: '.info-sources-table__content-key .data-ellipsis', - path: '.info-sources-table__content-value' + name_key: '.info-sources__table-row:nth-of-type(1) .info-sources__table-key', + name_value: '.info-sources__table-row:nth-of-type(1) .info-sources__table-value', + path_key: '.info-sources__table-row:nth-of-type(2) .info-sources__table-key', + path_value: '.info-sources__table-row:nth-of-type(2) .info-sources__table-value' } } } diff --git a/tests/features/common/page-objects/interactive-popup.po.js b/tests/features/common/page-objects/interactive-popup.po.js index 5d261a96e8..0333ae1ac7 100644 --- a/tests/features/common/page-objects/interactive-popup.po.js +++ b/tests/features/common/page-objects/interactive-popup.po.js @@ -810,7 +810,10 @@ export default { Title_Function_Log_Info: By.css('.item-info > div > h3:nth-of-type(2)'), Content_Function_Log_Info: By.css('.item-info .table__item-logs:nth-of-type(2)'), Logs_Text_container: By.css('#overlay_container .table__item .table__item-logs-content'), - Logs_Refresh_Button: By.css('#overlay_container .table__item .logs-refresh') + Logs_Refresh_Button: By.css('#overlay_container .table__item .logs-refresh'), + Requested_Features_Table: By.css('.item-info .item-requested-features__table'), + Returned_Features_Table: By.css('.item-info .details-metadata__table'), + Statistics_Table: By.css('.item-info #DETAILS_STATISTICS_TABLE_ID') }, modalWizardForm: { Title: By.css('.modal .modal__header-title'), @@ -1734,6 +1737,13 @@ export default { ), Type_Filter_Element: By.css('[data-testid="type-form-field-select"]'), Type_Filter_Dropdown: dropdownComponent( + generateDropdownGroup( + '[data-testid="type-form-field-select"]', + '[data-testid="select-header"]', + '.options-list .select__item:not(.hidden) .tooltip-wrapper' + ) + ), + Type_Filter_Dropdown_Schedule: dropdownComponent( generateDropdownGroup( '[data-testid="type-form-field-select"]', '[data-testid="select-header"]', diff --git a/tests/features/common/page-objects/models.po.js b/tests/features/common/page-objects/models.po.js index d298177acd..cbd7b82d4c 100644 --- a/tests/features/common/page-objects/models.po.js +++ b/tests/features/common/page-objects/models.po.js @@ -193,6 +193,7 @@ const realTimePipelinesTable = { ) }, name: '.table-body__cell:nth-of-type(1) a.data-ellipsis', + name_link: '.table-body__cell:nth-of-type(1) a .link', type: '.table-body__cell:nth-of-type(2) .data-ellipsis', function: '.table-body__cell:nth-of-type(3) .data-ellipsis', action_menu: { diff --git a/tests/features/common/page-objects/project.po.js b/tests/features/common/page-objects/project.po.js index a5569fff89..a77339ba33 100644 --- a/tests/features/common/page-objects/project.po.js +++ b/tests/features/common/page-objects/project.po.js @@ -52,10 +52,10 @@ const realtimeFunctionsNuclioTable = { root: '.project-data-card__header', sorters: { title: '.project-data-card__header-text a', - running_counter_number: '.project-data-card__statistics-item:nth-of-type(1) .project-data-card__statistics-value .tooltip-wrapper', + running_counter_number: '.project-data-card__statistics-item:nth-of-type(1) .project-data-card__statistics-value.statistics_running', running_counter_subtitle: '.project-data-card__statistics-item:nth-of-type(1) .project-data-card__statistics-label span', running_counter_icon: '.project-data-card__statistics-item:nth-of-type(1) .project-data-card__statistics-label i', - failed_counter_number: '.project-data-card__statistics-item:nth-of-type(2) .project-data-card__statistics-value .tooltip-wrapper', + failed_counter_number: '.project-data-card__statistics-item:nth-of-type(2) .project-data-card__statistics-value.statistics_failed', failed_counter_subtitle: '.project-data-card__statistics-item:nth-of-type(2) .project-data-card__statistics-label span', failed_counter_icon: '.project-data-card__statistics-item:nth-of-type(2) .project-data-card__statistics-label i', api_gateways_counter_number: '.project-data-card__statistics-item:nth-of-type(3) .project-data-card__statistics-value .tooltip-wrapper', diff --git a/tests/features/jobsAndWorkflows.feature b/tests/features/jobsAndWorkflows.feature index 0ad945f71e..c7ae1bedd5 100644 --- a/tests/features/jobsAndWorkflows.feature +++ b/tests/features/jobsAndWorkflows.feature @@ -430,6 +430,7 @@ Feature: Jobs and workflows And hover "MLRun_Logo" component on "commonPagesHeader" wizard And wait load page When pick up "Custom range" from "09/03/2021 00:00" to "09/04/2021 00:00" in "Date_Time_Picker" via "Date_Picker_Filter_Dropdown" on "Jobs_Monitor_Tab" wizard + And wait load page Then verify from "09/03/2021 00:00" to "09/04/2021 00:00" filter band in "Custom_Range_Filter_Dropdown" filter dropdown on "Jobs_Monitor_Tab" wizard And wait load page Then click on "Table_FilterBy_Button" element on "Jobs_Monitor_Tab" wizard diff --git a/tests/features/llmPrompts.feature b/tests/features/llmPrompts.feature index 6df7503c24..f2224ccb03 100644 --- a/tests/features/llmPrompts.feature +++ b/tests/features/llmPrompts.feature @@ -151,6 +151,9 @@ Feature: LLM prompts Page Then click on "Refresh_Button" element on "LLM_Prompts" wizard And wait load page Then value in "labels" column with "dropdowns" in "LLMPrompts_Table" on "LLM_Prompts" wizard should contains "language" in "Overlay" + Then type value "5" to "Search_By_Name_Filter_Input" field on "LLM_Prompts" wizard + Then click on "Refresh_Button" element on "LLM_Prompts" wizard + And wait load page Then click on "Table_FilterBy_Button" element on "LLM_Prompts" wizard Then type value "type=qa" to "Table_Label_Filter_Input" field on "FilterBy_Popup" wizard Then click on "Apply_Button" element on "FilterBy_Popup" wizard @@ -750,6 +753,7 @@ Feature: LLM prompts Page Then verify "Add_Tag_Popup" element visibility on "Add_Tag_Popup" wizard Then type value "system" to "Tag_Input" field on "Add_Tag_Popup" wizard Then click on "Add_Button" element on "Add_Tag_Popup" wizard + And wait load page Then verify if "Confirm_Popup" popup dialog appears Then "Title" element on "Confirm_Popup" should contains "Overwrite LLM prompt?" value Then verify "Cross_Cancel_Button" element visibility on "Confirm_Popup" wizard @@ -760,6 +764,11 @@ Feature: LLM prompts Page Then verify "Overwrite_Button" element visibility on "Confirm_Popup" wizard Then "Overwrite_Button" element on "Confirm_Popup" should contains "Overwrite" value When click on "Cancel_Button" element on "Confirm_Popup" wizard + When click on "Cancel_Button" element on "Add_Tag_Popup" wizard + Then verify if "Common_Popup" popup dialog appears + Then "Title" element on "Common_Popup" should contains "Are you sure?" value + Then "Description" element on "Common_Popup" should contains "All changes will be lost" value + Then click on "Confirm_Button" element on "Common_Popup" wizard Then select "Add a tag" option in action menu on "LLM_Prompts" wizard in "LLMPrompts_Table" table at row with "my_llm" value in "name" column And wait load page Then verify "Add_Tag_Popup" element visibility on "Add_Tag_Popup" wizard diff --git a/tests/features/models.feature b/tests/features/models.feature index f2190170e3..4b18a2520d 100644 --- a/tests/features/models.feature +++ b/tests/features/models.feature @@ -851,26 +851,103 @@ Feature: Models Page And wait load page Then verify "Header" element visibility on "Models_Info_Pane" wizard Then "Header" element on "Models_Info_Pane" should contains "test-model" value + Then click on "Table_FilterBy_Button" element on "Models" wizard + Then click on "Clear_Button" element on "FilterBy_Popup" wizard + And wait load page + When click on cell with value "train_model" in "name" column in "Models_Table" table on "Models" wizard + And wait load page + Then verify "Overview" tab is active in "Info_Pane_Tab_Selector" on "Models_Info_Pane" wizard + Then verify "Overview_Producer_Headers" on "Models_Info_Pane" wizard should contains "Models_Info_Pane"."Overview_Producer_Headers" + When click on cell with value "sk-project-admin/3d03c190ad57442099024be6bb8f5895-3" in "producer_link" column in "Overview_Producer_Headers" table on "Models_Info_Pane" wizard + And wait load page + Then verify if "Modal_Transition_Popup" popup dialog appears + Then verify "Title" element visibility on "Modal_Transition_Popup" wizard + Then "Title" element on "Modal_Transition_Popup" should contains "train" value + Then verify "Data_Status" element visibility on "Modal_Transition_Popup" wizard @MLM @passive @inProgress @smoke - Scenario: MLM028 - Check tab list compontnts on Model Item infopane + Scenario: MLM028 - Check Overview tab Sources components on Model Item infopane 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 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 "Models" in "link" column in "General_Info_Quick_Links" table on "commonPagesHeader" wizard And hover "MLRun_Logo" component on "commonPagesHeader" wizard And wait load page - When click on cell with row index 1 in "name" column in "Models_Table" table on "Models" wizard + When click on cell with value "transaction_fraud_adaboost" in "name" column in "Models_Table" table on "Models" wizard And wait load page Then verify "Info_Pane_Tab_Selector" element visibility on "Models_Info_Pane" wizard Then verify "Info_Pane_Tab_Selector" on "Models_Info_Pane" wizard should contains "Models_Info_Pane"."Tab_List_Extended" Then verify "Overview" tab is active in "Info_Pane_Tab_Selector" on "Models_Info_Pane" wizard Then verify "Overview_Sources_Headers" on "Models_Info_Pane" wizard should contains "Models_Info_Pane"."Overview_Sources_Headers" + Then check "dataset" value in "name_value" column in "Info_Sources_Table" table on "Models_Info_Pane" wizard + Then check "store://feature-vectors/churn-project-admin/transactions-fraud" value in "path_value" column in "Info_Sources_Table" table on "Models_Info_Pane" wizard + When click on cell with value "store://feature-vectors/churn-project-admin/transactions-fraud" in "path_value" column in "Info_Sources_Table" table on "Models_Info_Pane" wizard + And wait load page + Then verify if "Modal_Transition_Popup" popup dialog appears + Then verify "Title" element visibility on "Modal_Transition_Popup" wizard + Then "Title" element on "Modal_Transition_Popup" should contains "transactions-fraud" value + Then verify "Data_Status" element visibility on "Modal_Transition_Popup" wizard + Then verify "Refresh_Button" element visibility on "Modal_Transition_Popup" wizard + Then verify "Refresh_Button" element on "Modal_Transition_Popup" wizard should display hover tooltip "Common_Tooltips"."Refresh_Button" + Then click on "Refresh_Button" element on "Modal_Transition_Popup" wizard + And wait load page + Then verify "Refresh_Button" element visibility on "Modal_Transition_Popup" wizard + Then verify "Action_Menu" element visibility on "Modal_Transition_Popup" wizard + Then verify "Action_Menu" dropdown element on "Modal_Transition_Popup" wizard should contains "Common_Lists"."Action_Menu_List_Function_Transition_Popup" + Then select "View YAML" option in action menu on "Modal_Transition_Popup" wizard + And wait load page + Then verify if "View_YAML" popup dialog appears + 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 + And wait load page + Then verify "Tab_Selector" element visibility on "Modal_Transition_Popup" wizard + Then verify "Tab_Selector" on "Modal_Transition_Popup" wizard should contains "Feature_Vectors_Info_Pane"."Tab_List_Extended" + Then verify "Overview" tab is active in "Tab_Selector" on "Modal_Transition_Popup" wizard + Then verify "Overview_General_Headers" on "Modal_Transition_Popup" wizard should contains "Feature_Vectors_Info_Pane"."Overview_General_Headers" + And select "Requested Features" tab in "Tab_Selector" on "Modal_Transition_Popup" wizard + And wait load page + Then verify "Requested Features" tab is active in "Tab_Selector" on "Modal_Transition_Popup" wizard + Then verify "Requested_Features_Table" element visibility on "Modal_Transition_Popup" wizard + And select "Returned Features" tab in "Tab_Selector" on "Modal_Transition_Popup" wizard + And wait load page + Then verify "Returned Features" tab is active in "Tab_Selector" on "Modal_Transition_Popup" wizard + Then verify "Returned_Features_Table" element visibility on "Modal_Transition_Popup" wizard + Then select "Statistics" tab in "Tab_Selector" on "Modal_Transition_Popup" wizard + Then verify "Statistics" tab is active in "Tab_Selector" on "Modal_Transition_Popup" wizard + Then verify cell with "Statistics" value in "key" column in "Tab_Selector" table on "Modal_Transition_Popup" wizard should display "Label_Hint"."Models_Statistics" + Then verify "Statistics_Table" element visibility on "Modal_Transition_Popup" wizard + Then select "Analysis" tab in "Tab_Selector" on "Modal_Transition_Popup" wizard + Then verify "Analysis" tab is active in "Tab_Selector" on "Modal_Transition_Popup" wizard + And verify "No_Data_Message" element visibility on "commonPagesHeader" wizard + Then "No_Data_Message" component on "commonPagesHeader" should contains "No_Data_Message"."No_Data" + Then verify "Cross_Close_Button" element visibility on "Modal_Transition_Popup" wizard + Then click on "Cross_Close_Button" element on "Modal_Transition_Popup" wizard + And wait load page + Then verify "Info_Pane_Tab_Selector" element visibility on "Models_Info_Pane" wizard + Then verify "Info_Pane_Tab_Selector" on "Models_Info_Pane" wizard should contains "Models_Info_Pane"."Tab_List_Extended" + Then verify "Overview" tab is active in "Info_Pane_Tab_Selector" on "Models_Info_Pane" wizard + When click on cell with value "current-state_model" in "name" column in "Models_Table" table on "Models" wizard + And wait load page + Then verify "Header" element visibility on "Models_Info_Pane" wizard + Then "Header" element on "Models_Info_Pane" should contains "current-state_model" value + Then check "dataset" value in "name_value" column in "Info_Sources_Table" table on "Models_Info_Pane" wizard + Then check "/User/demos/customer-churn-prediction/data/pipeline/eaae138e-439a-47fa-93c6-ba0fe1dc3b79/encoded-data.csv" value in "path_value" column in "Info_Sources_Table" table on "Models_Info_Pane" wizard + When click on cell with value "/User/demos/customer-churn-prediction/data/pipeline/eaae138e-439a-47fa-93c6-ba0fe1dc3b79/encoded-data.csv" in "path_value" column in "Info_Sources_Table" table on "Models_Info_Pane" wizard + 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 "Copied to clipboard successfully" 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 + Then verify "Info_Pane_Tab_Selector" element visibility on "Models_Info_Pane" wizard + Then verify "Overview" tab is active in "Info_Pane_Tab_Selector" on "Models_Info_Pane" wizard @MLM @passive @@ -1039,8 +1116,9 @@ Feature: Models Page And select "Real-Time Pipelines" tab in "Models_Tab_Selector" on "Models" wizard And wait load page Then verify "Real-Time Pipelines" tab is active in "Models_Tab_Selector" on "Models" wizard - Then save to context "name" column and "href" attribute on 2 row from "Real_Time_Pipelines_Table" table on "Real_Time_Pipelines" wizard - When click on cell with row index 2 in "name" column in "Real_Time_Pipelines_Table" table on "Real_Time_Pipelines" wizard + Then save to context "name" column and "href" attribute on 3 row from "Real_Time_Pipelines_Table" table on "Real_Time_Pipelines" wizard + When click on cell with value "model-monitoring-stream" in "name_link" column in "Real_Time_Pipelines_Table" table on "Real_Time_Pipelines" wizard + And wait load page And wait load page Then compare current browser URL with test "href" context value Then verify "Real_Time_Pipelines_Graph" element visibility on "Real_Time_Pipelines" wizard @@ -1051,7 +1129,7 @@ Feature: Models Page Then verify "Overview_Headers" on "Real_Time_Pipeline_Pane" wizard should contains "Real_Time_Pipeline_Pane"."Overview_Headers" Then click on "Arrow_Back" element on "Real_Time_Pipeline_Pane" wizard And wait load page - Then click on cell with row index 2 in "function" column in "Real_Time_Pipelines_Table" table on "Real_Time_Pipelines" wizard + Then click on cell with row index 3 in "function" column in "Real_Time_Pipelines_Table" table on "Real_Time_Pipelines" wizard And wait load page Then verify if "Modal_Transition_Popup" popup dialog appears Then verify "Title" element visibility on "Modal_Transition_Popup" wizard @@ -1076,7 +1154,7 @@ Feature: Models Page Then verify "Cross_Close_Button" element visibility on "Modal_Transition_Popup" wizard Then click on "Cross_Close_Button" element on "Modal_Transition_Popup" wizard And wait load page - Then click on cell with row index 2 in "function" column in "Real_Time_Pipelines_Table" table on "Real_Time_Pipelines" wizard + Then click on cell with row index 3 in "function" column in "Real_Time_Pipelines_Table" table on "Real_Time_Pipelines" wizard And wait load page Then verify if "Modal_Transition_Popup" popup dialog appears Then verify "Tab_Selector" element visibility on "Modal_Transition_Popup" wizard @@ -1099,7 +1177,7 @@ Feature: Models Page Then click on "Cross_Close_Button" element on "Modal_Transition_Popup" wizard And wait load page Then verify "Real_Time_Pipelines_Table" element visibility on "Real_Time_Pipelines" wizard - Then click on cell with row index 1 in "name" column in "Real_Time_Pipelines_Table" table on "Real_Time_Pipelines" wizard + When click on cell with value "vizro" in "name_link" column in "Real_Time_Pipelines_Table" table on "Real_Time_Pipelines" wizard And wait load page And verify "No_Data_Message" element visibility on "commonPagesHeader" wizard Then "No_Data_Message" element on "commonPagesHeader" should contains "The ingestion function has no steps and therefore no graph." value diff --git a/tests/features/monitoringApp.feature b/tests/features/monitoringApp.feature index 5f0888de04..49944a1b22 100644 --- a/tests/features/monitoringApp.feature +++ b/tests/features/monitoringApp.feature @@ -67,7 +67,7 @@ Feature: Monitoring app Page Then "Apps_Status_Running_SubTitle" element on "Monitoring_App" should contains "Running" value Then verify "Apps_Status_Running_Counter" element visibility on "Monitoring_App" wizard Then verify "Apps_Status_Running_Tip" element visibility on "Monitoring_App" wizard - Then verify "Apps_Status_Running_Tip" element on "Monitoring_App" wizard should display hover tooltip "Common_Tooltips"."Running_Tip" + Then verify "Apps_Status_Running_Tip" element on "Monitoring_App" wizard should display hover tooltip "Common_Tooltips"."Running" Then verify "Apps_Status_Failed_SubTitle" element visibility on "Monitoring_App" wizard Then "Apps_Status_Failed_SubTitle" element on "Monitoring_App" should contains "Failed" value Then verify "Apps_Status_Failed_Counter" element visibility on "Monitoring_App" wizard diff --git a/tests/features/projectMonitoring.feature b/tests/features/projectMonitoring.feature index fd4f46e8fe..40d7177bd5 100644 --- a/tests/features/projectMonitoring.feature +++ b/tests/features/projectMonitoring.feature @@ -944,7 +944,7 @@ Feature: Project Monitoring Page Then verify "Date_Picker_Filter_Dropdown" dropdown on "Schedule_Monitor_Tab" wizard selected option value "Next 24 hours" Then verify "Table_FilterBy_Button" element visibility on "Schedule_Monitor_Tab" wizard Then click on "Table_FilterBy_Button" element on "Schedule_Monitor_Tab" wizard - Then verify "Type_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "All" + Then verify "Type_Filter_Dropdown_Schedule" dropdown on "FilterBy_Popup" wizard selected option value "All" Then click on "Type_Filter_Element" element on "FilterBy_Popup" wizard And wait load page Then "Type_All_Checkbox" element should be checked on "FilterBy_Popup" wizard @@ -971,7 +971,7 @@ Feature: Project Monitoring Page Then verify "Table_FilterBy_Button" element visibility on "Schedule_Monitor_Tab" wizard Then verify "Table_FilterBy_Button" element on "Schedule_Monitor_Tab" wizard should display hover tooltip "Common_Tooltips"."FilterBy_Button_1" Then click on "Table_FilterBy_Button" element on "Schedule_Monitor_Tab" wizard - Then verify "Type_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "5 items selected" + Then verify "Type_Filter_Dropdown_Schedule" dropdown on "FilterBy_Popup" wizard selected option value "5 items selected" Then click on "Type_Filter_Element" element on "FilterBy_Popup" wizard And wait load page Then "Type_All_Checkbox" element should be unchecked on "FilterBy_Popup" wizard @@ -998,7 +998,7 @@ Feature: Project Monitoring Page Then verify "Table_FilterBy_Button" element visibility on "Schedule_Monitor_Tab" wizard Then verify "Table_FilterBy_Button" element on "Schedule_Monitor_Tab" wizard should display hover tooltip "Common_Tooltips"."FilterBy_Button_1" Then click on "Table_FilterBy_Button" element on "Schedule_Monitor_Tab" wizard - Then verify "Type_Filter_Dropdown" dropdown on "FilterBy_Popup" wizard selected option value "Workflow" + Then verify "Type_Filter_Dropdown_Schedule" dropdown on "FilterBy_Popup" wizard selected option value "Workflow" Then click on "Type_Filter_Element" element on "FilterBy_Popup" wizard And wait load page Then "Type_All_Checkbox" element should be unchecked on "FilterBy_Popup" wizard diff --git a/tests/mockServer/data/featureVectors.json b/tests/mockServer/data/featureVectors.json index f5a3a35b77..cd973f5f91 100644 --- a/tests/mockServer/data/featureVectors.json +++ b/tests/mockServer/data/featureVectors.json @@ -7973,6 +7973,2341 @@ } } } - } + }, + { + "kind": "FeatureVector", + "metadata": { + "name": "transactions-fraud", + "project": "churn-project-admin", + "tag": "latest", + "labels": {}, + "updated": "2025-09-30T15:57:17.432089+00:00", + "created": "2025-09-30T15:56:50.695000", + "uid": null + }, + "spec": { + "description": "Predicting a fraudulent transaction", + "graph": { + "engine": "async", + "track_models": false + }, + "features": [ + "events.*", + "transactions.amount_max_2h", + "transactions.amount_sum_2h", + "transactions.amount_count_2h", + "transactions.amount_avg_2h", + "transactions.amount_max_12h", + "transactions.amount_sum_12h", + "transactions.amount_count_12h", + "transactions.amount_avg_12h", + "transactions.amount_max_24h", + "transactions.amount_sum_24h", + "transactions.amount_count_24h", + "transactions.amount_avg_24h", + "transactions.es_transportation_sum_14d", + "transactions.es_health_sum_14d", + "transactions.es_otherservices_sum_14d", + "transactions.es_food_sum_14d", + "transactions.es_hotelservices_sum_14d", + "transactions.es_barsandrestaurants_sum_14d", + "transactions.es_tech_sum_14d", + "transactions.es_sportsandtoys_sum_14d", + "transactions.es_wellnessandbeauty_sum_14d", + "transactions.es_hyper_sum_14d", + "transactions.es_fashion_sum_14d", + "transactions.es_home_sum_14d", + "transactions.es_travel_sum_14d", + "transactions.es_leisure_sum_14d", + "transactions.gender_F", + "transactions.gender_M", + "transactions.step", + "transactions.amount", + "transactions.timestamp_hour", + "transactions.timestamp_day_of_week" + ], + "label_feature": "labels.label" + }, + "status": { + "state": "created", + "label_column": "label", + "stats": { + "event_password_change": { + "count": 82092, + "mean": 0.38064610437070606, + "min": 0, + "25%": 0, + "50%": 0, + "75%": 1, + "max": 1, + "std": 0.4855486787827919, + "hist": [ + [ + 50844, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 31248 + ], + [ + 0, + 0.05, + 0.1, + 0.15000000000000002, + 0.2, + 0.25, + 0.30000000000000004, + 0.35000000000000003, + 0.4, + 0.45, + 0.5, + 0.55, + 0.6000000000000001, + 0.65, + 0.7000000000000001, + 0.75, + 0.8, + 0.8500000000000001, + 0.9, + 0.9500000000000001, + 1 + ] + ] + }, + "event_details_change": { + "count": 82092, + "mean": 0.2858743848365249, + "min": 0, + "25%": 0, + "50%": 0, + "75%": 1, + "max": 1, + "std": 0.4518326103856129, + "hist": [ + [ + 58624, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 23468 + ], + [ + 0, + 0.05, + 0.1, + 0.15000000000000002, + 0.2, + 0.25, + 0.30000000000000004, + 0.35000000000000003, + 0.4, + 0.45, + 0.5, + 0.55, + 0.6000000000000001, + 0.65, + 0.7000000000000001, + 0.75, + 0.8, + 0.8500000000000001, + 0.9, + 0.9500000000000001, + 1 + ] + ] + }, + "event_login": { + "count": 82092, + "mean": 0.3334795107927691, + "min": 0, + "25%": 0, + "50%": 0, + "75%": 1, + "max": 1, + "std": 0.47145904837053226, + "hist": [ + [ + 54716, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 27376 + ], + [ + 0, + 0.05, + 0.1, + 0.15000000000000002, + 0.2, + 0.25, + 0.30000000000000004, + 0.35000000000000003, + 0.4, + 0.45, + 0.5, + 0.55, + 0.6000000000000001, + 0.65, + 0.7000000000000001, + 0.75, + 0.8, + 0.8500000000000001, + 0.9, + 0.9500000000000001, + 1 + ] + ] + }, + "amount_max_2h": { + "count": 10000, + "mean": 82.167229, + "min": 0.05, + "25%": 39.9275, + "50%": 53.205, + "75%": 69.55, + "max": 7635.41, + "std": 233.1742143601985, + "hist": [ + [ + 9845, + 84, + 29, + 19, + 2, + 3, + 0, + 0, + 7, + 0, + 4, + 1, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 4 + ], + [ + 0.05, + 381.818, + 763.5859999999999, + 1145.3539999999998, + 1527.1219999999998, + 1908.8899999999999, + 2290.658, + 2672.426, + 3054.194, + 3435.962, + 3817.73, + 4199.498, + 4581.266, + 4963.034, + 5344.802, + 5726.57, + 6108.338, + 6490.106, + 6871.874, + 7253.642, + 7635.41 + ] + ] + }, + "amount_sum_2h": { + "count": 10000, + "mean": 175.44363499999997, + "min": 0.05, + "25%": 86.5375, + "50%": 139.82999999999998, + "75%": 208.88500000000002, + "max": 7731.7, + "std": 255.86760733153568, + "hist": [ + [ + 9532, + 377, + 48, + 9, + 10, + 4, + 2, + 0, + 0, + 7, + 3, + 2, + 0, + 0, + 2, + 0, + 0, + 0, + 0, + 4 + ], + [ + 0.05, + 386.6325, + 773.2149999999999, + 1159.7975, + 1546.3799999999999, + 1932.9624999999999, + 2319.545, + 2706.1275, + 3092.71, + 3479.2925, + 3865.875, + 4252.4574999999995, + 4639.04, + 5025.6225, + 5412.205, + 5798.787499999999, + 6185.37, + 6571.9525, + 6958.535, + 7345.117499999999, + 7731.7 + ] + ] + }, + "amount_count_2h": { + "count": 10000, + "mean": 4.8871, + "min": 1, + "25%": 3, + "50%": 5, + "75%": 6, + "max": 15, + "std": 2.314581888577696, + "hist": [ + [ + 484, + 997, + 1526, + 0, + 1753, + 1625, + 0, + 1334, + 948, + 0, + 618, + 366, + 180, + 0, + 86, + 44, + 0, + 23, + 13, + 3 + ], + [ + 1, + 1.7, + 2.4, + 3.0999999999999996, + 3.8, + 4.5, + 5.199999999999999, + 5.8999999999999995, + 6.6, + 7.3, + 8, + 8.7, + 9.399999999999999, + 10.1, + 10.799999999999999, + 11.5, + 12.2, + 12.899999999999999, + 13.6, + 14.299999999999999, + 15 + ] + ] + }, + "amount_avg_2h": { + "count": 10000, + "mean": 38.61512201386391, + "min": 0.05, + "25%": 22.85108333333333, + "50%": 29.39089285714286, + "75%": 37.98785714285715, + "max": 5468.17, + "std": 99.12880723644561, + "hist": [ + [ + 9945, + 32, + 8, + 3, + 0, + 4, + 0, + 4, + 0, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1 + ], + [ + 0.05, + 273.456, + 546.862, + 820.268, + 1093.674, + 1367.08, + 1640.486, + 1913.892, + 2187.2980000000002, + 2460.704, + 2734.11, + 3007.516, + 3280.9220000000005, + 3554.3280000000004, + 3827.7340000000004, + 4101.14, + 4374.546, + 4647.952, + 4921.358, + 5194.764, + 5468.17 + ] + ] + }, + "amount_max_12h": { + "count": 10000, + "mean": 217.180914, + "min": 0.05, + "25%": 72.2, + "50%": 97.41, + "75%": 183.97, + "max": 7635.41, + "std": 574.7305154744495, + "hist": [ + [ + 9357, + 296, + 97, + 97, + 5, + 26, + 0, + 0, + 38, + 0, + 23, + 16, + 0, + 0, + 19, + 0, + 0, + 0, + 0, + 26 + ], + [ + 0.05, + 381.818, + 763.5859999999999, + 1145.3539999999998, + 1527.1219999999998, + 1908.8899999999999, + 2290.658, + 2672.426, + 3054.194, + 3435.962, + 3817.73, + 4199.498, + 4581.266, + 4963.034, + 5344.802, + 5726.57, + 6108.338, + 6490.106, + 6871.874, + 7253.642, + 7635.41 + ] + ] + }, + "amount_sum_12h": { + "count": 10000, + "mean": 987.761435, + "min": 0.05, + "25%": 688.1524999999999, + "50%": 943.855, + "75%": 1163.3075000000001, + "max": 9266.04, + "std": 706.9679061427487, + "hist": [ + [ + 1252, + 3562, + 4195, + 624, + 145, + 46, + 27, + 24, + 17, + 29, + 27, + 9, + 11, + 5, + 1, + 0, + 0, + 6, + 3, + 17 + ], + [ + 0.05, + 463.3495000000001, + 926.6490000000001, + 1389.9485000000002, + 1853.2480000000003, + 2316.5475000000006, + 2779.8470000000007, + 3243.1465000000007, + 3706.446000000001, + 4169.745500000001, + 4633.045000000001, + 5096.344500000001, + 5559.644000000001, + 6022.943500000001, + 6486.243000000001, + 6949.542500000001, + 7412.8420000000015, + 7876.1415000000015, + 8339.441, + 8802.7405, + 9266.04 + ] + ] + }, + "amount_count_12h": { + "count": 10000, + "mean": 27.5866, + "min": 1, + "25%": 22, + "50%": 30, + "75%": 35, + "max": 52, + "std": 10.668012049492107, + "hist": [ + [ + 279, + 301, + 189, + 330, + 248, + 394, + 263, + 487, + 425, + 814, + 1097, + 849, + 1389, + 938, + 1064, + 443, + 321, + 99, + 55, + 15 + ], + [ + 1, + 3.55, + 6.1, + 8.649999999999999, + 11.2, + 13.75, + 16.299999999999997, + 18.849999999999998, + 21.4, + 23.95, + 26.5, + 29.049999999999997, + 31.599999999999998, + 34.15, + 36.699999999999996, + 39.25, + 41.8, + 44.349999999999994, + 46.9, + 49.449999999999996, + 52 + ] + ] + }, + "amount_avg_12h": { + "count": 10000, + "mean": 39.690992824939386, + "min": 0.05, + "25%": 27.973053724456165, + "50%": 31.49118154158215, + "75%": 36.44510416666667, + "max": 5468.17, + "std": 77.19114246739247, + "hist": [ + [ + 9909, + 77, + 6, + 3, + 1, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1 + ], + [ + 0.05, + 273.456, + 546.862, + 820.268, + 1093.674, + 1367.08, + 1640.486, + 1913.892, + 2187.2980000000002, + 2460.704, + 2734.11, + 3007.516, + 3280.9220000000005, + 3554.3280000000004, + 3827.7340000000004, + 4101.14, + 4374.546, + 4647.952, + 4921.358, + 5194.764, + 5468.17 + ] + ] + }, + "amount_max_24h": { + "count": 10000, + "mean": 289.69621199999995, + "min": 0.05, + "25%": 86.41, + "50%": 147.62, + "75%": 228.89, + "max": 7635.41, + "std": 685.5336807658961, + "hist": [ + [ + 9055, + 397, + 129, + 169, + 10, + 49, + 0, + 0, + 62, + 0, + 32, + 25, + 0, + 0, + 44, + 0, + 0, + 0, + 0, + 28 + ], + [ + 0.05, + 381.818, + 763.5859999999999, + 1145.3539999999998, + 1527.1219999999998, + 1908.8899999999999, + 2290.658, + 2672.426, + 3054.194, + 3435.962, + 3817.73, + 4199.498, + 4581.266, + 4963.034, + 5344.802, + 5726.57, + 6108.338, + 6490.106, + 6871.874, + 7253.642, + 7635.41 + ] + ] + }, + "amount_sum_24h": { + "count": 10000, + "mean": 1690.288283, + "min": 0.05, + "25%": 1022.9075000000001, + "50%": 1759.455, + "75%": 2179.6399999999994, + "max": 10144.09, + "std": 1044.6191477481475, + "hist": [ + [ + 1190, + 1291, + 1516, + 2608, + 2403, + 532, + 179, + 61, + 61, + 26, + 31, + 37, + 1, + 11, + 14, + 11, + 0, + 0, + 0, + 28 + ], + [ + 0.05, + 507.25200000000007, + 1014.4540000000001, + 1521.6560000000002, + 2028.8580000000002, + 2536.0600000000004, + 3043.2620000000006, + 3550.4640000000004, + 4057.6660000000006, + 4564.868, + 5072.070000000001, + 5579.272000000001, + 6086.474000000001, + 6593.676000000001, + 7100.878000000001, + 7608.080000000001, + 8115.282000000001, + 8622.484, + 9129.686, + 9636.888, + 10144.09 + ] + ] + }, + "amount_count_24h": { + "count": 10000, + "mean": 47.6612, + "min": 1, + "25%": 28, + "50%": 54, + "75%": 67, + "max": 90, + "std": 23.04833480175332, + "hist": [ + [ + 444, + 367, + 433, + 356, + 441, + 371, + 488, + 359, + 452, + 408, + 401, + 565, + 522, + 986, + 950, + 1244, + 699, + 423, + 80, + 11 + ], + [ + 1, + 5.45, + 9.9, + 14.350000000000001, + 18.8, + 23.25, + 27.700000000000003, + 32.150000000000006, + 36.6, + 41.050000000000004, + 45.5, + 49.95, + 54.400000000000006, + 58.85, + 63.300000000000004, + 67.75, + 72.2, + 76.65, + 81.10000000000001, + 85.55, + 90 + ] + ] + }, + "amount_avg_24h": { + "count": 10000, + "mean": 39.9029276006047, + "min": 0.05, + "25%": 29.000666666666664, + "50%": 31.887500000000003, + "75%": 36.11239864864865, + "max": 5468.17, + "std": 75.22140915109931, + "hist": [ + [ + 9943, + 45, + 5, + 2, + 1, + 1, + 1, + 0, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1 + ], + [ + 0.05, + 273.456, + 546.862, + 820.268, + 1093.674, + 1367.08, + 1640.486, + 1913.892, + 2187.2980000000002, + 2460.704, + 2734.11, + 3007.516, + 3280.9220000000005, + 3554.3280000000004, + 3827.7340000000004, + 4101.14, + 4374.546, + 4647.952, + 4921.358, + 5194.764, + 5468.17 + ] + ] + }, + "es_transportation_sum_14d": { + "count": 10000, + "mean": 54.8019, + "min": 0, + "25%": 24, + "50%": 52, + "75%": 83, + "max": 129, + "std": 34.801493801086735, + "hist": [ + [ + 736, + 570, + 696, + 587, + 655, + 568, + 635, + 504, + 589, + 493, + 487, + 555, + 448, + 498, + 417, + 452, + 370, + 388, + 251, + 101 + ], + [ + 0, + 6.45, + 12.9, + 19.35, + 25.8, + 32.25, + 38.7, + 45.15, + 51.6, + 58.050000000000004, + 64.5, + 70.95, + 77.4, + 83.85000000000001, + 90.3, + 96.75, + 103.2, + 109.65, + 116.10000000000001, + 122.55, + 129 + ] + ] + }, + "es_health_sum_14d": { + "count": 10000, + "mean": 1.377, + "min": 0, + "25%": 0, + "50%": 1, + "75%": 2, + "max": 16, + "std": 1.952755060224534, + "hist": [ + [ + 4715, + 2232, + 806, + 1069, + 0, + 378, + 292, + 80, + 301, + 0, + 65, + 37, + 6, + 7, + 0, + 2, + 2, + 3, + 2, + 3 + ], + [ + 0, + 0.8, + 1.6, + 2.4000000000000004, + 3.2, + 4, + 4.800000000000001, + 5.6000000000000005, + 6.4, + 7.2, + 8, + 8.8, + 9.600000000000001, + 10.4, + 11.200000000000001, + 12, + 12.8, + 13.600000000000001, + 14.4, + 15.200000000000001, + 16 + ] + ] + }, + "es_otherservices_sum_14d": { + "count": 10000, + "mean": 0.116, + "min": 0, + "25%": 0, + "50%": 0, + "75%": 0, + "max": 2, + "std": 0.3492222725135984, + "hist": [ + [ + 8937, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 966, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 97 + ], + [ + 0, + 0.1, + 0.2, + 0.30000000000000004, + 0.4, + 0.5, + 0.6000000000000001, + 0.7000000000000001, + 0.8, + 0.9, + 1, + 1.1, + 1.2000000000000002, + 1.3, + 1.4000000000000001, + 1.5, + 1.6, + 1.7000000000000002, + 1.8, + 1.9000000000000001, + 2 + ] + ] + }, + "es_food_sum_14d": { + "count": 10000, + "mean": 2.624, + "min": 0, + "25%": 0, + "50%": 2, + "75%": 4, + "max": 13, + "std": 2.829456587837715, + "hist": [ + [ + 3197, + 1535, + 0, + 999, + 1140, + 0, + 848, + 708, + 0, + 409, + 380, + 0, + 299, + 256, + 0, + 112, + 28, + 0, + 40, + 49 + ], + [ + 0, + 0.65, + 1.3, + 1.9500000000000002, + 2.6, + 3.25, + 3.9000000000000004, + 4.55, + 5.2, + 5.8500000000000005, + 6.5, + 7.15, + 7.800000000000001, + 8.450000000000001, + 9.1, + 9.75, + 10.4, + 11.05, + 11.700000000000001, + 12.35, + 13 + ] + ] + }, + "es_hotelservices_sum_14d": { + "count": 10000, + "mean": 0.1652, + "min": 0, + "25%": 0, + "50%": 0, + "75%": 0, + "max": 2, + "std": 0.3859065332243528, + "hist": [ + [ + 8403, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 1542, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 55 + ], + [ + 0, + 0.1, + 0.2, + 0.30000000000000004, + 0.4, + 0.5, + 0.6000000000000001, + 0.7000000000000001, + 0.8, + 0.9, + 1, + 1.1, + 1.2000000000000002, + 1.3, + 1.4000000000000001, + 1.5, + 1.6, + 1.7000000000000002, + 1.8, + 1.9000000000000001, + 2 + ] + ] + }, + "es_barsandrestaurants_sum_14d": { + "count": 10000, + "mean": 0.7864, + "min": 0, + "25%": 0, + "50%": 0, + "75%": 1, + "max": 5, + "std": 1.110899837899432, + "hist": [ + [ + 5648, + 0, + 0, + 0, + 2195, + 0, + 0, + 0, + 1223, + 0, + 0, + 0, + 555, + 0, + 0, + 0, + 337, + 0, + 0, + 42 + ], + [ + 0, + 0.25, + 0.5, + 0.75, + 1, + 1.25, + 1.5, + 1.75, + 2, + 2.25, + 2.5, + 2.75, + 3, + 3.25, + 3.5, + 3.75, + 4, + 4.25, + 4.5, + 4.75, + 5 + ] + ] + }, + "es_tech_sum_14d": { + "count": 10000, + "mean": 0.1698, + "min": 0, + "25%": 0, + "50%": 0, + "75%": 0, + "max": 3, + "std": 0.414710933682549, + "hist": [ + [ + 8446, + 0, + 0, + 0, + 0, + 0, + 1421, + 0, + 0, + 0, + 0, + 0, + 0, + 122, + 0, + 0, + 0, + 0, + 0, + 11 + ], + [ + 0, + 0.15, + 0.3, + 0.44999999999999996, + 0.6, + 0.75, + 0.8999999999999999, + 1.05, + 1.2, + 1.3499999999999999, + 1.5, + 1.65, + 1.7999999999999998, + 1.95, + 2.1, + 2.25, + 2.4, + 2.55, + 2.6999999999999997, + 2.85, + 3 + ] + ] + }, + "es_sportsandtoys_sum_14d": { + "count": 10000, + "mean": 0.3603, + "min": 0, + "25%": 0, + "50%": 0, + "75%": 1, + "max": 9, + "std": 0.7301624639231821, + "hist": [ + [ + 7454, + 0, + 1799, + 0, + 522, + 0, + 172, + 0, + 39, + 0, + 0, + 3, + 0, + 7, + 0, + 2, + 0, + 1, + 0, + 1 + ], + [ + 0, + 0.45, + 0.9, + 1.35, + 1.8, + 2.25, + 2.7, + 3.15, + 3.6, + 4.05, + 4.5, + 4.95, + 5.4, + 5.8500000000000005, + 6.3, + 6.75, + 7.2, + 7.65, + 8.1, + 8.55, + 9 + ] + ] + }, + "es_wellnessandbeauty_sum_14d": { + "count": 10000, + "mean": 1.4875, + "min": 0, + "25%": 0, + "50%": 1, + "75%": 2, + "max": 14, + "std": 1.7617474635748853, + "hist": [ + [ + 3439, + 2791, + 1820, + 0, + 888, + 413, + 0, + 258, + 224, + 0, + 55, + 31, + 13, + 0, + 35, + 16, + 0, + 8, + 4, + 5 + ], + [ + 0, + 0.7, + 1.4, + 2.0999999999999996, + 2.8, + 3.5, + 4.199999999999999, + 4.8999999999999995, + 5.6, + 6.3, + 7, + 7.699999999999999, + 8.399999999999999, + 9.1, + 9.799999999999999, + 10.5, + 11.2, + 11.899999999999999, + 12.6, + 13.299999999999999, + 14 + ] + ] + }, + "es_hyper_sum_14d": { + "count": 10000, + "mean": 0.7528, + "min": 0, + "25%": 0, + "50%": 0, + "75%": 1, + "max": 6, + "std": 1.0529021893329076, + "hist": [ + [ + 5417, + 0, + 0, + 2764, + 0, + 0, + 1133, + 0, + 0, + 0, + 326, + 0, + 0, + 301, + 0, + 0, + 38, + 0, + 0, + 21 + ], + [ + 0, + 0.3, + 0.6, + 0.8999999999999999, + 1.2, + 1.5, + 1.7999999999999998, + 2.1, + 2.4, + 2.6999999999999997, + 3, + 3.3, + 3.5999999999999996, + 3.9, + 4.2, + 4.5, + 4.8, + 5.1, + 5.3999999999999995, + 5.7, + 6 + ] + ] + }, + "es_fashion_sum_14d": { + "count": 10000, + "mean": 0.7147, + "min": 0, + "25%": 0, + "50%": 0, + "75%": 1, + "max": 8, + "std": 1.019611627428345, + "hist": [ + [ + 5215, + 0, + 3376, + 0, + 0, + 946, + 0, + 166, + 0, + 0, + 217, + 0, + 23, + 0, + 0, + 12, + 0, + 34, + 0, + 11 + ], + [ + 0, + 0.4, + 0.8, + 1.2000000000000002, + 1.6, + 2, + 2.4000000000000004, + 2.8000000000000003, + 3.2, + 3.6, + 4, + 4.4, + 4.800000000000001, + 5.2, + 5.6000000000000005, + 6, + 6.4, + 6.800000000000001, + 7.2, + 7.6000000000000005, + 8 + ] + ] + }, + "es_home_sum_14d": { + "count": 10000, + "mean": 0.2233, + "min": 0, + "25%": 0, + "50%": 0, + "75%": 0, + "max": 5, + "std": 0.5310982174058327, + "hist": [ + [ + 8254, + 0, + 0, + 0, + 1295, + 0, + 0, + 0, + 429, + 0, + 0, + 0, + 14, + 0, + 0, + 0, + 2, + 0, + 0, + 6 + ], + [ + 0, + 0.25, + 0.5, + 0.75, + 1, + 1.25, + 1.5, + 1.75, + 2, + 2.25, + 2.5, + 2.75, + 3, + 3.25, + 3.5, + 3.75, + 4, + 4.25, + 4.5, + 4.75, + 5 + ] + ] + }, + "es_travel_sum_14d": { + "count": 10000, + "mean": 0.0508, + "min": 0, + "25%": 0, + "50%": 0, + "75%": 0, + "max": 2, + "std": 0.2320016001544977, + "hist": [ + [ + 9520, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 452, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 28 + ], + [ + 0, + 0.1, + 0.2, + 0.30000000000000004, + 0.4, + 0.5, + 0.6000000000000001, + 0.7000000000000001, + 0.8, + 0.9, + 1, + 1.1, + 1.2000000000000002, + 1.3, + 1.4000000000000001, + 1.5, + 1.6, + 1.7000000000000002, + 1.8, + 1.9000000000000001, + 2 + ] + ] + }, + "es_leisure_sum_14d": { + "count": 10000, + "mean": 0.0652, + "min": 0, + "25%": 0, + "50%": 0, + "75%": 0, + "max": 2, + "std": 0.29420675682515546, + "hist": [ + [ + 9476, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 396, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 128 + ], + [ + 0, + 0.1, + 0.2, + 0.30000000000000004, + 0.4, + 0.5, + 0.6000000000000001, + 0.7000000000000001, + 0.8, + 0.9, + 1, + 1.1, + 1.2000000000000002, + 1.3, + 1.4000000000000001, + 1.5, + 1.6, + 1.7000000000000002, + 1.8, + 1.9000000000000001, + 2 + ] + ] + }, + "gender_F": { + "count": 10000, + "mean": 0.4552, + "min": 0, + "25%": 0, + "50%": 0, + "75%": 1, + "max": 1, + "std": 0.498013816852683, + "hist": [ + [ + 5448, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 4552 + ], + [ + 0, + 0.05, + 0.1, + 0.15000000000000002, + 0.2, + 0.25, + 0.30000000000000004, + 0.35000000000000003, + 0.4, + 0.45, + 0.5, + 0.55, + 0.6000000000000001, + 0.65, + 0.7000000000000001, + 0.75, + 0.8, + 0.8500000000000001, + 0.9, + 0.9500000000000001, + 1 + ] + ] + }, + "gender_M": { + "count": 10000, + "mean": 0.5448, + "min": 0, + "25%": 0, + "50%": 1, + "75%": 1, + "max": 1, + "std": 0.498013816852683, + "hist": [ + [ + 4552, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 5448 + ], + [ + 0, + 0.05, + 0.1, + 0.15000000000000002, + 0.2, + 0.25, + 0.30000000000000004, + 0.35000000000000003, + 0.4, + 0.45, + 0.5, + 0.55, + 0.6000000000000001, + 0.65, + 0.7000000000000001, + 0.75, + 0.8, + 0.8500000000000001, + 0.9, + 0.9500000000000001, + 1 + ] + ] + }, + "step": { + "count": 10000, + "mean": 78.9453, + "min": 0, + "25%": 44, + "50%": 81, + "75%": 115, + "max": 147, + "std": 41.598136357351876, + "hist": [ + [ + 392, + 355, + 443, + 404, + 416, + 498, + 441, + 468, + 551, + 479, + 498, + 559, + 500, + 531, + 608, + 569, + 537, + 623, + 538, + 590 + ], + [ + 0, + 7.35, + 14.7, + 22.049999999999997, + 29.4, + 36.75, + 44.099999999999994, + 51.449999999999996, + 58.8, + 66.14999999999999, + 73.5, + 80.85, + 88.19999999999999, + 95.55, + 102.89999999999999, + 110.25, + 117.6, + 124.94999999999999, + 132.29999999999998, + 139.65, + 147 + ] + ] + }, + "amount": { + "count": 10000, + "mean": 38.00471700000001, + "min": 0, + "25%": 13.57, + "50%": 26.69, + "75%": 42.36, + "max": 7635.41, + "std": 130.3568133027091, + "hist": [ + [ + 9958, + 21, + 8, + 6, + 1, + 1, + 0, + 0, + 1, + 0, + 1, + 1, + 0, + 0, + 1, + 0, + 0, + 0, + 0, + 1 + ], + [ + 0, + 381.77049999999997, + 763.5409999999999, + 1145.3114999999998, + 1527.0819999999999, + 1908.8525, + 2290.6229999999996, + 2672.3934999999997, + 3054.1639999999998, + 3435.9345, + 3817.705, + 4199.4755, + 4581.245999999999, + 4963.0165, + 5344.786999999999, + 5726.5575, + 6108.3279999999995, + 6490.098499999999, + 6871.869, + 7253.639499999999, + 7635.41 + ] + ] + }, + "timestamp_hour": { + "count": 10000, + "mean": 11.45, + "min": 0, + "25%": 5, + "50%": 11, + "75%": 17, + "max": 23, + "std": 6.927705197966422, + "hist": [ + [ + 834, + 421, + 415, + 441, + 424, + 421, + 836, + 431, + 405, + 398, + 441, + 394, + 434, + 825, + 386, + 403, + 423, + 411, + 418, + 839 + ], + [ + 0, + 1.15, + 2.3, + 3.4499999999999997, + 4.6, + 5.75, + 6.8999999999999995, + 8.049999999999999, + 9.2, + 10.35, + 11.5, + 12.649999999999999, + 13.799999999999999, + 14.95, + 16.099999999999998, + 17.25, + 18.4, + 19.549999999999997, + 20.7, + 21.849999999999998, + 23 + ] + ] + }, + "timestamp_day_of_week": { + "count": 10000, + "mean": 1.663, + "min": 0, + "25%": 0, + "50%": 0, + "75%": 1, + "max": 6, + "std": 2.4345479462048467, + "hist": [ + [ + 5085, + 0, + 0, + 2572, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2343 + ], + [ + 0, + 0.3, + 0.6, + 0.8999999999999999, + 1.2, + 1.5, + 1.7999999999999998, + 2.1, + 2.4, + 2.6999999999999997, + 3, + 3.3, + 3.5999999999999996, + 3.9, + 4.2, + 4.5, + 4.8, + 5.1, + 5.3999999999999995, + 5.7, + 6 + ] + ] + }, + "label": { + "count": 10000, + "mean": 0.0095, + "min": 0, + "25%": 0, + "50%": 0, + "75%": 0, + "max": 1, + "std": 0.09700871645943425, + "hist": [ + [ + 9905, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 95 + ], + [ + 0, + 0.05, + 0.1, + 0.15000000000000002, + 0.2, + 0.25, + 0.30000000000000004, + 0.35000000000000003, + 0.4, + 0.45, + 0.5, + 0.55, + 0.6000000000000001, + 0.65, + 0.7000000000000001, + 0.75, + 0.8, + 0.8500000000000001, + 0.9, + 0.9500000000000001, + 1 + ] + ] + } + }, + "features": [ + { + "origin": "churn-project-admin/events:latest.event_password_change", + "value_type": "int", + "name": "event_password_change" + }, + { + "origin": "churn-project-admin/events:latest.event_details_change", + "value_type": "int", + "name": "event_details_change" + }, + { + "origin": "churn-project-admin/events:latest.event_login", + "value_type": "int", + "name": "event_login" + }, + { + "origin": "churn-project-admin/transactions:latest.amount_max_2h", + "value_type": "float", + "name": "amount_max_2h", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.amount_sum_2h", + "value_type": "float", + "name": "amount_sum_2h", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.amount_count_2h", + "value_type": "float", + "name": "amount_count_2h", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.amount_avg_2h", + "value_type": "float", + "name": "amount_avg_2h", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.amount_max_12h", + "value_type": "float", + "name": "amount_max_12h", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.amount_sum_12h", + "value_type": "float", + "name": "amount_sum_12h", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.amount_count_12h", + "value_type": "float", + "name": "amount_count_12h", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.amount_avg_12h", + "value_type": "float", + "name": "amount_avg_12h", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.amount_max_24h", + "value_type": "float", + "name": "amount_max_24h", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.amount_sum_24h", + "value_type": "float", + "name": "amount_sum_24h", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.amount_count_24h", + "value_type": "float", + "name": "amount_count_24h", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.amount_avg_24h", + "value_type": "float", + "name": "amount_avg_24h", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.es_transportation_sum_14d", + "value_type": "float", + "name": "es_transportation_sum_14d", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.es_health_sum_14d", + "value_type": "float", + "name": "es_health_sum_14d", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.es_otherservices_sum_14d", + "value_type": "float", + "name": "es_otherservices_sum_14d", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.es_food_sum_14d", + "value_type": "float", + "name": "es_food_sum_14d", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.es_hotelservices_sum_14d", + "value_type": "float", + "name": "es_hotelservices_sum_14d", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.es_barsandrestaurants_sum_14d", + "value_type": "float", + "name": "es_barsandrestaurants_sum_14d", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.es_tech_sum_14d", + "value_type": "float", + "name": "es_tech_sum_14d", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.es_sportsandtoys_sum_14d", + "value_type": "float", + "name": "es_sportsandtoys_sum_14d", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.es_wellnessandbeauty_sum_14d", + "value_type": "float", + "name": "es_wellnessandbeauty_sum_14d", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.es_hyper_sum_14d", + "value_type": "float", + "name": "es_hyper_sum_14d", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.es_fashion_sum_14d", + "value_type": "float", + "name": "es_fashion_sum_14d", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.es_home_sum_14d", + "value_type": "float", + "name": "es_home_sum_14d", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.es_travel_sum_14d", + "value_type": "float", + "name": "es_travel_sum_14d", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.es_leisure_sum_14d", + "value_type": "float", + "name": "es_leisure_sum_14d", + "aggregate": true + }, + { + "origin": "churn-project-admin/transactions:latest.gender_F", + "value_type": "int", + "name": "gender_F" + }, + { + "origin": "churn-project-admin/transactions:latest.gender_M", + "value_type": "int", + "name": "gender_M" + }, + { + "origin": "churn-project-admin/transactions:latest.step", + "value_type": "int", + "name": "step" + }, + { + "origin": "churn-project-admin/transactions:latest.amount", + "value_type": "float", + "name": "amount" + }, + { + "origin": "churn-project-admin/transactions:latest.timestamp_hour", + "value_type": "int", + "name": "timestamp_hour" + }, + { + "origin": "churn-project-admin/transactions:latest.timestamp_day_of_week", + "value_type": "int", + "name": "timestamp_day_of_week" + }, + { + "origin": "churn-project-admin/labels:latest.label", + "value_type": "int", + "name": "label" + } + ], + "index_keys": [ + "source" + ], + "targets": [ + { + "path": "v3io:///projects/churn-project-admin/FeatureStore/transactions-fraud/parquet/vectors/transactions-fraud-latest.parquet", + "size": 151274, + "status": "ready", + "name": "parquet", + "updated": "2025-09-30T15:57:17.402617+00:00", + "partitioned": true, + "kind": "parquet" + } + ] + } + } ] } diff --git a/tests/mockServer/data/monitoringApplications.json b/tests/mockServer/data/monitoringApplications.json index eb4eb0d869..b4eb779df0 100644 --- a/tests/mockServer/data/monitoringApplications.json +++ b/tests/mockServer/data/monitoringApplications.json @@ -194,6 +194,52 @@ ] }, "status": "ready" + }, + { + "name": "monitorAppV4", + "application_class": "MyAppV4", + "started_at": "2025-05-02T09:00:00Z", + "updated_time": "2025-05-08T11:00:00Z", + "base_period": 15, + "nuclio_function_uri": "default/functions/default-monitorAppV4/", + "stats": { + "detected": 850, + "potential_detection": 60, + "stream_stats": { + "0": { + "lag": 5, + "committed": 42 + } + }, + "shards": { + "1": { + "committed": 50, + "lag": 2 + }, + "2": { + "committed": 60, + "lag": 0 + } + }, + "processed_model_endpoints": 8, + "metrics": [ + { + "type": "result", + "time": "2025-05-07T09:07:14+00:00", + "result_name": "some_result", + "kind": 0, + "status": 2, + "value": 0.95 + }, + { + "type": "metric", + "time": "2025-05-07T09:07:14+00:00", + "metric_name": "some_metric", + "value": 0.4 + } + ] + }, + "status": "error" } ] } diff --git a/tests/mockServer/data/nuclioFunctions.json b/tests/mockServer/data/nuclioFunctions.json index 353dbce763..25bb06f7ee 100644 --- a/tests/mockServer/data/nuclioFunctions.json +++ b/tests/mockServer/data/nuclioFunctions.json @@ -582,7 +582,8 @@ "namespace": "default-tenant", "labels": { "mlrun/class": "serving", - "nuclio.io/project-name": "default" + "nuclio.io/project-name": "default", + "mlrun__type": "mlrun__model-monitoring-application" }, "resourceVersion": "30099716" }, @@ -3950,7 +3951,8 @@ "name": "test", "namespace": "default-tenant", "labels": { - "nuclio.io/project-name": "cat-vs-dog-classification" + "nuclio.io/project-name": "cat-vs-dog-classification", + "mlrun__type": "mlrun__model-monitoring-infra" }, "resourceVersion": "37855264" }, @@ -4009,7 +4011,8 @@ "name": "test1", "namespace": "default-tenant", "labels": { - "nuclio.io/project-name": "default" + "nuclio.io/project-name": "default", + "mlrun__type": "mlrun__model-monitoring-infra" }, "resourceVersion": "28276699" }, @@ -4070,7 +4073,8 @@ "name": "test2", "namespace": "default-tenant", "labels": { - "nuclio.io/project-name": "default" + "nuclio.io/project-name": "default", + "mlrun__type": "mlrun__model-monitoring-infra" }, "resourceVersion": "37855235" }, diff --git a/tests/mockServer/mock.js b/tests/mockServer/mock.js index 5d2fb13f9b..8be1a9b777 100644 --- a/tests/mockServer/mock.js +++ b/tests/mockServer/mock.js @@ -836,7 +836,7 @@ function getMonitoringApplications(req, res) { const collectedMonitoringApplications = (monitoringApplications[req.params['project']] || []).map( application => ({ ...application, - stats: omit(application.stats, ['shards', 'processed_model_endpoints', 'metrics']) + stats: { ...omit(application.stats, ['shards', 'processed_model_endpoints', 'metrics']), stream_stats: application.stats.stream_stats['0']} }) )