Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion webapp/dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ WORKDIR /src/ens-contracts
RUN git clone https://github.com/simplex-network/ens-contracts.git . \
&& git checkout "$ENS_CONTRACTS_COMMIT"
RUN npx --yes pnpm@9 install --frozen-lockfile --ignore-scripts && npx hardhat compile
COPY webapp/dev/fixtures/terms /src/test/fixtures/terms

# Hardhat's own node answers reverts without their data, which the mock needs to tell a taken name from a failure
FROM debian:bookworm-slim AS anvil
Expand Down
2 changes: 1 addition & 1 deletion webapp/e2e/mode-cache.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const expectMode = (page: Page, mode: Mode) => mode === "codes" ? expect(nameFie
// the tab coming back into view, as a reader switching back to it; headless browsers keep every tab in view
const becomeVisible = (page: Page) => page.evaluate(() => document.dispatchEvent(new Event("visibilitychange")))
// the page's own check of the service's mode, answered
const modeChecked = (page: Page) => page.waitForResponse((r) => new URL(r.url()).pathname === "/api/config")
const modeChecked = (page: Page) => page.waitForResponse((r) => new URL(r.url()).pathname === "/api/config").then((r) => r.finished())

// Every document the page loads from now on, counted as it fires load.
function loads(page: Page): { count: number } {
Expand Down
3 changes: 3 additions & 0 deletions webapp/e2e/track.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,7 @@ test("the home keeps its headline and search still as each kind of answer comes,
for (const [i, size] of FIT_SIZES.entries()) {
await page.setViewportSize(size)
await page.goto("/")
await expect(page.locator(".home .search-field")).toBeVisible()
await page.evaluate(() => document.fonts.ready.then(() => new Promise((done) => requestAnimationFrame(() => requestAnimationFrame(done)))))
const before = await homeTops(page)
const header = Math.round((await page.locator("body > header").boundingBox())!.height)
Expand Down Expand Up @@ -616,6 +617,7 @@ test.describe(() => {
await page.setViewportSize(size)
await page.goto("/#/trademarks")
await page.goto("/")
await expect(page.locator(".home .search-field")).toBeVisible()
await page.evaluate(() => document.fonts.ready)
const empty = await homeTops(page)
await page.getByLabel("Name", { exact: true }).fill(label)
Expand Down Expand Up @@ -900,6 +902,7 @@ for (const length of [10, MAX_LABEL_LENGTH]) {
for (const size of FIT_SIZES) {
await page.setViewportSize(size)
await page.goto("/")
await expect(page.locator(".home .search-field")).toBeVisible()
await page.evaluate(() => document.fonts.ready.then(() => new Promise((done) => requestAnimationFrame(() => requestAnimationFrame(done)))))
const before = await homeTops(page)
await page.getByLabel("Name", { exact: true }).fill(label)
Expand Down
Loading