Skip to content

Commit

Permalink
Merge pull request #96 from bcgov/feature/frontend
Browse files Browse the repository at this point in the history
Cypress Component Testing and Storybook Stories for Common, Core, and Layout Components
  • Loading branch information
vividroyjeong authored Jan 14, 2025
2 parents 4e17cbd + ef51cf5 commit 96da318
Show file tree
Hide file tree
Showing 97 changed files with 7,847 additions and 1,521 deletions.
9 changes: 8 additions & 1 deletion frontend/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@ require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
root: true,
extends: ['plugin:vue/vue3-essential', 'eslint:recommended', '@vue/eslint-config-typescript', '@vue/eslint-config-prettier/skip-formatting', 'plugin:storybook/recommended'],
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier/skip-formatting',
'plugin:storybook/recommended',
'plugin:cypress/recommended',
],
parserOptions: {
ecmaVersion: 'latest',
},
Expand Down
18 changes: 18 additions & 0 deletions frontend/cypress.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { defineConfig } from 'cypress'

export default defineConfig({
// e2e: {
// setupNodeEvents(on, config) {
// // implement node event listeners here
// },
// },
fixturesFolder: 'cypress/fixtures',
component: {
devServer: {
framework: 'vue',
bundler: 'vite',
},
// supportFile: 'cypress/support/component.js',
supportFile: 'cypress/support/component.ts',
},
})
12 changes: 12 additions & 0 deletions frontend/cypress.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/// <reference types="cypress" />

import { MountOptions, VueWrapper } from 'cypress/vue'
import { Component } from 'vue'

declare global {
namespace Cypress {
interface Chainable {
mount(component: Component, options?: MountOptions): Chainable<VueWrapper>
}
}
}
29 changes: 29 additions & 0 deletions frontend/cypress/fixtures/ErrorLog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
- I SUCCESS - Substitution of Supplied BA/TPH as Projected values has been disabled.
092H014 0 0 600 (Rcrd ID: 2493719 ) 1 - I INVALIDSITEINFO - Height 0.0 at Projection Year 1876 is too short to generate yields for species 'FDC'
092H014 0 0 600 (Rcrd ID: 2493719 ) 1 - I SPECIESNOTFOUND - Projected data for species 'FDC' was not generated at stand age 0.0 (Calendar Year: 1876)
092H014 0 0 600 (Rcrd ID: 2493719 ) 1 - I INVALIDSITEINFO - Height 0.0 at Projection Year 1876 is too short to generate yields for species 'PLI'
092H073 0 0 2185 (Rcrd ID: 2558002 ) 1 - I SUCCESS - Directly assigning Estimated SI of 20.00 to Species 'BA' and recomputing input height.
092H073 0 0 2185 (Rcrd ID: 2558002 ) 1 - I SUCCESS - Assigning converted Estimated SI of 20.00 to Species 'HW' and recomputing input height.
092H073 0 0 2185 (Rcrd ID: 2558002 ) 1 - I SUCCESS - Based on Estimated SI of 20.00, recomputed input height for species 'BA' at reference age 20.0 to be 4.93m
092H073 0 0 2185 (Rcrd ID: 2558002 ) 1 - I SUCCESS - Based on Estimated SI of 22.28, recomputed input height for species 'HW' at reference age 20.0 to be 7.01m
092H073 0 0 2185 (Rcrd ID: 2558002 ) 1 - I INVALIDSITEINFO - Height 0.0 at Projection Year 1976 is too short to generate yields for species 'BA'
092H073 0 0 2185 (Rcrd ID: 2558002 ) 1 - I SPECIESNOTFOUND - Projected data for species 'BA' was not generated at stand age 0.0 (Calendar Year: 1976)
092H073 0 0 2185 (Rcrd ID: 2558002 ) 1 - I INVALIDSITEINFO - Height 0.0 at Projection Year 1976 is too short to generate yields for species 'HW'
092H025 0 0 388 (Rcrd ID: 6212668 ) 1 - I INVALIDSITEINFO - Height 0.0 at Projection Year 1876 is too short to generate yields for species 'FDC'
092H025 0 0 388 (Rcrd ID: 6212668 ) 1 - I SPECIESNOTFOUND - Projected data for species 'FDC' was not generated at stand age 0.0 (Calendar Year: 1876)
092H025 0 0 388 (Rcrd ID: 6212668 ) 1 - I INVALIDSITEINFO - Height 0.0 at Projection Year 1876 is too short to generate yields for species 'HW'
092G089 0 0 51042508 (Rcrd ID: 8489172 ) 1 - I INVALIDSITEINFO - Height 0.0 at Projection Year 1755 is too short to generate yields for species 'FDC'
092G089 0 0 51042508 (Rcrd ID: 8489172 ) 1 - I SPECIESNOTFOUND - Projected data for species 'FDC' was not generated at stand age 0.0 (Calendar Year: 1755)
092G089 0 0 51042508 (Rcrd ID: 8489172 ) 1 - I INVALIDSITEINFO - Height 0.0 at Projection Year 1755 is too short to generate yields for species 'HW'
083D056 0 0 30790200 (Rcrd ID: 9884561 ) 1 - I INVALIDSITEINFO - Height 0.0 at Projection Year 1761 is too short to generate yields for species 'SX'
083D056 0 0 30790200 (Rcrd ID: 9884561 ) 1 - I SPECIESNOTFOUND - Projected data for species 'SX' was not generated at stand age 0.0 (Calendar Year: 1761)
083D056 0 0 30790200 (Rcrd ID: 9884561 ) 1 - I INVALIDSITEINFO - Height 0.0 at Projection Year 1761 is too short to generate yields for species 'BL'
093C085 0 0 3402903 (Rcrd ID: 13727877 ) 1 - I INVALIDSITEINFO - Height 0.0 at Projection Year 1853 is too short to generate yields for species 'SX'
093C085 0 0 3402903 (Rcrd ID: 13727877 ) 1 - I SPECIESNOTFOUND - Projected data for species 'SX' was not generated at stand age 0.0 (Calendar Year: 1853)
093G045 0 0 85306886 (Rcrd ID: 14330826 ) 1 - I INVALIDSITEINFO - Height 0.0 at Projection Year 1913 is too short to generate yields for species 'SB'
093G045 0 0 85306886 (Rcrd ID: 14330826 ) 1 - I SPECIESNOTFOUND - Projected data for species 'SB' was not generated at stand age 0.0 (Calendar Year: 1913)
092G028 0 0 7489355 (Rcrd ID: 14473383 ) 1 - I INVALIDSITEINFO - Height 0.0 at Projection Year 1907 is too short to generate yields for species 'CW'
092G028 0 0 7489355 (Rcrd ID: 14473383 ) 1 - I SPECIESNOTFOUND - Projected data for species 'CW' was not generated at stand age 0.0 (Calendar Year: 1907)
092G028 0 0 7489355 (Rcrd ID: 14473383 ) 1 - I INVALIDSITEINFO - Height 0.0 at Projection Year 1907 is too short to generate yields for species 'HW'
093C080 0 0 42373828 (Rcrd ID: 15138818 ) 1 - I INVALIDSITEINFO - Height 0.0 at Projection Year 1913 is too short to generate yields for species 'PLI'
093C080 0 0 42373828 (Rcrd ID: 15138818 ) 1 - I SPECIESNOTFOUND - Projected data for species 'PLI' was not generated at stand age 0.0 (Calendar Year: 1913)
39 changes: 39 additions & 0 deletions frontend/cypress/fixtures/ProgressLog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@

