From 06643b87d58003401dac30e6473ee3428cf84a98 Mon Sep 17 00:00:00 2001 From: Odalys Adam Date: Wed, 10 Apr 2024 12:33:27 +0200 Subject: [PATCH] adjust my to personal --- features/navigation_bar_left/leftNavigationBar.feature | 4 ++-- page-objects/pages/NavigationLeftPage.js | 10 +++++----- .../navigation_bar_left/leftNavigationBar_steps.js | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/features/navigation_bar_left/leftNavigationBar.feature b/features/navigation_bar_left/leftNavigationBar.feature index 32464913..d5da1a72 100644 --- a/features/navigation_bar_left/leftNavigationBar.feature +++ b/features/navigation_bar_left/leftNavigationBar.feature @@ -16,7 +16,7 @@ Feature: Test set to check the left side menu items And clicks left navigation item 'private homework' And clicks left navigation item 'archived homework' And clicks left navigation item 'files' - And clicks left navigation item 'my files' + And clicks left navigation item 'personal files' And clicks left navigation item 'course files' And clicks left navigation item 'team files' And clicks left navigation item 'shared files' @@ -47,7 +47,7 @@ Feature: Test set to check the left side menu items And clicks left navigation item 'private homework' And clicks left navigation item 'archived homework' And clicks left navigation item 'files' - And clicks left navigation item 'my files' + And clicks left navigation item 'personal files' And clicks left navigation item 'course files' And clicks left navigation item 'team files' And clicks left navigation item 'shared files' diff --git a/page-objects/pages/NavigationLeftPage.js b/page-objects/pages/NavigationLeftPage.js index 5cd63dc1..6e7b53cc 100644 --- a/page-objects/pages/NavigationLeftPage.js +++ b/page-objects/pages/NavigationLeftPage.js @@ -18,7 +18,7 @@ const navItemsEnum = { TEAMS: 'teams', TASKS: 'tasks', FILES: 'files', - MYFILES: 'my files', + PERSONALFILES: 'personal files', COURSEFILES: 'course files', TEAMFILES: 'team files', SHAREDFILES: 'shared files', @@ -48,7 +48,7 @@ const navItemRoomsOverview = navItemString1stLevel.replace('XXX', 'Course-Overvi const navItemTeams = navItemString1stLevel.replace('XXX', 'Teams'); const navItemTasks = navItemString1stLevel.replace('XXX', 'Aufgaben'); const navItemFiles = navItemString1stLevel.replace('XXX', 'Dateien'); -const navItemFilesMy = navItemString2ndLevel.replace('XXX', 'persönliche Dateien'); +const navItemFilesPersonal = navItemString2ndLevel.replace('XXX', 'persönliche Dateien'); const navItemFilesCourses = navItemString2ndLevel.replace('XXX', 'Kurse'); const navItemFilesTeams = navItemString2ndLevel.replace('XXX', 'Teams'); const navItemFilesShared = navItemString2ndLevel.replace('XXX', 'geteilte Dateien'); @@ -95,8 +95,8 @@ async function clickNavItemFiles() { await clickElementFromNavigation(navItemFiles); } -async function clickNavItemFilesMy() { - await clickElementFromNavigation(navItemFilesMy); +async function clickNavItemFilesPersonal() { + await clickElementFromNavigation(navItemFilesPersonal); } async function clickNavItemFilesCourses() { @@ -217,7 +217,7 @@ module.exports = { clickNavItemTeams, clickNavItemTasks, clickNavItemFiles, - clickNavItemFilesMy, + clickNavItemFilesPersonal, clickNavItemFilesCourses, clickNavItemFilesTeams, clickNavItemFilesShared, diff --git a/step_definitions/navigation_bar_left/leftNavigationBar_steps.js b/step_definitions/navigation_bar_left/leftNavigationBar_steps.js index fbf188f7..3931313d 100644 --- a/step_definitions/navigation_bar_left/leftNavigationBar_steps.js +++ b/step_definitions/navigation_bar_left/leftNavigationBar_steps.js @@ -15,8 +15,8 @@ Then(/^.*clicks left navigation item '([^']*)'$/, function (string) { return leftNavigation.clickNavItemTasks(); case leftMenuItems.FILES: return leftNavigation.clickNavItemFiles(); - case leftMenuItems.MYFILES: - return leftNavigation.clickNavItemFilesMy(); + case leftMenuItems.PERSONALFILES: + return leftNavigation.clickNavItemFilesPersonal(); case leftMenuItems.COURSEFILES: return leftNavigation.clickNavItemFilesCourses(); case leftMenuItems.TEAMFILES: @@ -56,7 +56,7 @@ Then(/^.*clicks left navigation item '([^']*)'$/, function (string) { /* add after the rooms-overview element is ready case leftMenuItems.ROOMS_OVERVIEW:: return leftNavigation.clickNavItemHelpRoomsOverview(); - */ + */ default: return Error("no such element found in 'click left navigation item {string}' " + navigationItem); }