Skip to content

Commit a824ae1

Browse files
committed
updates
1 parent 0531c87 commit a824ae1

File tree

5 files changed

+19
-15
lines changed

5 files changed

+19
-15
lines changed

tests/e2e/tests/critical-path/browser/filtering.e2e.ts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,22 @@ test
8686
await t.expect(browserPage.multiSearchArea.find(browserPage.cssFilteringLabel).visible).notOk('The label of filtering type is removed');
8787
await t.expect(browserPage.keysSummary.textContent).contains('Total', 'The filter is removed');
8888
});
89-
test('Verify that user can see filtering per key name starts when he press Enter or clicks the control to filter per key name', async t => { //Check filtering labes
89+
test
90+
.after(async() => {
91+
//Clear and delete database
92+
await browserPage.deleteKeyByName(keyName);
93+
await deleteStandaloneDatabaseApi(ossStandaloneConfig);
94+
})('Verify that user can see filtering per key name starts when he press Enter or clicks the control to filter per key name', async t => { //Check filtering labes
9095
keyName = chance.word({ length: 10 });
91-
await t.expect(browserPage.keyListTable.textContent).contains('No keys to display.', 'The filtering is not set');
96+
//Add new key
97+
await browserPage.addStringKey(keyName);
9298
//Check the filtering starts by press Enter
93-
await t.typeText(browserPage.filterByPatterSearchInput, keyName);
99+
await t.typeText(browserPage.filterByPatterSearchInput, 'InvalidText');
94100
await t.pressKey('enter');
95101
await t.expect(browserPage.searchAdvices.visible).ok('The filtering is set');
96102
//Check the filtering starts by clicks the control
97103
await common.reloadPage();
98-
await t.typeText(browserPage.filterByPatterSearchInput, keyName);
104+
await t.typeText(browserPage.filterByPatterSearchInput, 'InvalidText');
99105
await t.click(browserPage.searchButton);
100106
await t.expect(browserPage.searchAdvices.visible).ok('The filtering is set');
101107
});

tests/e2e/tests/critical-path/monitor/save-commands.e2e.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ test.skip
8989
//Verify that temporary Log file Created
9090
await t.expect(numberOfTempFiles).gt(fs.readdirSync(tempDir).length, 'The temporary Log file is created');
9191
});
92-
//skipped due the temp file is not created after the start of profiler
93-
test.skip
92+
test
9493
.meta({ rte: rte.standalone })('Verify that when user switch toggle to OFF and started the Profiler, temporary Log file is not Created and recording', async t => {
9594
//Remember the number of files in Temp
9695
const numberOfTempFiles = fs.readdirSync(tempDir).length;

tests/e2e/tests/regression/browser/filtering.e2e.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,14 +147,13 @@ test
147147
await t.expect(browserPage.filterByPatterSearchInput.getAttribute('value')).eql('', 'All characters from filter input are removed');
148148
await t.expect(browserPage.clearFilterButton.visible).notOk('The clear control is disappeared');
149149
});
150-
test
151-
.after(async() => {
152-
//Delete database
153-
await deleteStandaloneDatabaseApi(ossStandaloneConfig);
154-
})('Verify that when user clicks on “clear” control and filter per key name is applied filter is reset and rescan initiated', async t => {
150+
test('Verify that when user clicks on “clear” control and filter per key name is applied filter is reset and rescan initiated', async t => {
155151
keyName = `KeyForSearch${chance.word({ length: 50 })}`;
152+
keyName2 = `KeyForFearch${chance.word({ length: 10 })}`;
153+
//Add keys
154+
await browserPage.addStringKey(keyName);
156155
//Search for not existed key name
157-
await browserPage.searchByKeyName(keyName);
156+
await browserPage.searchByKeyName(keyName2);
158157
await t.expect(browserPage.keyListTable.textContent).contains('No results found.', 'Key is not found');
159158
//Verify the clear control
160159
await t.click(browserPage.clearFilterButton);

tests/e2e/tests/regression/database/overview.e2e.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { rte } from '../../../helpers/constants';
2-
import {acceptLicenseTermsAndAddRECloudDatabase, deleteDatabase} from '../../../helpers/database';
3-
import { BrowserPage, AddRedisDatabasePage, MyRedisDatabasePage, DatabaseOverviewPage } from '../../../pageObjects';
2+
import { acceptLicenseTermsAndAddRECloudDatabase, deleteDatabase } from '../../../helpers/database';
3+
import { BrowserPage, DatabaseOverviewPage } from '../../../pageObjects';
44
import { commonUrl, cloudDatabaseConfig } from '../../../helpers/conf';
55

66
const browserPage = new BrowserPage();

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 <= 5; i++) {
115+
for (let i = 0; i <= 10; 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)