Skip to content

[FEATURE] Create Module bases-clavier-ordinateur-2.json (MODC-606) #11235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Feb 10, 2025

Conversation

PhilomeneChivard
Copy link
Contributor

@PhilomeneChivard PhilomeneChivard commented Jan 27, 2025

🥞 Problème

On a pu couvrir tout avec clavier 1

🥓 Proposition

on fait clavier 2

🧃 Remarques

il n'y aura pas de clavier 3

😋 Pour tester

https://app-pr11235.review.pix.fr/modules/bases-clavier-2/details

Copy link
Contributor

Les tests Modulix ont échoué. Voici les détails :


> pix-api@5.27.0 modulix:test
> npm run test:api:path -- 'tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js' 'tests/devcomp/acceptance/module-instantiation_test.js' 'tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js'


> pix-api@5.27.0 test:api:path
> NODE_ENV=test mocha --exit --recursive --reporter=${MOCHA_REPORTER:-dot} tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js tests/devcomp/acceptance/module-instantiation_test.js tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js

(node:2028) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)


  ...!......................................

  41 passing (8s)
  1 failing

  1) Unit | Infrastructure | Datasources | Learning Content | ModuleDatasource
       #list
         modules content
           module "bases-clavier-2" should contain a valid structure:
     AssertionError: 
============================================================

Error: "grains[0].components[1].element.proposals[0].input" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[4].components[1].element.proposals[0].input" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[4].components[1].element.proposals[0].size" must be a positive number.
Valeur concernée à rechercher : 0

────────────────────────────────────────────────────────────

Error: "grains[7].components[2].element.url" is not allowed to be empty.
Valeur concernée à rechercher : ""

────────────────────────────────────────────────────────────

Error: "grains[7].components[2].element.solution" is not allowed to be empty.
Valeur concernée à rechercher : ""

============================================================
: expected ValidationError: "grains[0].components[1]… { …(2) } to equal undefined
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js:46:33)



@asilnomis asilnomis force-pushed the PCH-Module-Clavier-2 branch from 1d442bb to f1f5faa Compare January 28, 2025 15:14
Copy link
Contributor

Les tests Modulix ont échoué. Voici les détails :


> pix-api@5.28.0 modulix:test
> npm run test:api:path -- 'tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js' 'tests/devcomp/acceptance/module-instantiation_test.js' 'tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js'


> pix-api@5.28.0 test:api:path
> NODE_ENV=test mocha --exit --recursive --reporter=${MOCHA_REPORTER:-dot} tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js tests/devcomp/acceptance/module-instantiation_test.js tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js

(node:2030) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)

 Exception during run: SyntaxError[ @/home/runner/work/pix/pix/api/tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js ]: /home/runner/work/pix/pix/api/src/devcomp/infrastructure/datasources/learning-content/modules/bases-clavier-ordinateur-2.json: Expected ',' or '}' after property value in JSON at position 5599
    at parse (<anonymous>)
    at ModuleLoader.jsonStrategy (node:internal/modules/esm/translators:489:21)
    at callTranslator (node:internal/modules/esm/loader:428:14)
    at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:434:30)
    at async link (node:internal/modules/esm/module_job:87:21)

Copy link
Contributor

Les tests Modulix ont échoué. Voici les détails :


> pix-api@5.33.0 modulix:test
> npm run test:api:path -- 'tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js' 'tests/devcomp/acceptance/module-instantiation_test.js' 'tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js'


> pix-api@5.33.0 test:api:path
> NODE_ENV=test mocha --exit --recursive --reporter=${MOCHA_REPORTER:-dot} tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js tests/devcomp/acceptance/module-instantiation_test.js tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js

(node:2015) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)

 Exception during run: SyntaxError[ @/home/runner/work/pix/pix/api/tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js ]: /home/runner/work/pix/pix/api/src/devcomp/infrastructure/datasources/learning-content/modules/bases-clavier-ordinateur-2.json: Expected ',' or '}' after property value in JSON at position 5532
    at parse (<anonymous>)
    at ModuleLoader.jsonStrategy (node:internal/modules/esm/translators:489:21)
    at callTranslator (node:internal/modules/esm/loader:428:14)
    at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:434:30)
    at async link (node:internal/modules/esm/module_job:87:21)

Copy link
Contributor

Les tests Modulix ont échoué. Voici les détails :


> pix-api@5.33.0 modulix:test
> npm run test:api:path -- 'tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js' 'tests/devcomp/acceptance/module-instantiation_test.js' 'tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js'


> pix-api@5.33.0 test:api:path
> NODE_ENV=test mocha --exit --recursive --reporter=${MOCHA_REPORTER:-dot} tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js tests/devcomp/acceptance/module-instantiation_test.js tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js

