Skip to content

Commit 95b88ed

Browse files
committed
update for hash test to increase speed
1 parent e3c106c commit 95b88ed

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

tests/e2e/tests/critical-path/browser/hash-field.e2e.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ test('Verify that user can search by full field name in Hash', async t => {
3232
// Search by full field name
3333
await browserPage.searchByTheValueInKeyDetails(keyFieldValue);
3434
// Check the search result
35-
let result = await browserPage.hashFieldsList.nth(0).textContent;
35+
let result = (browserPage.hashFieldsList.nth(0)).textContent;
3636
await t.expect(result).eql(keyFieldValue, 'The hash field not found by full field name');
3737
// Verify that user can search by part field name in Hash with pattern * in Hash
3838
await browserPage.searchByTheValueInKeyDetails('hashField*');
@@ -41,11 +41,9 @@ test('Verify that user can search by full field name in Hash', async t => {
4141
// Search by part field name and the * in the beggining
4242
await browserPage.searchByTheValueInKeyDetails('*11111');
4343
// Check the search result
44-
result = await browserPage.hashFieldsList.nth(0).textContent;
4544
await t.expect(result).eql(keyFieldValue, 'The hash field');
4645
// Search by part field name and the * in the middle
4746
await browserPage.searchByTheValueInKeyDetails('hash*11111');
4847
// Check the search result
49-
result = await browserPage.hashFieldsList.nth(0).textContent;
5048
await t.expect(result).eql(keyFieldValue, 'The hash field not found by pattern');
5149
});

tests/e2e/tests/critical-path/browser/json-key.e2e.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fixture `JSON Key verification`
1919
await acceptLicenseTermsAndAddDatabaseApi(ossStandaloneConfig, ossStandaloneConfig.databaseName);
2020
})
2121
.afterEach(async() => {
22-
//Clear and delete database
22+
// Clear and delete database
2323
await browserPage.deleteKeyByName(keyName);
2424
await deleteStandaloneDatabaseApi(ossStandaloneConfig);
2525
});
@@ -28,8 +28,8 @@ test('Verify that user can not add invalid JSON structure inside of created JSON
2828
// Add Json key with json object
2929
await browserPage.addJsonKey(keyName, value, keyTTL);
3030
// Check the notification message
31-
const notofication = await browserPage.getMessageText();
32-
await t.expect(notofication).contains('Key has been added', 'The notification');
31+
const notification = await browserPage.getMessageText();
32+
await t.expect(notification).contains('Key has been added', 'The notification');
3333
await t.click(browserPage.toastCloseButton);
3434
// Add key with value on the same level
3535
await browserPage.addJsonKeyOnTheSameLevel('"key1"', '{}');

0 commit comments

Comments
 (0)