pix icon indicating copy to clipboard operation
pix copied to clipboard

FEATURE [test de la class colonnes dans Modulix]

Open PhilomeneChivard opened this issue 10 months ago • 5 comments

:pancakes: Problème

Le test des possibilités des colonnes

:bacon: Proposition

Branche de test

🧃 Remarques

:yum: Pour tester

https://app-pr11669.review.pix.fr/modules/test-colonne/details

PhilomeneChivard avatar Mar 13 '25 09:03 PhilomeneChivard

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


> [email protected] 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' 'tests/devcomp/integration/repositories/module-repository_test.js'


> [email protected] 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 tests/devcomp/integration/repositories/module-repository_test.js



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

  62 passing (12s)
  1 failing

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


Chemin : grains[0].components[1].element.content

Error(element-permitted-content): <p> element is not permitted as content under <ol>
https://html-validate.org/rules/element-permitted-content.html

Valeur concernée à rechercher :
<ol class="modulix-two-columns"><p><strong>Télécharger depuis des sources sûres<br>💻</strong> Les logiciels depuis les sites des éditeurs officiels. 📱 Les applications depuis l’App&nbsp;Store ou le Play&nbsp;Store.</p><p><strong>Utiliser un antivirus</strong><br>Il détecte et combat les fichiers infectés, comme le fait un vaccin pour prévenir les infections. 💉</p></ol>

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


Chemin : grains[0].components[1].element.content

Error(element-permitted-content): <p> element is not permitted as content under <ol>
https://html-validate.org/rules/element-permitted-content.html

Valeur concernée à rechercher :
<ol class="modulix-two-columns"><p><strong>Télécharger depuis des sources sûres<br>💻</strong> Les logiciels depuis les sites des éditeurs officiels. 📱 Les applications depuis l’App&nbsp;Store ou le Play&nbsp;Store.</p><p><strong>Utiliser un antivirus</strong><br>Il détecte et combat les fichiers infectés, comme le fait un vaccin pour prévenir les infections. 💉</p></ol>

============================================================
: 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)



github-actions[bot] avatar Mar 13 '25 09:03 github-actions[bot]

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-bot-github avatar Mar 13 '25 09:03 pix-bot-github

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


> [email protected] 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' 'tests/devcomp/integration/repositories/module-repository_test.js'


> [email protected] 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 tests/devcomp/integration/repositories/module-repository_test.js



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

  62 passing (11s)
  1 failing

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


Chemin : grains[0].components[1].element.content

Error(element-permitted-content): <strong> element is not permitted as content under <ol>
https://html-validate.org/rules/element-permitted-content.html

Valeur concernée à rechercher :
<ol class="modulix-two-columns"><strong>Télécharger depuis des sources sûres<br>💻</strong> Les logiciels depuis les sites des éditeurs officiels. 📱 Les applications depuis l’App&nbsp;Store ou le Play&nbsp;Store.</li><li><strong>Utiliser un antivirus</strong><br>Il détecte et combat les fichiers infectés, comme le fait un vaccin pour prévenir les infections. 💉</p></li></ol>

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


Chemin : grains[0].components[1].element.content

Error(close-order): Stray end tag '</li>'
https://html-validate.org/rules/close-order.html

Valeur concernée à rechercher :
<ol class="modulix-two-columns"><strong>Télécharger depuis des sources sûres<br>💻</strong> Les logiciels depuis les sites des éditeurs officiels. 📱 Les applications depuis l’App&nbsp;Store ou le Play&nbsp;Store.</li><li><strong>Utiliser un antivirus</strong><br>Il détecte et combat les fichiers infectés, comme le fait un vaccin pour prévenir les infections. 💉</p></li></ol>

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


Chemin : grains[0].components[1].element.content

Error(close-order): Stray end tag '</p>'
https://html-validate.org/rules/close-order.html

Valeur concernée à rechercher :
<ol class="modulix-two-columns"><strong>Télécharger depuis des sources sûres<br>💻</strong> Les logiciels depuis les sites des éditeurs officiels. 📱 Les applications depuis l’App&nbsp;Store ou le Play&nbsp;Store.</li><li><strong>Utiliser un antivirus</strong><br>Il détecte et combat les fichiers infectés, comme le fait un vaccin pour prévenir les infections. 💉</p></li></ol>

============================================================
: 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)



github-actions[bot] avatar Mar 13 '25 09:03 github-actions[bot]

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


> [email protected] 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' 'tests/devcomp/integration/repositories/module-repository_test.js'


> [email protected] 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 tests/devcomp/integration/repositories/module-repository_test.js



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

  61 passing (12s)
  2 failing

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


Chemin : grains[0].components[0].element.content

Error(no-raw-characters): Raw "&" must be encoded as "&amp;"
https://html-validate.org/rules/no-raw-characters.html

Valeur concernée à rechercher :
<p> REUSSITE <br> test pictos au dessus <br> 1 élément texte ul + lix2  avec class column & img </p>

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


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

Error(no-raw-characters): Raw "&" must be encoded as "&amp;"
https://html-validate.org/rules/no-raw-characters.html

Valeur concernée à rechercher :
<p>ECHEC<br>test pictos à côté <br> 1 élément texte p x2  avec class column & img  </p>

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


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

Error(no-raw-characters): Raw "&" must be encoded as "&amp;"
https://html-validate.org/rules/no-raw-characters.html

Valeur concernée à rechercher :
<p>ECHEC<br>test pictos à côté <br> 2 éléments texte p avec class column & img  </p>

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


Chemin : grains[5].components[0].element.content

Error(no-raw-characters): Raw "&" must be encoded as "&amp;"
https://html-validate.org/rules/no-raw-characters.html

Valeur concernée à rechercher :
<p>SUSPENS<br>test pictos à côté <br> 2 éléments texte ul+li avec class column & img  </p>

============================================================
: 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)

  2) Integration | DevComp | Repositories | ModuleRepository
       #list
         errors
           if there are no duplicated IDs in modules content
             should result an empty array of duplicated IDs :

      AssertionError: expected [ …(2) ] to deeply equal []
      + expected - actual

      -[
      -  "658ae55f-8c00-415a-84ad-efa6e012c953"
      -  "016ee85c-ada6-4eb9-b6ad-1abb9965d15f"
      -]
      +[]
      
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/integration/repositories/module-repository_test.js:156:45)



github-actions[bot] avatar Mar 13 '25 11:03 github-actions[bot]

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


> [email protected] 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' 'tests/devcomp/integration/repositories/module-repository_test.js'


> [email protected] 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 tests/devcomp/integration/repositories/module-repository_test.js



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

  62 passing (12s)
  1 failing

  1) Integration | DevComp | Repositories | ModuleRepository
       #list
         errors
           if there are no duplicated IDs in modules content
             should result an empty array of duplicated IDs :

      AssertionError: expected [ …(2) ] to deeply equal []
      + expected - actual

      -[
      -  "658ae55f-8c00-415a-84ad-efa6e012c953"
      -  "016ee85c-ada6-4eb9-b6ad-1abb9965d15f"
      -]
      +[]
      
      at Context.<anonymous> (file:///home/runner/work/pix/pix/api/tests/devcomp/integration/repositories/module-repository_test.js:156:45)



github-actions[bot] avatar Mar 13 '25 11:03 github-actions[bot]

Cette pull request a été fermée car elle est inactive depuis un mois. Vous pouvez la réouvrir ou la mettre en draft pour éviter qu'elle ne soit refermée.

github-actions[bot] avatar Jul 23 '25 12:07 github-actions[bot]