Skip to content

Fix test flakiness #350

@GauBen

Description

@GauBen

Some tests of the JSM monorepo are flaky and should be made more reliable.

Examples

  cypress    |   Running:  module/moduleTransformationTest.cy.ts                                          (7 of 39)
  cypress    | 
  cypress    | 
  cypress    |   1) "before all" hook: Create tutorial sample site for "Check the transformed module headers"
  cypress    |           cy:log ✱  Creating sample site hydrogen...
  cypress    |           cy:log ✱  Cypress env variables [object Object]
  cypress    |           cy:log ✱  Cypress prepackaged site URL jar:mvn:org.jahia.samples/javascript-modules-samples-hydrogen-prepackaged/LATEST/zip!/site.zip
  cypress    |       cy:command ✔  runProvisioningScript	Run inline script towards server: http://jahia:8080
  cypress    | 
  cypress    | 
  cypress    | cypress-terminal-report: Wrote custom logs to cypress-logs. (10ms)
  cypress    | 
  cypress    |   0 passing (33s)
  cypress    |   1 failing
  cypress    | 
  cypress    |   1) Check that the Javascript module has been transformed properly and has the proper header values
  cypress    |        "before all" hook: Create tutorial sample site for "Check the transformed module headers":
  cypress    |      CypressError: `cy.request()` timed out waiting `30000ms` for a response from your server.
  cypress    | 
  cypress    | The request we sent was:
  cypress    | 
  cypress    | Method: POST
  cypress    | URL: http://jahia:8080/modules/api/provisioning
  cypress    | 
  cypress    | No response was received within the timeout.
  cypress    |   Running:  hydrogen-tutorial/3-about-us-page.cy.ts                                        (2 of 39)
  cypress    | 
  cypress    | 
  cypress    |   1) "before all" hook: Create tutorial sample site for "a node type can be rendered using different views"
  cypress    |           cy:log ✱  Creating sample site hydrogen...
  cypress    |           cy:log ✱  Cypress env variables [object Object]
  cypress    |           cy:log ✱  Cypress prepackaged site URL jar:mvn:org.jahia.samples/javascript-modules-samples-hydrogen-prepackaged/LATEST/zip!/site.zip
  cypress    |       cy:command ✔  runProvisioningScript	Run inline script towards server: http://jahia:8080
  cypress    | 
  cypress    | 
  cypress    | cypress-terminal-report: Wrote custom logs to cypress-logs. (4ms)
  cypress    | 
  cypress    |   0 passing (33s)
  cypress    |   1 failing
  cypress    | 
  cypress    |   1) Validate the concepts of the tutorial: 3 - The "About Us" Page
  cypress    |        "before all" hook: Create tutorial sample site for "a node type can be rendered using different views":
  cypress    |      CypressError: `cy.request()` timed out waiting `30000ms` for a response from your server.
  cypress    | 
  cypress    | The request we sent was:
  cypress    | 
  cypress    | Method: POST
  cypress    | URL: http://jahia:8080/modules/api/provisioning
  cypress    | 
  cypress    | No response was received within the timeout.

Maybe the Jahia instance is not yet ready to receive commands, and this could be linked to https://github.com/Jahia/jahia-private/issues/3759. More likely unrelated...

Metadata

Metadata

Assignees

No one assigned

    Labels

    need-triageIndicates the issue is to be triaged by a team. Automatically added to the bugs triage board

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions