mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-21 06:05:45 +08:00
Some minor fixes and refactoring
This commit is contained in:
7
tests/fixtures/BlueprintFixture.js
vendored
7
tests/fixtures/BlueprintFixture.js
vendored
@@ -32,6 +32,12 @@ export default class BlueprintFixture {
|
||||
}
|
||||
}
|
||||
|
||||
async clone() {
|
||||
const result = new BlueprintFixture(await this.page.context().newPage())
|
||||
await result.setup()
|
||||
return result
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Locator<HTMLElement>} draggable
|
||||
* @param {Coordinates} offset
|
||||
@@ -144,6 +150,7 @@ export default class BlueprintFixture {
|
||||
}
|
||||
|
||||
async cleanup() {
|
||||
await this.page.close()
|
||||
}
|
||||
|
||||
blur() {
|
||||
|
||||
Reference in New Issue
Block a user