fix: onboarding phase 1 follow-ups: pins, Transactions card, Import messages, docs (#384) #474

Open
maximus wants to merge 7 commits from issue-384-onboarding-followups into issue-437-test-pins
Showing only changes of commit 038bc41cb3 - Show all commits

View file

@ -303,6 +303,23 @@ describe("ImportPage — before the folder is read (#384)", () => {
}); });
}); });
describe("ImportPage — the empty state's one prop (#384)", () => {
it("an import folder stored as \"\": the 'no source' variant, as the card says", () => {
// `folderName` alone tells the variants apart: the page hands "" for "",
// as `hasFolder` (`importFolder !== null`) did, so the empty state and
// the card (`hasFolder` of `importCardModel`) keep speaking of a folder.
harness.wizard = wizard({ importFolder: "" });
harness.onboarding = path(ZERO, true);
const html = render();
expect(html).toContain("t(import.empty.noSources.title)");
expect(html).not.toContain("import.empty.noFolder.title");
expect(sentence(html)).toBe(
"t(onboarding.card.import.noSources[folder=,refresh=t(import.empty.refresh),sample=t(import.empty.createSample)])",
);
expect(highlighted(html).inner).toBe("t(import.empty.createSample)");
});
});
describe("ImportPage — files placed directly in the import folder (#427)", () => { describe("ImportPage — files placed directly in the import folder (#427)", () => {
const WARNING = "t(import.rootFiles.message["; const WARNING = "t(import.rootFiles.message[";