Inform the operator which phase is ongoing

Implementation status
Available
Description

As a vendor or vendor_admin user, I want to know which of the test session phases is currently ongoing: Registration, Preparation, Testing, or Evaluation to better understant the test session process and what are the next milestones and steps. 

In the session process section, if the session is not a "continuous test session" display the name of the different phases along with the dates:

  • Registration (until registration deadline)
  • Preparation (from the day after the registration deadline to the day before the session starts)
  • Testing (from the start to the end of the session)
  • Evaluation (from the day after the session ends)

Vendor and vendor_admin will see the registration phase until they have at least one system accepted to the session (then move to preparation) or until the contract reception date is set (if session requires a contract)

Vendor and vendor_admin will still see the registration phase after the registration deadline if no contract receive or system accepted to the session. + display a warning message "The registration deadline is over. You have no ongoing registration for this session. Contact the test session manager (name + email) if you have questions."
 

Documentation (Snapshot)
Breadcrumb
Acceptance criteria

V1:

  • If the session is a continuous test session, the announcement is displayed, no information about the testing phases.
  • If the user does not have vendor or vendor_admin role, the announcement is displayed, no information about the testing phases.

Otherwise:

The breadcrumb is displayed AND

  • Current phase = registration when
    • no SUT is registered
    • OR SUTs are registered but not accepted
    • OR no SUT is accepted AND the registration deadline is over (in that case, the breadcrumb is orange)
  • Current phase = preparation when at least one system is accepted to the test session AND today is before the session start date
  • Current phase = testing when
    • at least one system is accepted to the session
    • AND today is on or after the session start date
    • AND today is before or on the session end date
  • Current phase = evaluation when at least one system is accepted to the session and today is after the session end date.