(node:2032) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)

 Exception during run: SyntaxError[ @/home/runner/work/pix/pix/api/tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js ]: /home/runner/work/pix/pix/api/src/devcomp/infrastructure/datasources/learning-content/modules/bases-clavier-ordinateur-2.json: Expected ',' or '}' after property value in JSON at position 5567
    at parse (<anonymous>)
    at ModuleLoader.jsonStrategy (node:internal/modules/esm/translators:489:21)
    at callTranslator (node:internal/modules/esm/loader:428:14)
    at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:434:30)
    at async link (node:internal/modules/esm/module_job:87:21)

Copy link
Contributor

github-actions bot commented Feb 3, 2025

Les tests Modulix ont échoué. Voici les détails :


> pix-api@5.34.0 modulix:test
> npm run test:api:path -- 'tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js' 'tests/devcomp/acceptance/module-instantiation_test.js' 'tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js'


> pix-api@5.34.0 test:api:path
> NODE_ENV=test mocha --exit --recursive --reporter=${MOCHA_REPORTER:-dot} tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js tests/devcomp/acceptance/module-instantiation_test.js tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js

(node:2002) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)


  ...!..........................................

  45 passing (10s)
  1 failing

  1) Unit | Infrastructure | Datasources | Learning Content | ModuleDatasource
       #list
         modules content
           module "bases-clavier-2" should contain a valid structure:
     AssertionError: 
============================================================


Chemin : grains[3].components[4].element.content

Error(wcag/h37): <img> is missing required "alt" attribute
https://html-validate.org/rules/wcag/h37.html

Valeur concernée à rechercher :
<p>Certains claviers ont un pavé numérique à droite des flèches directionnelles. Le pavé numérique contient des touches supplémentaires avec tous les chiffres. Vous pouvez l’utiliser pour taper les chiffres sans utiliser la touche majuscule.</p><img src="http://www.image-heberg.fr/files/17380845144190712148.jpg" alte="Clavier comprenant un pavé numérique">

============================================================
: expected ValidationError: htmlvalidationerror { …(2) } to equal undefined
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js:46:33)



Copy link
Contributor

github-actions bot commented Feb 3, 2025

Les tests Modulix ont échoué. Voici les détails :


> pix-api@5.34.0 modulix:test
> npm run test:api:path -- 'tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js' 'tests/devcomp/acceptance/module-instantiation_test.js' 'tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js'


> pix-api@5.34.0 test:api:path
> NODE_ENV=test mocha --exit --recursive --reporter=${MOCHA_REPORTER:-dot} tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js tests/devcomp/acceptance/module-instantiation_test.js tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js

(node:2026) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)


  ...!..........................................

  45 passing (9s)
  1 failing

  1) Unit | Infrastructure | Datasources | Learning Content | ModuleDatasource
       #list
         modules content
           module "bases-clavier-2" should contain a valid structure:
     AssertionError: 
============================================================


Chemin : grains[3].components[4].element.content

Error(wcag/h37): <img> is missing required "alt" attribute
https://html-validate.org/rules/wcag/h37.html

Valeur concernée à rechercher :
<p>Certains claviers ont un pavé numérique à droite des flèches directionnelles. Le pavé numérique contient des touches supplémentaires avec tous les chiffres. Vous pouvez l’utiliser pour taper les chiffres sans utiliser la touche majuscule.</p><img src="http://www.image-heberg.fr/files/17380845144190712148.jpg" alte="Clavier comprenant un pavé numérique">

============================================================
: expected ValidationError: htmlvalidationerror { …(2) } to equal undefined
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js:46:33)



Copy link
Contributor

github-actions bot commented Feb 3, 2025

Les tests Modulix ont échoué. Voici les détails :


> pix-api@5.34.0 modulix:test
> npm run test:api:path -- 'tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js' 'tests/devcomp/acceptance/module-instantiation_test.js' 'tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js'


> pix-api@5.34.0 test:api:path
> NODE_ENV=test mocha --exit --recursive --reporter=${MOCHA_REPORTER:-dot} tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js tests/devcomp/acceptance/module-instantiation_test.js tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js

(node:2025) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)


  ...!..........................................

  45 passing (9s)
  1 failing

  1) Unit | Infrastructure | Datasources | Learning Content | ModuleDatasource
       #list
         modules content
           module "bases-clavier-2" should contain a valid structure:
     AssertionError: 
============================================================


Chemin : grains[3].components[4].element.content

Error(wcag/h37): <img> is missing required "alt" attribute
https://html-validate.org/rules/wcag/h37.html

Valeur concernée à rechercher :
<p>Certains claviers ont un pavé numérique à droite des flèches directionnelles. Le pavé numérique contient des touches supplémentaires avec tous les chiffres. Vous pouvez l’utiliser pour taper les chiffres sans utiliser la touche majuscule.</p><img src="http://www.image-heberg.fr/files/17380845144190712148.jpg" alte="Clavier comprenant un pavé numérique">

============================================================
: expected ValidationError: htmlvalidationerror { …(2) } to equal undefined
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js:46:33)



Copy link
Contributor

github-actions bot commented Feb 3, 2025

Les tests Modulix ont échoué. Voici les détails :


> pix-api@5.34.0 modulix:test
> npm run test:api:path -- 'tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js' 'tests/devcomp/acceptance/module-instantiation_test.js' 'tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js'


