@digabi/exam-engine-rendering 23.13.3-alpha.0 → 23.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@digabi/exam-engine-rendering",
|
3
|
-
"version": "23.13.
|
3
|
+
"version": "23.13.4",
|
4
4
|
"main": "./dist/index.js",
|
5
5
|
"license": "EUPL-1.1",
|
6
6
|
"files": [
|
@@ -13,7 +13,7 @@
|
|
13
13
|
"@babel/polyfill": "^7.8.7",
|
14
14
|
"@babel/preset-env": "^7.8.7",
|
15
15
|
"@babel/runtime": "^7.8.7",
|
16
|
-
"@digabi/exam-engine-core": "23.13.
|
16
|
+
"@digabi/exam-engine-core": "23.13.4",
|
17
17
|
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|
18
18
|
"babel-loader": "^10.0.0",
|
19
19
|
"child-process-promise": "^2.2.1",
|
@@ -42,5 +42,5 @@
|
|
42
42
|
"webpack-dev-server": "^5.0.0",
|
43
43
|
"webpack-merge": "^6.0.1"
|
44
44
|
},
|
45
|
-
"gitHead": "
|
45
|
+
"gitHead": "412ac2655a0011509d957ac7530a5c358b776233"
|
46
46
|
}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"testAudioAnswers.d.ts","sourceRoot":"","sources":["../../__tests__/testAudioAnswers.ts"],"names":[],"mappings":""}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const exam_engine_rendering_1 = require("@digabi/exam-engine-rendering");
|
4
|
-
const puppeteerUtils_1 = require("./puppeteerUtils");
|
5
|
-
describe('testAudioAnswers.ts — Audio answer interactions', () => {
|
6
|
-
const createPage = (0, puppeteerUtils_1.initPuppeteer)();
|
7
|
-
let page;
|
8
|
-
let ctx;
|
9
|
-
beforeAll(async () => {
|
10
|
-
ctx = await (0, exam_engine_rendering_1.previewExam)(`${__dirname}/fixtures/XX/koe.xml`);
|
11
|
-
});
|
12
|
-
afterAll(async () => {
|
13
|
-
await ctx.close();
|
14
|
-
});
|
15
|
-
beforeEach(async () => {
|
16
|
-
page = await createPage();
|
17
|
-
await (0, puppeteerUtils_1.loadExam)(page, ctx.url);
|
18
|
-
});
|
19
|
-
afterEach(async () => {
|
20
|
-
await page.close();
|
21
|
-
});
|
22
|
-
it('shows audio component', async () => {
|
23
|
-
const audio = await page.$('audio');
|
24
|
-
expect(audio).not.toBeNull();
|
25
|
-
});
|
26
|
-
it('audio can be recorded', async () => {
|
27
|
-
var _a;
|
28
|
-
const audio = await page.$('audio');
|
29
|
-
const recordButton = await (audio === null || audio === void 0 ? void 0 : audio.$('.e-button'));
|
30
|
-
const x = await ((_a = (await (recordButton === null || recordButton === void 0 ? void 0 : recordButton.getProperty('innerHTML')))) === null || _a === void 0 ? void 0 : _a.jsonValue());
|
31
|
-
expect(x).toContain('x');
|
32
|
-
});
|
33
|
-
it('audio recording can be stopped', async () => { });
|
34
|
-
it('audio recordind can e removed', async () => { });
|
35
|
-
});
|
36
|
-
//# sourceMappingURL=testAudioAnswers.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"testAudioAnswers.js","sourceRoot":"","sources":["../../__tests__/testAudioAnswers.ts"],"names":[],"mappings":";;AAAA,yEAA2E;AAE3E,qDAA0D;AAE1D,QAAQ,CAAC,iDAAiD,EAAE,GAAG,EAAE;IAC/D,MAAM,UAAU,GAAG,IAAA,8BAAa,GAAE,CAAA;IAClC,IAAI,IAAU,CAAA;IACd,IAAI,GAAmB,CAAA;IAEvB,SAAS,CAAC,KAAK,IAAI,EAAE;QACnB,GAAG,GAAG,MAAM,IAAA,mCAAW,EAAC,GAAG,SAAS,sBAAsB,CAAC,CAAA;IAC7D,CAAC,CAAC,CAAA;IAEF,QAAQ,CAAC,KAAK,IAAI,EAAE;QAClB,MAAM,GAAG,CAAC,KAAK,EAA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