Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Paste
P1131
(An Untitled Masterwork)
Active
Public
Actions
Authored by
anlambert
on Aug 24 2021, 3:42 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Subscribers
None
function
updateVaultItemList
(
vaultUrl
,
vaultItems
)
{
window
.
localStorage
.
setItem
(
'swh-vault-cooking-tasks'
,
JSON
.
stringify
(
vaultItems
));
return
cy
.
visit
(
vaultUrl
);
}
it
(
'should display and upgrade previous cooking tasks from the legacy format'
,
function
()
{
updateVaultItemList
(
this
.
Urls
.
browse_vault
(),
this
.
legacyVaultItems
).
then
(()
=>
{
// here we are sure that localStorage content has been modified and processed
// by code in vault-ui.js file
});
});
Event Timeline
anlambert
created this paste.
Aug 24 2021, 3:42 PM
2021-08-24 15:42:06 (UTC+2)
Log In to Comment