feat(assessment): keep real attempts in fullscreen and protect the task text
This commit is contained in:
1 parent
56dcf32f8c
commit
efa41d5967
46 files changed
+1940
-72
No files matched your search
@@ -1,8 +1,32 @@
|
||||
import { renderToStaticMarkup } from "react-dom/server";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { knownSignalNoticeVersion } from "../model/notice-content";
|
||||
import { SignalNoticeContent, SignalNoticeDialog, SignalNoticeSummary } from "./signal-notice";
|
||||
|
||||
describe("signal notice", () => {
|
||||
it("is version 2, the text that added the attempt measures", () => {
|
||||
expect(knownSignalNoticeVersion).toBe(2);
|
||||
});
|
||||
|
||||
it("lists every measure the page applies during a real attempt", () => {
|
||||
const markup = renderToStaticMarkup(<SignalNoticeContent headingLevel="h3" />);
|
||||
expect(markup).toContain("Что ограничено во время теста");
|
||||
expect(markup).toContain("Полноэкранный режим");
|
||||
expect(markup).toContain("Скрытие задания");
|
||||
expect(markup).toContain("Защита текста задания");
|
||||
expect(markup).toContain("Копирование, вырезание, выделение, контекстное меню");
|
||||
expect(markup).toContain("печать текста задания отключены");
|
||||
expect(markup).toContain("Вставка в поля ответа");
|
||||
expect(markup).toContain("В редакторе кода вставка разрешена");
|
||||
expect(markup).toContain("Водяной знак на странице задания");
|
||||
expect(markup).toContain("Планируется");
|
||||
});
|
||||
|
||||
it("says that keyboard input and screen readers keep working", () => {
|
||||
const markup = renderToStaticMarkup(<SignalNoticeContent headingLevel="h3" />);
|
||||
expect(markup).toContain("Ввод с клавиатуры, чтение с экрана");
|
||||
});
|
||||
|
||||
it("lists the browser signals and the server signals", () => {
|
||||
const markup = renderToStaticMarkup(<SignalNoticeContent headingLevel="h3" />);
|
||||
expect(markup).toContain("Смена вкладки или окна");
|
||||
|
||||
Reference in new issue
Block a user