Skip to content

Commit

Permalink
Add missing pages to showcase (#906)
Browse files Browse the repository at this point in the history
This adds two pages that are present in the screenshot tests, but which
weren't yet shown on the showcase. This means that all screenshot pages can now be browsed on the showcase.
  • Loading branch information
nmattia authored Sep 22, 2022
1 parent 44db91e commit 08ca6cf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/frontend/src/showcase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { styleguide } from "./styleguide";
import { compatibilityNotice } from "./flows/compatibilityNotice";
import { aboutView } from "./flows/about";
import { faqView } from "./flows/faq";
import { showWarning } from "./banner";
import { displayUserNumber } from "./flows/displayUserNumber";
import { loginKnownAnchor } from "./flows/login/knownAnchor";
import { loginUnknownAnchor } from "./flows/login/unknownAnchor";
Expand Down Expand Up @@ -144,6 +145,8 @@ const iiPages: Record<string, () => void> = {
...simpleDevices,
recoveryPhrase,
]),
displayManageSingle: () =>
displayManage(userNumber, dummyConnection, [simpleDevices[0]]),
chooseDeviceAddFlow: () => chooseDeviceAddFlow(),
renderPollForTentativeDevicePage: () =>
renderPollForTentativeDevicePage(userNumber),
Expand Down Expand Up @@ -185,6 +188,10 @@ const iiPages: Record<string, () => void> = {
primaryButton: "Try again",
}),
promptUserNumber: () => promptUserNumber("hello", null),
banner: () => {
loginUnknownAnchor(dummyConnection);
showWarning(html`This is a test page, be very careful!`);
},
};

// The showcase
Expand Down

0 comments on commit 08ca6cf

Please sign in to comment.