> pix-api@5.34.0 test:api:path
> NODE_ENV=test mocha --exit --recursive --reporter=${MOCHA_REPORTER:-dot} tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js tests/devcomp/acceptance/module-instantiation_test.js tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js

(node:2005) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)


  ...!..........................................

  45 passing (9s)
  1 failing

  1) Unit | Infrastructure | Datasources | Learning Content | ModuleDatasource
       #list
         modules content
           module "bases-clavier-2" should contain a valid structure:
     AssertionError: 
============================================================


Chemin : grains[3].components[4].element.content

Error(wcag/h37): <img> is missing required "alt" attribute
https://html-validate.org/rules/wcag/h37.html

Valeur concernée à rechercher :
<p>Certains claviers ont un pavé numérique à droite des flèches directionnelles. Le pavé numérique contient des touches supplémentaires avec tous les chiffres. Vous pouvez l’utiliser pour taper les chiffres sans utiliser la touche majuscule.</p><img src="http://www.image-heberg.fr/files/17380845144190712148.jpg" alte="Clavier comprenant un pavé numérique">

============================================================
: expected ValidationError: htmlvalidationerror { …(2) } to equal undefined
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js:46:33)



Copy link
Contributor

github-actions bot commented Feb 3, 2025

Les tests Modulix ont échoué. Voici les détails :


> pix-api@5.34.0 modulix:test
> npm run test:api:path -- 'tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js' 'tests/devcomp/acceptance/module-instantiation_test.js' 'tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js'


> pix-api@5.34.0 test:api:path
> NODE_ENV=test mocha --exit --recursive --reporter=${MOCHA_REPORTER:-dot} tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js tests/devcomp/acceptance/module-instantiation_test.js tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js

(node:2001) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)


  ...!..........................................

  45 passing (9s)
  1 failing

  1) Unit | Infrastructure | Datasources | Learning Content | ModuleDatasource
       #list
         modules content
           module "bases-clavier-2" should contain a valid structure:
     AssertionError: 
============================================================


Chemin : grains[3].components[4].element.content

Error(wcag/h37): <img> is missing required "alt" attribute
https://html-validate.org/rules/wcag/h37.html

Valeur concernée à rechercher :
<p>Certains claviers ont un pavé numérique à droite des flèches directionnelles. Le pavé numérique contient des touches supplémentaires avec tous les chiffres. Vous pouvez l’utiliser pour taper les chiffres sans utiliser la touche majuscule.</p><img src="http://www.image-heberg.fr/files/17380845144190712148.jpg" alte="Clavier comprenant un pavé numérique">

============================================================
: expected ValidationError: htmlvalidationerror { …(2) } to equal undefined
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js:46:33)



Copy link
Contributor

github-actions bot commented Feb 3, 2025

Les tests Modulix ont échoué. Voici les détails :


> pix-api@5.34.0 modulix:test
> npm run test:api:path -- 'tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js' 'tests/devcomp/acceptance/module-instantiation_test.js' 'tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js'


> pix-api@5.34.0 test:api:path
> NODE_ENV=test mocha --exit --recursive --reporter=${MOCHA_REPORTER:-dot} tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js tests/devcomp/acceptance/module-instantiation_test.js tests/devcomp/unit/infrastructure/datasources/learning-content/validation/module-validation_test.js

(node:2019) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)


  ...!..........................................

  45 passing (10s)
  1 failing

  1) Unit | Infrastructure | Datasources | Learning Content | ModuleDatasource
       #list
         modules content
           module "bases-clavier-2" should contain a valid structure:
     AssertionError: 
============================================================


Chemin : grains[3].components[4].element.content

Error(wcag/h37): <img> is missing required "alt" attribute
https://html-validate.org/rules/wcag/h37.html

Valeur concernée à rechercher :
<p>Certains claviers ont un pavé numérique à droite des flèches directionnelles. Le pavé numérique contient des touches supplémentaires avec tous les chiffres. Vous pouvez l’utiliser pour taper les chiffres sans utiliser la touche majuscule.</p><img src="http://www.image-heberg.fr/files/17380845144190712148.jpg" alte="Clavier comprenant un pavé numérique">

============================================================
: expected ValidationError: htmlvalidationerror { …(2) } to equal undefined
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/unit/infrastructure/datasources/learning-content/module-datasource_test.js:46:33)



@PhilomeneChivard PhilomeneChivard marked this pull request as ready for review February 4, 2025 16:47
@PhilomeneChivard PhilomeneChivard requested a review from a team as a code owner February 4, 2025 16:47
@pix-bot-github
Copy link

Une fois les applications déployées, elles seront accessibles via les liens suivants :

Les variables d'environnement seront accessibles via les liens suivants :

@pix-service-auto-merge pix-service-auto-merge merged commit 3383b7b into dev Feb 10, 2025
6 of 10 checks passed
@pix-service-auto-merge pix-service-auto-merge deleted the PCH-Module-Clavier-2 branch February 10, 2025 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants