Skip to content

Commit

Permalink
try using toy case study for e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelPesce committed Sep 25, 2023
1 parent f91b886 commit c4ea5e7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions electron/ui/cypress/e2e/ScenarioTests.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ describe('scenario testing', () => {
use sc_count for screenshot names to ensure they are saved in chronological order
start with 10 because starting with 0 would stop working when it hits 10
*/
let strategic_small_case_study_url = "https://github.com/project-pareto/project-pareto/raw/main/pareto/case_studies/strategic_small_case_study.xlsx"
// let strategic_small_case_study_url = "https://github.com/project-pareto/project-pareto/raw/main/pareto/case_studies/strategic_small_case_study.xlsx"
let strategic_toy_case_study_url = "https://github.com/project-pareto/project-pareto/raw/main/pareto/case_studies/strategic_toy_case_study.xlsx"
let sc_count = 10
it('test that scenario list loads properly', () => {
//load webpage
Expand All @@ -28,8 +29,8 @@ describe('scenario testing', () => {
sc_count+=1
})

it('download strategic small case study', () => {
cy.downloadFile(strategic_small_case_study_url,'cypress/downloads','strategic_small_case_study.xlsx')
it('download strategic toy case study', () => {
cy.downloadFile(strategic_toy_case_study_url,'cypress/downloads','strategic_toy_case_study.xlsx')
})

it('creates a new scenario by uploading excel sheet', () => {
Expand Down Expand Up @@ -59,7 +60,7 @@ describe('scenario testing', () => {
cy.screenshot(`${sc_count}_clicked create new scenario`)
sc_count+=1
cy.findByRole('textbox').type('cypress test')
cy.get('input[type=file]').selectFile('./cypress/downloads/strategic_small_case_study.xlsx', {
cy.get('input[type=file]').selectFile('./cypress/downloads/strategic_toy_case_study.xlsx', {
action: 'drag-drop',
force: true
})
Expand Down

0 comments on commit c4ea5e7

Please sign in to comment.