feat(assessment): record capture hints and keep one window per attempt
This commit is contained in:
1 parent
c975a0d506
commit
bb917bf62e
108 files changed
+6649
-139
No files matched your search
@@ -4,8 +4,25 @@ import { knownSignalNoticeVersion } from "../model/notice-content";
|
||||
import { SignalNoticeContent, SignalNoticeDialog, SignalNoticeSummary } from "./signal-notice";
|
||||
|
||||
describe("signal notice", () => {
|
||||
it("is version 3, the text that describes the watermark", () => {
|
||||
expect(knownSignalNoticeVersion).toBe(3);
|
||||
it("is version 4, the text that adds the capture hints and the one-window rule", () => {
|
||||
expect(knownSignalNoticeVersion).toBe(4);
|
||||
});
|
||||
|
||||
it("lists the screenshot keys, the developer tools hint, the User-Agent digest, and the single window", () => {
|
||||
const markup = renderToStaticMarkup(<SignalNoticeContent headingLevel="h3" />);
|
||||
expect(markup).toContain("Клавиши снимка экрана");
|
||||
expect(markup).toContain("сам снимок страница не видит и не блокирует");
|
||||
expect(markup).toContain("Признаки открытых инструментов разработчика");
|
||||
expect(markup).toContain("Тип браузера (User-Agent)");
|
||||
expect(markup).toContain("Одно окно");
|
||||
});
|
||||
|
||||
it("says plainly that a screenshot or a photo cannot be prevented and that signals never lower a grade by themselves", () => {
|
||||
const markup = renderToStaticMarkup(<SignalNoticeContent headingLevel="h3" />);
|
||||
expect(markup).toContain("Чего эти меры не делают");
|
||||
expect(markup).toContain("Снимок экрана и фото экрана телефоном предотвратить нельзя");
|
||||
expect(markup).toContain("не к автоматическому снижению оценки");
|
||||
expect(markup).toContain("Работодатель их не видит");
|
||||
});
|
||||
|
||||
it("lists every measure the page applies during a real attempt", () => {
|
||||
|
||||
@@ -3,6 +3,7 @@ import { Button } from "../../../shared/ui";
|
||||
import {
|
||||
attemptMeasures,
|
||||
browserSignals,
|
||||
limits,
|
||||
notCollected,
|
||||
serverSignals,
|
||||
type DisclosedSignal,
|
||||
@@ -42,6 +43,12 @@ export function SignalNoticeContent({ headingLevel }: ContentProps) {
|
||||
<SignalList signals={attemptMeasures} />
|
||||
<Heading>Что измеряет сервер</Heading>
|
||||
<SignalList signals={serverSignals} />
|
||||
<Heading>Чего эти меры не делают</Heading>
|
||||
<ul>
|
||||
{limits.map((item) => (
|
||||
<li key={item}>{item}</li>
|
||||
))}
|
||||
</ul>
|
||||
<Heading>Что не собирается</Heading>
|
||||
<ul>
|
||||
{notCollected.map((item) => (
|
||||
|
||||
Reference in new issue
Block a user