Simple serialization entities fixes and tests

This commit is contained in:
barsdeveloper
2024-03-30 20:07:26 +01:00
parent acedafc339
commit 279163cd54
24 changed files with 315 additions and 146 deletions

View File

@@ -117,4 +117,15 @@ export default class BlueprintFixture {
async cleanup() {
}
blur() {
return this.page.evaluate(() => /** @type {HTMLElement} */(document.activeElement).blur())
}
getSerializedNodes() {
return this.blueprintLocator.evaluate(blueprint => {
blueprint.selectAll()
return blueprint.template.getCopyInputObject().getSerializedText()
})
}
}