Skip to content

Commit 4223bf6

Browse files
committed
fixes for failed after hooks
1 parent b57cafd commit 4223bf6

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

tests/e2e/pageObjects/browser-page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,7 @@ export class BrowserPage extends InstancePage {
931931
const rememberedScanResults = Number((await this.keysNumberOfResults.textContent).replace(/\s/g, ''));
932932
await t.expect(this.progressKeyList.exists).notOk('Progress Bar is still displayed', { timeout: 30000 });
933933
const scannedValueText = this.scannedValue.textContent;
934-
const regExp = new RegExp(`${i} 00` + '.');
934+
const regExp = new RegExp(`${i} ` + '...');
935935
await t
936936
.expect(scannedValueText).match(regExp, `The database is not automatically scanned by ${i} 000 keys`)
937937
.click(this.scanMoreButton);

tests/e2e/tests/web/critical-path/browser/scan-keys.e2e.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ fixture `Browser - Specify Keys to Scan`
3636
await t.click(myRedisDatabasePage.NavigationPanel.settingsButton);
3737
await t.click(settingsPage.accordionAdvancedSettings);
3838
await settingsPage.changeKeysToScanValue('10000');
39+
// Open Browser page
40+
await t.click(myRedisDatabasePage.NavigationPanel.browserButton);
3941
//Clear and delete database
4042
await browserPage.Cli.sendCommandInCli(`DEL ${keys.join(' ')}`);
4143
await databaseAPIRequests.deleteStandaloneDatabaseApi(ossStandaloneConfig);

tests/e2e/tests/web/critical-path/settings/settings.e2e.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,22 @@ fixture `Settings`
2121
.clientScripts({ content: `(${explicitErrorHandler.toString()})()` })
2222
.beforeEach(async() => {
2323
await databaseHelper.acceptLicenseTerms();
24-
})
25-
.afterEach(async() => {
26-
await settingsPage.changeKeysToScanValue('10000');
2724
});
28-
test('Verify that user can customize a number of keys to scan in filters per key name or key type', async t => {
25+
test
26+
.after(async() => {
27+
await settingsPage.changeKeysToScanValue('10000');
28+
})('Verify that user can customize a number of keys to scan in filters per key name or key type', async t => {
2929
// Go to Settings page
30-
await t.click(myRedisDatabasePage.NavigationPanel.settingsButton);
31-
// Change keys to Scan
32-
await t.click(settingsPage.accordionAdvancedSettings);
33-
await settingsPage.changeKeysToScanValue('1500');
34-
// Reload Page
35-
await myRedisDatabasePage.reloadPage();
36-
// Check that value was set
37-
await t.click(settingsPage.accordionAdvancedSettings);
38-
await t.expect(settingsPage.keysToScanValue.textContent).eql('1500', 'Keys to Scan has proper value');
39-
});
30+
await t.click(myRedisDatabasePage.NavigationPanel.settingsButton);
31+
// Change keys to Scan
32+
await t.click(settingsPage.accordionAdvancedSettings);
33+
await settingsPage.changeKeysToScanValue('1500');
34+
// Reload Page
35+
await myRedisDatabasePage.reloadPage();
36+
// Check that value was set
37+
await t.click(settingsPage.accordionAdvancedSettings);
38+
await t.expect(settingsPage.keysToScanValue.textContent).eql('1500', 'Keys to Scan has proper value');
39+
});
4040
test('Verify that user can turn on/off Analytics in Settings in the application', async t => {
4141
// Go to Settings page
4242
await t.click(myRedisDatabasePage.NavigationPanel.settingsButton);

0 commit comments

Comments
 (0)