Simplify linking tests

This commit is contained in:
barsdeveloper
2025-02-07 00:32:48 +02:00
parent 74edd2b9d8
commit fb40bc677f
5 changed files with 158 additions and 103 deletions

View File

@@ -135,7 +135,7 @@ export default class BlueprintFixture {
/** @param {String} text */
async paste(text) {
return await this.#blueprintLocator.evaluate(
await this.#blueprintLocator.evaluate(
(blueprint, text) => {
const event = new ClipboardEvent("paste", {
bubbles: true,
@@ -147,6 +147,7 @@ export default class BlueprintFixture {
},
text
)
await this.#blueprintLocator.evaluate(b => b.template.centerContentInViewport(false))
}
async cleanup() {