Skip to content

Commit d700ba2

Browse files
committed
Updated the method names.
1 parent 457e940 commit d700ba2

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

ui-tests/cypress/e2e/dashboard/dashboards/dashboards.cy.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ describe('Create New Custom Dashboard', () => {
109109
});
110110

111111
// Duplicate dashboard
112-
dashboardsHelper.duplicateDashboard();
112+
dashboardsHelper.openDuplicateDashboard();
113113
dashboardsHelper.clickSaveDashboardButton();
114114
dashboardsHelper.verifyDashboardCreatedNotification();
115115
dashboardsHelper.closeNotification();
@@ -121,7 +121,7 @@ describe('Create New Custom Dashboard', () => {
121121
});
122122

123123
//Edit dashboard
124-
dashboardsHelper.editDashboard();
124+
dashboardsHelper.openEditDashboard();
125125
dashboardsHelper.typeDashboardName(editedDashboard.dashboardName);
126126
dashboardsHelper.selectSomeSpecificUsersDashboardVisibility();
127127
dashboardsHelper.typeEditPermissionEmail(editPermissionEmail.email);
@@ -137,7 +137,7 @@ describe('Create New Custom Dashboard', () => {
137137
});
138138

139139
//Delete dashboard
140-
dashboardsHelper.deleteDashboard();
140+
dashboardsHelper.openDeleteDashboard();
141141
dashboardsHelper.verifyDeleteDashboardPopupElements(editedDashboard.dashboardName);
142142
dashboardsHelper.clickYesDeleteDashboardButton();
143143
dashboardsHelper.verifyDashboardDeletedNotification();

ui-tests/cypress/lib/dashboard/dashboards/dashboards.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,12 @@ const selectSomeSpecificUsersDashboardVisibility = () => {
151151
cy.clickElement(customDashboardDrawerElements.DASHBOARD_VISIBILITY_RADIO_BUTTON_SOME_SPECIFIC_USERS);
152152
};
153153

154-
const duplicateDashboard = () => {
154+
const openDuplicateDashboard = () => {
155155
cy.clickElement(customDashboardElements.MORE_OPTIONS_BUTTON);
156156
cy.clickElement(customDashboardElements.MORE_OPTIONS_BUTTON_DUPLICATE_OPTION);
157157
};
158158

159-
const editDashboard = () => {
159+
const openEditDashboard = () => {
160160
cy.clickElement(customDashboardElements.MORE_OPTIONS_BUTTON);
161161
cy.clickElement(customDashboardElements.MORE_OPTIONS_BUTTON_EDIT_OPTION);
162162
};
@@ -168,7 +168,7 @@ const verifyDashboardEditedNotification = () => {
168168
});
169169
};
170170

171-
const deleteDashboard = () => {
171+
const openDeleteDashboard = () => {
172172
cy.clickElement(customDashboardElements.MORE_OPTIONS_BUTTON);
173173
cy.clickElement(customDashboardElements.MORE_OPTIONS_BUTTON_DELETE_OPTION);
174174
};
@@ -255,10 +255,10 @@ module.exports = {
255255
selectNotifyAllUsersViaEmail,
256256
selectUseCustomRefreshRate,
257257
selectSomeSpecificUsersDashboardVisibility,
258-
duplicateDashboard,
259-
editDashboard,
258+
openDuplicateDashboard,
259+
openEditDashboard,
260260
verifyDashboardEditedNotification,
261-
deleteDashboard,
261+
openDeleteDashboard,
262262
verifyDeleteDashboardPopupElements,
263263
clickYesDeleteDashboardButton,
264264
verifyDashboardDeletedNotification,

0 commit comments

Comments
 (0)