VDYP7 Console version: '7.17d'

INI File: 'C:\Data_YC\VDYP7\ver7.33b\VDYP7\VDYP.ini'
Input Path: ''
HCSV Poly Inp: 'C:\Data_YC\VDYP7\console_instruction\virtual_tour\VDYP7_INPUT_POLY.csv'
HCSV Layer Inp: 'C:\Data_YC\VDYP7\console_instruction\virtual_tour\VDYP7_INPUT_LAYER.csv'
Output Path: 'C:\Data_YC\VDYP7\console_instruction\virtual_tour\VDYP7_OUTPUT_YLDTBL.csv'
Error File: 'C:\Data_YC\VDYP7\console_instruction\virtual_tour\VDYP7_OUTPUT_ERRMSG.txt'
Log File: 'C:\Data_YC\VDYP7\console_instruction\virtual_tour\VDYP7_OUTPUT_LOG.txt'
Debug Folder: ''
Debug Mode: 'Inactive'
Start Age: 0
End Age: 250
Start Year: N/A
End Year: N/A
Increment: 10
Inc. Ref Year: No
Inc. Crnt Year: No
Inc. Spcl Year: Yes (-9)
Back Grow Enabled: Yes
Forward Grow Enabled: Yes

Processing Polygon 2493719: '' '092H014'-600
Processing Polygon 2558002: '' '092H073'-2185
Processing Polygon 6212668: '' '092H025'-388
Processing Polygon 8489172: '' '092G089'-51042508
Processing Polygon 9884561: '' '083D056'-30790200
Processing Polygon 13727877: '' '093C085'-3402903
Processing Polygon 14330826: '' '093G045'-85306886
Processing Polygon 14473383: '' '092G028'-7489355
Processing Polygon 15138818: '' '093C080'-42373828

Processing Summary:
Polygons Processed: 9
Polygons Skipped: 0
-------
9

Loading

0 comments on commit 96da318

Please sign in to comment.