Skip to content

Commit

Permalink
QA v1.7.1 (#2895)
Browse files Browse the repository at this point in the history
  • Loading branch information
EZheln authored Dec 3, 2024
1 parent a367751 commit b3108d1
Show file tree
Hide file tree
Showing 12 changed files with 129 additions and 15 deletions.
4 changes: 3 additions & 1 deletion tests/features/MLFunction.feature
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,8 @@ Feature: ML Functions
And set tear-down property "function" created in "default" project with "new-aqa-function-00" value
Then click on "Save_Button" element on "New_Function" wizard
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 "Header" element on "ML_Function_Info_Pane" should contains "new-aqa-function-00" value
Then check "new-aqa-function-00" value in "name" column in "Overview_Table" table on "ML_Function_Info_Pane" wizard
Then check "job" value in "kind" column in "Overview_Table" table on "ML_Function_Info_Pane" wizard
Expand Down Expand Up @@ -1079,7 +1081,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
Expand Down
12 changes: 12 additions & 0 deletions tests/features/common-tools/common-consts.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,18 @@ module.exports = {
Secrets_Hint:
'These secrets are automatically available to all jobs belonging to this project that are not executed locally. See Secrets'
},
Common_Tooltips:{
FilterBy_Button: 'Filter',
Refresh_Button: 'Refresh',
In_Process_Jobs: 'Aborting, Pending, Running',
In_Process_Workflows: 'Running',
Failed_Jobs: 'Aborted, Error',
Failed_Worflows: 'Error, Failed',
Succeeded: 'Completed',
Error_Content: 'Error. Columns must be same length as key',
Error_Content_Workflow:
'Error. 2021-08-29 20:01:36.582972: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library \'libcudart.so.11.0\'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/lib:/usr/local/lib: 2021-08-29 20:01:36.583019: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine. 2021-08-29 20:01:46.470042: I tensorflow/compiler/jit/xla_cpu_device.cc:41] Not creating XLA devices, tf_xla_enable_xla_devices not set 2021-08-29 20:01:46.470263: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library \'libcuda.so.1\'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/lib:/usr/local/lib: 2021-08-29 20:01:46.470283: W tensorflow/stream_executor/cuda/cuda_driver.cc:326] failed call to cuInit: UNKNOWN ERROR (303) 2021-08-29 20:01:46.470306: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (train-1193bacd-worker-0): /proc/driver/nvidia/version does not exist 2021-08-29 20:01:46.518782: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX2 FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 2021-08-29 20:01:46.518927: I tensorflow/compiler/jit/xla_gpu_device.cc:99] Not creating XLA devices, tf_xla_enable_xla_devices not set Some callbacks may not have access to the averaged metrics, see https://github.com/horovod/horovod/issues/2440 Traceback (most recent call last): File "/User/demos/image-classification-with-distributed-training/src-tfv2/horovod-training.py", line 116, in <module> hvd.callbacks.LearningRateWarmupCallback(warmup_epochs=5, verbose=1), TypeError: __init__() missing 1 required positional argument: \'initial_lr\''
},
Input_Hint: {
Artifact_Names_Unique: 'Artifact names in the same project must be unique',
Dataset_Names_Unique: 'Dataset names in the same project must be unique',
Expand Down
13 changes: 13 additions & 0 deletions tests/features/common/actions/common.action.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,19 @@ const action = {
await driver.executeScript('arguments[0].scrollIntoView()', element)
await driver.sleep(250)
},
checkComponentHintTextWithHover:async function (driver, component, hintComponent, text) {
const hintButton = await driver.findElement(component)
const hintButtonRect = await hintButton.getRect()
const actions = driver.actions({ async: true })
await actions
.move({ x: parseInt(hintButtonRect.x), y: parseInt(hintButtonRect.y) })
.perform()
await driver.sleep(250)
const hint = await driver.findElement(hintComponent)
const hintText = await hint.getText()

expect(hintText).equal(text)
},
scrollToWebElement
}

Expand Down
2 changes: 1 addition & 1 deletion tests/features/common/page-objects/feature-store.po.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ module.exports = {
Table_Refresh_Button: tableRefreshButton,
Add_To_Feature_Vector_Table: commonTable(addToFeatureVectorTable),
Add_Button: By.css('.features-panel__buttons .btn-primary'),
Cancel_Button: By.css('.features-panel__buttons .btn-label'),
Cancel_Button: By.css('.features-panel__buttons .btn-tertiary'),
Features_Panel_Title: labelComponent(
generateLabelGroup('.add-to-feature-vector .features-panel__header', false, true)
),
Expand Down
4 changes: 4 additions & 0 deletions tests/features/common/page-objects/info-pane.po.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,8 @@ module.exports = {
Arrow_Back: By.css('a.item-header__back-btn'),
Header: header,
Updated: updated,
State_Icon: By.css('.item-header .item-header__status .state'),
Error_Content: By.css('.item-header .item-header__status .error-container'),
Action_Menu: commonActionMenu,
Cross_Close_Button: crossCloseButton,
Info_Pane_Tab_Selector: commonInfoPaneTabSelector,
Expand All @@ -697,6 +699,8 @@ module.exports = {
Arrow_Back: commonArrowBack,
Header: By.css('.workflow-container .link-back__title .data-ellipsis'),
Updated: updated,
State_Icon: By.css('.item-header .item-header__status .state'),
Error_Content: By.css('.item-header .item-header__status .error-container'),
Action_Menu: commonActionMenu,
Cross_Close_Button: crossCloseButton,
Info_Pane_Tab_Selector: commonInfoPaneTabSelector,
Expand Down
4 changes: 2 additions & 2 deletions tests/features/common/page-objects/project-settings.po.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,15 @@ module.exports = {
'.form-key-value-table .form-table__row_active .form-table__cell_1:nth-of-type(1)',
true,
false,
'.form-field__warning'
'.form-field__warning svg'
)
),
Parameters_Table_Value_Input: inputGroup(
generateInputGroup(
'.form-key-value-table .form-table__row_active .form-table__cell_1:nth-of-type(2)',
true,
false,
'.form-field__warning'
'.form-field__warning svg'
)
),
Parameters_Table_Add_Row_Button: By.css(
Expand Down
10 changes: 5 additions & 5 deletions tests/features/datasets.feature
Original file line number Diff line number Diff line change
Expand Up @@ -1238,16 +1238,16 @@ Feature: Datasets Page
And wait load page
And hover "MLRun_Logo" component on "commonPagesHeader" wizard
And wait load page
Then verify that 16 row elements are displayed in "Datasets_Table" on "Datasets" wizard
Then verify that 17 row elements are displayed in "Datasets_Table" on "Datasets" wizard
Then check "new_dataset_10" value in "name" column in "Datasets_Table" table on "Datasets" wizard
Then check "new_dataset_24" value in "name" column in "Datasets_Table" table on "Datasets" wizard
Then check "test-regressor_cox-test-summary" value in "name" column in "Datasets_Table" table on "Datasets" wizard
Then check "survival-curves_coxhazard-summary" value not in "name" column in "Datasets_Table" table on "Datasets" wizard
Then check "survival-curves_coxhazard-summary" value in "name" column in "Datasets_Table" table on "Datasets" wizard
Then check "iris_gen_iris_dataset" value not in "name" column in "Datasets_Table" table on "Datasets" wizard
Then check "data_clean_cleaned-data" value not in "name" column in "Datasets_Table" table on "Datasets" wizard
When scroll to the element with "test-regressor_cox-test-summary" value in "name" column in "Datasets_Table" table on "Datasets" wizard
And wait load page
Then verify that 17 row elements are displayed in "Datasets_Table" on "Datasets" wizard
Then verify that 18 row elements are displayed in "Datasets_Table" on "Datasets" wizard
Then check "test-regressor_cox-test-summary" value in "name" column in "Datasets_Table" table on "Datasets" wizard
Then check "iris_gen_iris_dataset" value in "name" column in "Datasets_Table" table on "Datasets" wizard
Then check "new_dataset_10" value not in "name" column in "Datasets_Table" table on "Datasets" wizard
Expand Down Expand Up @@ -1276,10 +1276,10 @@ Feature: Datasets Page
Then select "All" 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 16 row elements are displayed in "Datasets_Table" on "Datasets" wizard
Then verify that 17 row elements are displayed in "Datasets_Table" on "Datasets" wizard
Then check "new_dataset_24" value in "name" column in "Datasets_Table" table on "Datasets" wizard
Then check "test-regressor_cox-test-summary" value in "name" column in "Datasets_Table" table on "Datasets" wizard
Then check "survival-curves_coxhazard-summary" value not in "name" column in "Datasets_Table" table on "Datasets" wizard
Then check "survival-curves_coxhazard-summary" value in "name" column in "Datasets_Table" table on "Datasets" wizard
Then click on cell with value "test-regressor_cox-test-summary" in "name" column in "Datasets_Table" table on "Datasets" wizard
And wait load page
Then check "new_dataset_10" value not in "name" column in "Datasets_Table" table on "Datasets" wizard
Expand Down
13 changes: 12 additions & 1 deletion tests/features/featureStore.feature
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ Feature: Feature Store Page
Then select "All" option in "Table_Tag_Filter_Dropdown" dropdown on "Feature_Store_Feature_Sets_Tab" wizard
And wait load page
When click on cell with row index 2 in "name" column in "Feature_Sets_Table" table on "Feature_Store_Feature_Sets_Tab" wizard
And wait load page
Then verify "Header" element visibility on "Feature_Sets_Info_Pane" wizard
Then verify "Updated" element visibility on "Feature_Sets_Info_Pane" wizard
Then verify "Apply_Changes_Button" element not exists on "Feature_Sets_Info_Pane" wizard
Expand Down Expand Up @@ -145,6 +146,7 @@ Feature: Feature Store Page
Then verify "Apply_Changes_Button" element not exists on "Feature_Sets_Info_Pane" wizard
Then click on "Cross_Close_Button" element on "Feature_Sets_Info_Pane" wizard
When click on cell with row index 1 in "name" column in "Feature_Sets_Table" table on "Feature_Store_Feature_Sets_Tab" wizard
And wait load page
When add rows to "Labels_Table" table on "Feature_Sets_Info_Pane" wizard
| key_input | value_input |
| key1 | value1 |
Expand Down Expand Up @@ -243,6 +245,7 @@ Feature: Feature Store Page
And wait load page
Then verify "Feature Sets" tab is active in "Feature_Store_Tab_Selector" on "Feature_Store_Feature_Sets_Tab" wizard
When click on cell with row index 1 in "name" column in "Feature_Sets_Table" table on "Feature_Store_Feature_Sets_Tab" wizard
And wait load page
Then select "Features" tab in "Info_Pane_Tab_Selector" on "Feature_Sets_Info_Pane" wizard
Then verify "Features" tab is active in "Info_Pane_Tab_Selector" on "Features_Info_Pane" wizard
Then verify "Feature Sets" tab is active in "Feature_Store_Tab_Selector" on "Feature_Store_Feature_Sets_Tab" wizard
Expand All @@ -267,6 +270,7 @@ Feature: Feature Store Page
And wait load page
Then verify "Feature Sets" tab is active in "Feature_Store_Tab_Selector" on "Feature_Store_Feature_Sets_Tab" wizard
When click on cell with row index 1 in "name" column in "Feature_Sets_Table" table on "Feature_Store_Feature_Sets_Tab" wizard
And wait load page
Then select "Transformations" tab in "Info_Pane_Tab_Selector" on "Feature_Sets_Info_Pane" wizard
Then verify "Transformations" tab is active in "Info_Pane_Tab_Selector" on "Transformations_Info_Pane" wizard
Then verify "Feature Sets" tab is active in "Feature_Store_Tab_Selector" on "Feature_Store_Feature_Sets_Tab" wizard
Expand All @@ -292,6 +296,7 @@ Feature: Feature Store Page
And wait load page
Then verify "Feature Sets" tab is active in "Feature_Store_Tab_Selector" on "Feature_Store_Feature_Sets_Tab" wizard
When click on cell with row index 1 in "name" column in "Feature_Sets_Table" table on "Feature_Store_Feature_Sets_Tab" wizard
And wait load page
Then select "Preview" tab in "Info_Pane_Tab_Selector" on "Feature_Sets_Info_Pane" wizard
Then verify "Preview" tab is active in "Info_Pane_Tab_Selector" on "Preview_Info_Pane" wizard
Then verify "Feature Sets" tab is active in "Feature_Store_Tab_Selector" on "Feature_Store_Feature_Sets_Tab" wizard
Expand All @@ -316,6 +321,7 @@ Feature: Feature Store Page
And wait load page
Then verify "Feature Sets" tab is active in "Feature_Store_Tab_Selector" on "Feature_Store_Feature_Sets_Tab" wizard
When click on cell with row index 1 in "name" column in "Feature_Sets_Table" table on "Feature_Store_Feature_Sets_Tab" wizard
And wait load page
Then select "Statistics" tab in "Info_Pane_Tab_Selector" on "Feature_Sets_Info_Pane" wizard
Then verify "Statistics" tab is active in "Info_Pane_Tab_Selector" on "Analysis_Info_Pane" wizard
Then verify cell with "Statistics" value in "key" column in "Info_Pane_Tab_Selector" table on "Feature_Sets_Info_Pane" wizard should display "Label_Hint"."Feature_Sets_Statistics"
Expand All @@ -340,6 +346,7 @@ Feature: Feature Store Page
And wait load page
Then verify "Feature Sets" tab is active in "Feature_Store_Tab_Selector" on "Feature_Store_Feature_Sets_Tab" wizard
When click on cell with row index 1 in "name" column in "Feature_Sets_Table" table on "Feature_Store_Feature_Sets_Tab" wizard
And wait load page
Then select "Analysis" tab in "Info_Pane_Tab_Selector" on "Feature_Sets_Info_Pane" wizard
Then verify "Analysis" tab is active in "Info_Pane_Tab_Selector" on "Analysis_Info_Pane" wizard
Then verify "Feature Sets" tab is active in "Feature_Store_Tab_Selector" on "Feature_Store_Feature_Sets_Tab" wizard
Expand Down Expand Up @@ -1139,7 +1146,8 @@ Feature: Feature Store Page
Then verify "YAML_Modal_Container" element visibility on "View_YAML" wizard
Then click on "Cross_Cancel_Button" element on "View_YAML" wizard
Then select "All" option in "Table_Tag_Filter_Dropdown" dropdown on "Feature_Store_Features_Vectors_Tab" wizard
Then click on cell with row index 4 in "expand_btn" column in "Feature_Vectors_Table" table on "Feature_Store_Features_Vectors_Tab" wizard
Then click on cell with row index 1 in "expand_btn" column in "Feature_Vectors_Table" table on "Feature_Store_Features_Vectors_Tab" wizard
And wait load page
Then select "View YAML" option in action menu on "Feature_Store_Features_Vectors_Tab" wizard in "Feature_Vectors_Table" table at row with "my-tag" value in "name_expand_btn" column
Then verify if "View_YAML" popup dialog appears
Then verify "Cross_Cancel_Button" element visibility on "View_YAML" wizard
Expand All @@ -1158,6 +1166,7 @@ Feature: Feature Store Page
And wait load page
Then verify "Feature Sets" tab is active in "Feature_Store_Tab_Selector" on "Feature_Store_Feature_Sets_Tab" wizard
When click on cell with row index 1 in "name" column in "Feature_Sets_Table" table on "Feature_Store_Feature_Sets_Tab" wizard
And wait load page
Then verify "Action_Menu" element visibility on "Feature_Sets_Info_Pane" wizard
Then select "View YAML" option in action menu on "Feature_Sets_Info_Pane" wizard
Then verify if "View_YAML" popup dialog appears
Expand Down Expand Up @@ -1574,6 +1583,7 @@ Feature: Feature Store Page
* create "test_fs" Feature Set in "automation-test-name001" project with code 200
Then click on "Table_Refresh_Button" element on "Feature_Store_Feature_Sets_Tab" wizard
And click on cell with value "test_fs" in "name" column in "Feature_Sets_Table" table on "Feature_Store_Feature_Sets_Tab" wizard
And wait load page
Then select "Preview" tab in "Info_Pane_Tab_Selector" on "Feature_Sets_Info_Pane" wizard
And wait load page
Then "No_Data_Message" component on "commonPagesHeader" should contains "No_Data_Message"."No_Data"
Expand All @@ -1590,6 +1600,7 @@ Feature: Feature Store Page
* create "test_fv" Feature Vector in "automation-test-name001" project with code 200
Then click on "Table_Refresh_Button" element on "Feature_Store_Features_Vectors_Tab" wizard
And click on cell with value "test_fv" in "name" column in "Feature_Vectors_Table" table on "Feature_Store_Features_Vectors_Tab" wizard
And wait load page
Then select "Requested Features" tab in "Info_Pane_Tab_Selector" on "Feature_Vectors_Info_Pane" wizard
And wait load page
Then "No_Data_Message" component on "commonPagesHeader" should contains "No_Data_Message"."No_Data"
Expand Down
Loading

0 comments on commit b3108d1

Please sign in to comment.