import assert from "node:assert/strict"; import { readFileSync } from "node:fs"; import { fileURLToPath } from "node:url"; const pagePath = fileURLToPath(new URL("../src/features/addressbook/AddressBookPage.tsx", import.meta.url)); const stylesPath = fileURLToPath(new URL("../src/styles/addresses.css", import.meta.url)); const page = readFileSync(pagePath, "utf8"); const styles = readFileSync(stylesPath, "utf8"); assert.match(page, /SegmentedControl,[\s\S]*SelectionList,[\s\S]*SelectionListItem,[\s\S]*from "@govoplan\/core-webui"/); assert.match(page, //); assert.match(page, //); assert.match(page, /selected=\{cardDavForm\.collection_url === item\.collection_url\}/); assert.match(page, /[\s\S]*role="group"[\s\S]*value=\{conflictMergeChoices\[row\.field\] \?\? "local"\}/); assert.doesNotMatch(page, /