mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:50:33 +08:00
Simple serialization entities fixes and tests
This commit is contained in:
11
tests/fixtures/BlueprintFixture.js
vendored
11
tests/fixtures/BlueprintFixture.js
vendored
@@ -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()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user