Fixing mirrored ExportPath

This commit is contained in:
barsdeveloper
2024-12-19 23:57:31 +02:00
parent 2173e2b421
commit e40e6ba52b
8 changed files with 276 additions and 62 deletions

View File

@@ -106,14 +106,14 @@ export default class BlueprintFixture {
async setup() {
const url = `http://127.0.0.1:${this.#port}/empty.html`
try {
await this.page.goto(url)
} catch (e) {
if (e.message.includes("ERR_CONNECTION_REFUSED")) {
await this.createServer()
await this.page.goto(url)
} else {
throw e
for (let i = 0; i < 1E4; ++i) {
try {
await this.page.goto(url, { waitUntil: "domcontentloaded" })
break
} catch (e) {
if (e.message.includes("ERR_CONNECTION_REFUSED")) {
await this.createServer()
}
}
}
this.#blueprintLocator = this.page.locator("ueb-blueprint")

View File

@@ -42,7 +42,7 @@ export const test = /**
}
)
test.setTimeout(3000)
test.setTimeout(10000)
export const expect = base.expect
export * from "@playwright/test"
@@ -194,8 +194,8 @@ export function testNode(testData) {
async ({ blueprintPage }) => {
const variadic = blueprintPage.node.getByText("Add pin")
await expect(variadic).toBeVisible()
await variadic.hover({ timeout: 1000 })
await variadic.click({ timeout: 1000 })
await variadic.hover({ timeout: 10000 })
await variadic.click({ timeout: 10000 })
expect(await blueprintPage.node.locator("ueb-pin").all()).toHaveLength(testData.pins + 1)
await variadic.blur()
}