Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • nomad-FAIR nomad-FAIR
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 304
    • Issues 304
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 40
    • Merge requests 40
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nomad-labnomad-lab
  • nomad-FAIRnomad-FAIR
  • Issues
  • #776
Closed
Open
Issue created Mar 30, 2022 by Mohammad Nakhaee@mnakhDeveloper

Test failed only with the recorded calls

Briefly, this is what happened

  • test-integration passed
  • test-record passed
  • test failed

The example is located in src/components/uploads/UploadsPage.spec.js in branch MockedAPI.

After some investigation, the following things need to be fixed:

  • Fix the URL stored for calls in the snapshot files
  • Introduce a separate snapshot file for each test case: this ensures that each test uses the data from the actual API call.
  • Separate Keycloak state for each test to ensure that login state is isolated between tests.
  • Need to ensure that the test state is fully ready before running the tests. Both the login and the processing need to be fully done before entering the tests. This is now done with a simple 2 sec wait: a more proper mechanism should be implemented later.
Edited Apr 08, 2022 by Lauri Himanen
Assignee
Assign to
Time tracking