You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constpublished=awaitrunScheduledPublicationUntil(newURL(edited.route,origin),edited.marker,"provisioned site edit publication",12)
242
+
assertIncludes(published,edited.marker,"provisioned site edit publication")
243
+
awaitstopWorker()
244
+
awaitstartWorker()
245
+
constpersisted=awaitassertPublishedWordPressPage(newURL(edited.route,origin),"provisioned site edit after restart",["publication-r2","publication-edge"])
246
+
assertIncludes(persisted,edited.marker,"provisioned site edit after restart")
if(!persistedEdit?.raw.includes(edited.marker))thrownewError(`Provisioned site edit was not retained as editable block content after restart: ${JSON.stringify(persistedPages)}.`)
240
251
}
241
252
242
253
asyncfunctionassertTwoSiteIsolation(){
@@ -420,6 +431,26 @@ async function assertImportedArtifactPages(adminHtml, imported) {
thrownewError(`Provisioned site page edit did not queue publication: status=${response.status} publication=${response.headers.get("x-wp-codebox-publication")} body=${body}.`)
446
+
}
447
+
constupdated=JSON.parse(body)
448
+
constraw=updated.content?.raw
449
+
if(typeofraw!=="string"||!raw.includes(marker)||/<!--wp:(?:html|freeform)\b/.test(raw))thrownewError(`Provisioned site page edit was not retained as native block content: ${body}.`)
0 commit comments