Skip to content

Commit 1338c32

Browse files
committed
indexeddb
1 parent adf9167 commit 1338c32

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

playwright/src/test/java/com/microsoft/playwright/TestBrowserContextStorageState.java

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,18 @@ void shouldSupportIndexedDB() {
195195
" \"keyPath\": \"taskTitle\",\n" +
196196
" \"records\": [\n" +
197197
" {\n" +
198-
" \"value\": {\n" +
199-
" \"day\": \"01\",\n" +
200-
" \"hours\": \"1\",\n" +
201-
" \"minutes\": \"1\",\n" +
202-
" \"month\": \"January\",\n" +
203-
" \"notified\": \"no\",\n" +
204-
" \"taskTitle\": \"Pet the cat\",\n" +
205-
" \"year\": \"2025\"\n" +
198+
" \"valueEncoded\": {\n" +
199+
" \"id\": 1,\n" +
200+
" \"o\": [\n" +
201+
" {\"k\": \"taskTitle\", \"v\": \"Pet the cat\"},\n" +
202+
" {\"k\": \"hours\", \"v\": \"1\"},\n" +
203+
" {\"k\": \"minutes\", \"v\": \"1\"},\n" +
204+
" {\"k\": \"day\", \"v\": \"01\"},\n" +
205+
" {\"k\": \"month\", \"v\": \"January\"},\n" +
206+
" {\"k\": \"year\", \"v\": \"2025\"},\n" +
207+
" {\"k\": \"notified\", \"v\": \"no\"},\n" +
208+
" {\"k\": \"signature\", \"v\": { \"ta\": {\"b\":\"c2lnbmVkIGJ5IHNpbW9u\",\"k\":\"ui8\"}}}\n" +
209+
" ]\n" +
206210
" }\n" +
207211
" }\n" +
208212
" ],\n" +

playwright/src/test/resources/to-do-notifications/scripts/todo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ window.onload = () => {
140140

141141
// Grab the values entered into the form fields and store them in an object ready for being inserted into the IndexedDB
142142
const newItem = [
143-
{ taskTitle: title.value, hours: hours.value, minutes: minutes.value, day: day.value, month: month.value, year: year.value, notified: 'no' },
143+
{ taskTitle: title.value, hours: hours.value, minutes: minutes.value, day: day.value, month: month.value, year: year.value, notified: 'no', signature: new TextEncoder().encode("signed by simon") },
144144
];
145145

146146
// Open a read/write DB transaction, ready for adding the data

0 commit comments

Comments
 (0)