Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/e2e/tests/web/regression/browser/add-keys.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ test('Verify that user can add json with BigInt', async t => {
await t.click(browserPage.addKeyButton);

await t.click(browserPage.editJsonObjectButton);
await t.expect(await browserPage.jsonValueInput.textContent).contains('result', 'edit value is empty');
await t.expect(await browserPage.jsonValueInput.textContent).contains('message', 'edit value is empty');
await t.click(browserPage.cancelEditButton);

await t.click(browserPage.expandJsonObject);
Expand Down
11 changes: 3 additions & 8 deletions tests/e2e/tests/web/regression/browser/formatters.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,14 @@ fixture `Formatters`
.beforeEach(async() => {
await databaseHelper.acceptLicenseTermsAndAddDatabaseApi(ossStandaloneV8Config);

await populateHashWithFields(ossStandaloneV8Config.host, ossStandaloneV8Config.port, keyToAddParameters);
})
.afterEach(async() => {
// Clear keys and database
await apiKeyRequests.deleteKeyByNameApi(keyName, ossStandaloneV8Config.databaseName);
await databaseAPIRequests.deleteStandaloneDatabaseApi(ossStandaloneV8Config);
});

test.before(async t => {
await databaseHelper.acceptLicenseTermsAndAddDatabaseApi(ossStandaloneV8Config);

})('Verify that UTF8 in PHP serialized', async t => {
test('Verify that UTF8 in PHP serialized', async t => {
const phpValueChinese = '测试';
const phpValueCRussian = 'Привет мир!';
const setValue =`SET ${keyName} "a:3:{s:4:\\"name\\";s:6:\\"${phpValueChinese}\\";s:3:\\"age\\";i:30;s:7:\\"message\\";s:20:\\"${phpValueCRussian}\\";}"\n`;
Expand All @@ -56,11 +52,10 @@ test('Verify that dataTime is displayed in Java serialized', async t => {
const hexValue ='ACED00057372000E6A6176612E7574696C2E44617465686A81014B59741903000078707708000000BEACD0567278';
const javaTimeValue = '"1995-12-14T12:12:01.010Z"'

await browserPage.openKeyDetailsByKeyName(keyName);
await browserPage.addHashKey(keyName);
// Add valid value in HEX format for convertion
await browserPage.selectFormatter('HEX');
await browserPage.editHashKeyValue(hexValue);
await browserPage.selectFormatter('Java serialized');
await t.expect(browserPage.hashFieldValue.innerText).eql(javaTimeValue, 'data is not serialized in java')

await t.expect(browserPage.hashFieldValue.innerText).eql(javaTimeValue, 'data is not serialized in java');
});
Loading