Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LCFS - Add Cypress Test Scenario for Multi-Schedule Compliance Report #2015

Open
AlexZorkin opened this issue Feb 13, 2025 · 0 comments
Open
Labels
Medium Medium priority Tech Debt Tech debt

Comments

@AlexZorkin
Copy link
Collaborator

Description
Create a new Cypress test scenario for the compliance reporting feature. This scenario will simulate a supplier creating a new compliance report and adding one record for each schedule type. The schedules to be tested include: Fuel Supply, Fuel Export, Other Uses, Notional Transfer, Allocation Agreement, and Fuel Supply Equipment. Once all schedules are added, the test should navigate back to the summary page and verify that each schedule section is present and expandable.

Task

  • Develop a new test scenario using the existing Cypress+Cucumber framework.
  • Simulate supplier login and creation of a new compliance report.
  • For each schedule type (Fuel Supply, Fuel Export, Other Uses, Notional Transfer, Allocation Agreement, Fuel Supply Equipment):
    • Navigate to the corresponding page.
    • Enter a valid record.
    • Return to the compliance report summary.
  • Validate that the summary page displays expandable sections for all schedule types added.

Acceptance Criteria

  • A new scenario is added to the compliance reporting test suite using Gherkin syntax.
  • The scenario covers creating a new compliance report and adding one record for each schedule type.
  • After adding all records, the summary page must display all schedule sections (Fuel Supply, Fuel Export, Other Uses, Notional Transfer, Allocation Agreement, Fuel Supply Equipment) correctly.
  • The test passes without errors and confirms that the UI reflects all schedule entries as expected.

Example Scenario (Gherkin)

Feature: Compliance Report Management

  Scenario: Supplier creates a compliance report with multiple schedule types
    Given the user is on the login page
    And the supplier logs in with valid credentials
    And they navigate to the compliance reports page
    When the supplier creates a new compliance report
    Then the compliance report introduction is shown

    # Add Fuel Supply record
    When the supplier navigates to the Fuel Supply page
    And the supplier enters a valid Fuel Supply record
    And the supplier returns to the compliance report summary

    # Add Fuel Export record
    When the supplier navigates to the Fuel Export page
    And the supplier enters a valid Fuel Export record
    And the supplier returns to the compliance report summary

    # Add Other Uses record
    When the supplier navigates to the Other Uses page
    And the supplier enters a valid Other Uses record
    And the supplier returns to the compliance report summary

    # Add Notional Transfer record
    When the supplier navigates to the Notional Transfer page
    And the supplier enters a valid Notional Transfer record
    And the supplier returns to the compliance report summary

    # Add Allocation Agreement record
    When the supplier navigates to the Allocation Agreement page
    And the supplier enters a valid Allocation Agreement record
    And the supplier returns to the compliance report summary

    # Add Fuel Supply Equipment record
    When the supplier navigates to the Fuel Supply Equipment page
    And the supplier enters a valid Fuel Supply Equipment record
    And the supplier returns to the compliance report summary

    Then the compliance report summary should display expandable sections for:
      | Fuel Supply             |
      | Fuel Export             |
      | Other Uses              |
      | Notional Transfer       |
      | Allocation Agreement    |
      | Fuel Supply Equipment   |

This ticket ensures comprehensive test coverage for all schedule types within the compliance report feature, validating that the system handles multiple schedules correctly and displays them appropriately on the summary page.

@AlexZorkin AlexZorkin added Medium Medium priority Task Work that does not directly impact the user Tech Debt Tech debt and removed Task Work that does not directly impact the user labels Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Medium Medium priority Tech Debt Tech debt
Projects
None yet
Development

No branches or pull requests

1 participant