Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions tests/features/MLFunction.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions tests/features/alertsMonitoring.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
31 changes: 29 additions & 2 deletions tests/features/artifacts.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
5 changes: 4 additions & 1 deletion tests/features/common-tools/common-consts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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'],
Expand Down
5 changes: 5 additions & 0 deletions tests/features/common/actions/dropdown.action.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 5 additions & 5 deletions tests/features/common/page-objects/commonPagesHeader.po.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand All @@ -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'),
Expand Down
4 changes: 2 additions & 2 deletions tests/features/common/page-objects/interactive-popup.po.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
)
)
Expand Down
6 changes: 3 additions & 3 deletions tests/features/common/page-objects/project-settings.po.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: ''
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/features/common/page-objects/project.po.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/features/common/page-objects/projects.po.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Loading