mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-30 05:02:58 +00:00
* Keep pairing QR code within compact tile * Move pairing screenshot after viewport assertion * test(pairing): verify the complete QR code on Android The native regression failed with the fixed-size SVG because the code was clipped at both screen edges. Verify the complete square and visible margins through the Android app, and keep browser geometry assertions in the pairing helper. Co-authored-by: fdkevin <25277753+fdkevin0@users.noreply.github.com> --------- Co-authored-by: fdkevin <25277753+fdkevin0@users.noreply.github.com> Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com>
40 lines
1.2 KiB
TypeScript
40 lines
1.2 KiB
TypeScript
import { test } from "../support/fixtures";
|
|
import { startIsolatedHostDaemon } from "../support/helpers/isolated-host-daemon";
|
|
import {
|
|
expectPairingOffer,
|
|
expectCompletePairingQr,
|
|
expectRelayConsent,
|
|
openPairDeviceModal,
|
|
preparePairingHost,
|
|
} from "../support/helpers/pair-device";
|
|
|
|
test("opens relay consent in browser web", async ({ page }) => {
|
|
const daemon = await startIsolatedHostDaemon("pair-device-browser-relay-off", {
|
|
mutableRelay: { enabled: false },
|
|
});
|
|
try {
|
|
await preparePairingHost(page, daemon);
|
|
await openPairDeviceModal(page);
|
|
await expectRelayConsent(page);
|
|
} finally {
|
|
await daemon.close();
|
|
}
|
|
});
|
|
|
|
test("keeps the pairing QR code inside its compact tile", async ({ page }, testInfo) => {
|
|
const daemon = await startIsolatedHostDaemon("pair-device-browser-compact", {
|
|
mutableRelay: { enabled: true },
|
|
});
|
|
try {
|
|
await preparePairingHost(page, daemon);
|
|
await page.setViewportSize({ width: 320, height: 568 });
|
|
await openPairDeviceModal(page);
|
|
await expectPairingOffer(page);
|
|
|
|
await expectCompletePairingQr(page);
|
|
await page.screenshot({ path: testInfo.outputPath("pairing-compact.png") });
|
|
} finally {
|
|
await daemon.close();
|
|
}
|
|
});
|