Files
ISA-Frontend/junit.xml
Lorenz Hilpert 34512f3b9a Set up Jest configuration and update dependencies for testing.
- ⚙️ **Config**: Added Jest configuration files for testing
- 🗑️ **Chore**: Removed unused Karma configuration and assets
- 🛠️ **Refactor**: Updated return details store methods for better clarity
- 📚 **Docs**: Enhanced comments and documentation in return details store
2025-04-02 11:09:25 +02:00

85 lines
11 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<testsuites name="jest tests" tests="38" failures="0" errors="0" time="4.387">
<testsuite name="ReturnProcessQuestions Validators" errors="0" failures="0" skipped="0" timestamp="2025-04-01T19:08:49" time="2.024" tests="22">
<testcase classname="ReturnProcessQuestions Validators validateBookCalendarQuestions should return Eligible when item is ovp and return reason is dislike" name="ReturnProcessQuestions Validators validateBookCalendarQuestions should return Eligible when item is ovp and return reason is dislike" time="0.006">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateBookCalendarQuestions should return Eligible when item is ovp, return reason is wrong_item and delivered item is provided" name="ReturnProcessQuestions Validators validateBookCalendarQuestions should return Eligible when item is ovp, return reason is wrong_item and delivered item is provided" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateBookCalendarQuestions should return Pending when item is ovp, return reason is wrong_item but delivered item is missing" name="ReturnProcessQuestions Validators validateBookCalendarQuestions should return Pending when item is ovp, return reason is wrong_item but delivered item is missing" time="0.001">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateBookCalendarQuestions should return Eligible when item is damaged" name="ReturnProcessQuestions Validators validateBookCalendarQuestions should return Eligible when item is damaged" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateBookCalendarQuestions should return NotEligible for any invalid answers" name="ReturnProcessQuestions Validators validateBookCalendarQuestions should return NotEligible for any invalid answers" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateTonDatentraegerQuestions should return Eligible when item is ovp" name="ReturnProcessQuestions Validators validateTonDatentraegerQuestions should return Eligible when item is ovp" time="0.001">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateTonDatentraegerQuestions should return Eligible when damaged and item is defective" name="ReturnProcessQuestions Validators validateTonDatentraegerQuestions should return Eligible when damaged and item is defective" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateTonDatentraegerQuestions should return NotEligible when damaged and item is not defective" name="ReturnProcessQuestions Validators validateTonDatentraegerQuestions should return NotEligible when damaged and item is not defective" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateTonDatentraegerQuestions should return NotEligible with invalid answers if keys are missing" name="ReturnProcessQuestions Validators validateTonDatentraegerQuestions should return NotEligible with invalid answers if keys are missing" time="0.001">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateNonbookQuestions should return Eligible when item is ovp and return reason is dislike" name="ReturnProcessQuestions Validators validateNonbookQuestions should return Eligible when item is ovp and return reason is dislike" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateNonbookQuestions should return Eligible when item is ovp, return reason is wrong_item and delivered item is provided" name="ReturnProcessQuestions Validators validateNonbookQuestions should return Eligible when item is ovp, return reason is wrong_item and delivered item is provided" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateNonbookQuestions should return Pending when delivered item is missing for wrong_item reason" name="ReturnProcessQuestions Validators validateNonbookQuestions should return Pending when delivered item is missing for wrong_item reason" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateNonbookQuestions should return Eligible when item is damaged" name="ReturnProcessQuestions Validators validateNonbookQuestions should return Eligible when item is damaged" time="0.001">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateNonbookQuestions should return NotEligible for invalid answers" name="ReturnProcessQuestions Validators validateNonbookQuestions should return NotEligible for invalid answers" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return Eligible when item is ovp and return reason is dislike" name="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return Eligible when item is ovp and return reason is dislike" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return Eligible when item is ovp, return reason is wrong_item and delivered item provided" name="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return Eligible when item is ovp, return reason is wrong_item and delivered item provided" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return Pending when delivered item is missing for wrong_item reason" name="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return Pending when delivered item is missing for wrong_item reason" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return Eligible when damaged and item is defective" name="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return Eligible when damaged and item is defective" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return NotEligible when damaged and item is not defective" name="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return NotEligible when damaged and item is not defective" time="0.001">
</testcase>
<testcase classname="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return NotEligible for invalid answers" name="ReturnProcessQuestions Validators validateAndereElektronischeGeraeteQuestions should return NotEligible for invalid answers" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators CategoryQuestions and Validators mapping should map each category to its questions" name="ReturnProcessQuestions Validators CategoryQuestions and Validators mapping should map each category to its questions" time="0">
</testcase>
<testcase classname="ReturnProcessQuestions Validators CategoryQuestions and Validators mapping should map each category to its validator" name="ReturnProcessQuestions Validators CategoryQuestions and Validators mapping should map each category to its validator" time="0">
</testcase>
</testsuite>
<testsuite name="ReturnDetailsStore" errors="0" failures="0" skipped="0" timestamp="2025-04-01T19:08:49" time="2.62" tests="7">
<testcase classname="ReturnDetailsStore Initialization should create an instance of ReturnDetailsStore" name="ReturnDetailsStore Initialization should create an instance of ReturnDetailsStore" time="0.016">
</testcase>
<testcase classname="ReturnDetailsStore Entity Management beforeFetch should create a new entity and set status to Pending if it does not exist" name="ReturnDetailsStore Entity Management beforeFetch should create a new entity and set status to Pending if it does not exist" time="0.004">
</testcase>
<testcase classname="ReturnDetailsStore Entity Management beforeFetch should update the existing entity status to Pending" name="ReturnDetailsStore Entity Management beforeFetch should update the existing entity status to Pending" time="0.004">
</testcase>
<testcase classname="ReturnDetailsStore Entity Management fetchSuccess should update the entity with fetched data and set status to Success" name="ReturnDetailsStore Entity Management fetchSuccess should update the entity with fetched data and set status to Success" time="0.002">
</testcase>
<testcase classname="ReturnDetailsStore Entity Management fetchError should update the entity status to Error" name="ReturnDetailsStore Entity Management fetchError should update the entity status to Error" time="0.003">
</testcase>
<testcase classname="ReturnDetailsStore fetch should call the service and update the store on success" name="ReturnDetailsStore fetch should call the service and update the store on success" time="0.004">
</testcase>
<testcase classname="ReturnDetailsStore fetch should handle errors and update the store accordingly" name="ReturnDetailsStore fetch should handle errors and update the store accordingly" time="0.002">
</testcase>
</testsuite>
<testsuite name="ReturnProcessStore" errors="0" failures="0" skipped="0" timestamp="2025-04-01T19:08:49" time="2.762" tests="9">
<testcase classname="ReturnProcessStore Initialization should create an instance of ReturnProcessStore" name="ReturnProcessStore Initialization should create an instance of ReturnProcessStore" time="0.023">
</testcase>
<testcase classname="ReturnProcessStore Initialization should have a nextId computed property" name="ReturnProcessStore Initialization should have a nextId computed property" time="0.006">
</testcase>
<testcase classname="ReturnProcessStore Entity Management should remove all entities by process id" name="ReturnProcessStore Entity Management should remove all entities by process id" time="0.004">
</testcase>
<testcase classname="ReturnProcessStore Entity Management should set an answer for a given entity" name="ReturnProcessStore Entity Management should set an answer for a given entity" time="0.003">
</testcase>
<testcase classname="ReturnProcessStore Entity Management should remove an answer for a given entity" name="ReturnProcessStore Entity Management should remove an answer for a given entity" time="0.002">
</testcase>
<testcase classname="ReturnProcessStore Entity Management should set a product category for a given entity" name="ReturnProcessStore Entity Management should set a product category for a given entity" time="0.002">
</testcase>
<testcase classname="ReturnProcessStore Process Management should initialize a new return process" name="ReturnProcessStore Process Management should initialize a new return process" time="0.003">
</testcase>
<testcase classname="ReturnProcessStore Process Management should throw an error if no returnable items are found" name="ReturnProcessStore Process Management should throw an error if no returnable items are found" time="0.009">
</testcase>
<testcase classname="ReturnProcessStore Process Management should throw an error if the number of returnable items does not match the total items" name="ReturnProcessStore Process Management should throw an error if the number of returnable items does not match the total items" time="0.004">
</testcase>
</testsuite>
</testsuites>