Skip to content

Commit 6f66637

Browse files
add messages to the assertions
1 parent 357c19c commit 6f66637

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/e2e/tests/regression/cli/cli-command-helper.e2e.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ test
106106
//Click on Read More link for selected command
107107
await t.click(cliPage.readMoreButton);
108108
//Check new opened window page with the correct URL
109-
await t.expect(getPageUrl()).eql(externalPageLink);
109+
await t.expect(getPageUrl()).eql(externalPageLink, 'The opened page');
110110
await t.switchToParentWindow();
111111
});
112112
test
@@ -126,7 +126,7 @@ test
126126
//Click on Read More link for selected command
127127
await t.click(cliPage.readMoreButton);
128128
//Check new opened window page with the correct URL
129-
await t.expect(getPageUrl()).eql(externalPageLink);
129+
await t.expect(getPageUrl()).eql(externalPageLink, 'The opened page');
130130
await t.switchToParentWindow();
131131
});
132132
test
@@ -146,7 +146,7 @@ test
146146
//Click on Read More link for selected command
147147
await t.click(cliPage.readMoreButton);
148148
//Check new opened window page with the correct URL
149-
await t.expect(getPageUrl()).eql(externalPageLink);
149+
await t.expect(getPageUrl()).eql(externalPageLink, 'The opened page');
150150
await t.switchToParentWindow();
151151
});
152152
test
@@ -184,7 +184,7 @@ test
184184
//Click on Read More link for selected command
185185
await t.click(cliPage.readMoreButton);
186186
//Check new opened window page with the correct URL
187-
await t.expect(getPageUrl()).eql(externalPageLinks[i]);
187+
await t.expect(getPageUrl()).eql(externalPageLinks[i], 'The opened page');
188188
//Close the window with external link to switch to the application window
189189
await t.closeWindow();
190190
i++;
@@ -208,7 +208,7 @@ test
208208
//Verify that user can use Read More link for Gears group in Command Helper (RedisGears module)
209209
await t.click(cliPage.readMoreButton);
210210
//Check new opened window page with the correct URL
211-
await t.expect(getPageUrl()).eql(externalPageLink);
211+
await t.expect(getPageUrl()).eql(externalPageLink, 'The opened page');
212212
//Close the window with external link to switch to the application window
213213
await t.closeWindow();
214214
});
@@ -250,7 +250,7 @@ test
250250
//Verify that user can use Read More link for Bloom, Cuckoo, CMS, TDigest, TopK groups in Command Helper (RedisBloom module).
251251
await t.click(cliPage.readMoreButton);
252252
//Check new opened window page with the correct URL
253-
await t.expect(getPageUrl()).eql(externalPageLinks[i]);
253+
await t.expect(getPageUrl()).eql(externalPageLinks[i], 'The opened page');
254254
//Close the window with external link to switch to the application window
255255
await t.closeWindow();
256256
i++;

0 commit comments

Comments
 (0)