Skip to content

Test fixes

Sidorela Uku requested to merge test-fixes into main

This MR is an extension of !665 (closed). It fixes:

  • aperture/001-docx_submission_spec.js: Test 2 which was failing because of class name on control-page.js file, now passes the pipeline.
    First test here fails because of timeout on file upload or not enough waiting time from cypress.

  • aperture/005-report_spec.js. Fixed the failure for Firefox, which was because typing on the data field input would not work without clearing the input first. Also noticed that for the day input, whatever you type it appears -1. For example you type 07 will appear as 06.

  • elife/modify_submission_form_spec.js: Reason of failure was that we were seeding with colab script instead of elife.

  • colab/profile_page_spec.js -- needed update to reflect the menu structure

  • colab/submission_form_spec.js -- test was unstable, because it would fail for date 1-9, fixed that.

  • CoLab and Elife tests both where using the same function to fill in the DOI field, but the test ids are different for them, which caused failure for one of both. Created a separate function for colab tests.

  • colab/email_notification_spec.js -- test was failing because one step was missing.

  • colab/manuscripts_page_checkboxes_spec.js. -- locally this passes on the pipeline there is a 'communication error' to view dashboard.

  • colab/manuscripts_page_filter_and_sort_spec.js --updated labels on the manuscripts table while filtering.

  • Added review_shared as an argument for colab and aperture during CI execution, because the checkbox 'Shared' on reviewers page was not appearing.

  • colab/manuscripts_page_filter_and_sort_spec.js -- fixed some steps on the tests cases workflow. Separated the test id variable for doi used with colab vs aperture, because both test suites where using the same variable which caused failure for one of them.

  • colab/manuscripts_page_refresh_button_spec.js -- tests are commented because the refresh button is removed from manuscripts page.

  • made some updated on the classes of the elements for the pages for all the files on cypress/page-object folder

note: description will be edited while fixing.

Edited by Sidorela Uku

Merge request reports