Skip to content

Commit 9302354

Browse files
committed
updates for monitor test
1 parent 048c549 commit 9302354

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/e2e/pageObjects/monitor-page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class MonitorPage {
2424
monitorArea = Selector('[data-testid=monitor]');
2525
monitorWarningMessage = Selector('[data-testid=monitor-warning-message]');
2626
monitorCommandLinePart = Selector('[data-testid=monitor] span');
27-
monitorCommandLineTimestamp = Selector('[data-testid=monitor] span').withText(/[0-9]{2}:[0-9]{2}:[0-9]{2}.[0-9]{3}/);
27+
monitorCommandLineTimestamp = Selector('[data-testid=monitor] span').withText(/[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}/);
2828
monitorNoPermissionsMessage = Selector('[data-testid=monitor-error-message]');
2929
saveLogToolTip = Selector('[data-testid=save-log-tooltip]');
3030
monitorNotStartedElement = Selector('[data-testid=monitor-not-started]');

tests/e2e/tests/regression/monitor/monitor.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ test
112112
//Search by not existed key pattern
113113
await browserPage.searchByKeyName(`${chance.string({ length: 10 })}*`);
114114
//Check that the last child is updated
115-
for (let i = 0; i <= 10; i++) {
115+
for (let i = 0; i <= 5; i++) {
116116
const previousTimestamp = await monitorPage.monitorCommandLineTimestamp.nth(-1).textContent;
117117
await t.wait(5500);
118118
const nextTimestamp = await monitorPage.monitorCommandLineTimestamp.nth(-1).textContent;

0 commit comments

Comments
 (0)