Skip to content

Commit 0a76bea

Browse files
committed
Fixed datatable error
1 parent 63c64ef commit 0a76bea

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const verifyStaticElementsOfPage = () => {
4141
});
4242

4343
cy.verifyElement({
44-
labelElement: messagingMetricCardElements.RESULTS_FOR_LABEL,
44+
labelElement: messagingDataTableElements().RESULTS_FOR_LABEL,
4545
labelText: "Results for"
4646
});
4747

@@ -67,11 +67,13 @@ const verifyStaticElementsOfPage = () => {
6767

6868
cy.verifyElement({
6969
element: messagingDataTableElements().COLUMN_NAME_CAMPAIGN_NAME_LABEL,
70+
isElementVisible: false,
7071
elementText: "Campaign Name",
7172
});
7273

7374
cy.verifyElement({
7475
element: messagingDataTableElements().COLUMN_NAME_CAMPAIGN_NAME_SORTABLE_ICON,
76+
isElementVisible: false
7577
});
7678

7779
cy.verifyElement({

ui-tests/cypress/support/elements/dashboard/messaging/messaging.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const messagingDataTableElements = (index = 0) => ({
2323
RESULTS_FOR_LABEL: 'push-notifications-result-for-label',
2424
RESULTS_FOR_COMBOBOX: 'push-notifications-result-for-combobox',
2525
FILTER_PARAMETERS_SELECT: 'cly-multi-select-test-id-pseudo-input-label',
26-
EDIT_COLUMNS_BUTTON: 'cly-datatable-n-test-id-edit-columns-button',
26+
EDIT_COLUMNS_BUTTON: 'messaging-edit-columns-button',
2727

2828
EXPORT_AS_BUTTON: 'messaging-export-as-button',
2929
TABLE_SEARCH_INPUT: 'messaging-datatable-search-input',
@@ -43,7 +43,7 @@ const messagingDataTableElements = (index = 0) => ({
4343
//Columns' Rows' Datas Elements
4444
CAMPAIGN_NAME: 'datatable-messaging-campaign-name-' + index,
4545
PLATFORM: 'datatable-messaging-platform-name-' + index,
46-
CAMPAIGN_NAME_BLINKER: 'datatable-messaging-campaign-name-blinker-' + index,
46+
CAMPAIGN_NAME_BLINKER: 'datatable-messaging-blinker-' + index,
4747
CREATED_BY: 'datatable-messaging-created-by-' + index,
4848
STATUS: 'datatable-messaging-status-' + index,
4949
SENT: 'datatable-messaging-sent-' + index,

0 commit comments

Comments
 (0)