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

Add test for BI-2353. #156

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions src/features/BI-2353.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Feature: Experiment and Observations File to accept without sub units Apps

@BI-2353
@debug
Scenario: Experiment and Observations File to accept without sub units Apps
Given a new program is created
Given user logs in as "Cucumber Breeder"
When user selects "*" on program-selection page
When user selects "Experiments & Observations" in navigation
When user selects "Import Experiments & Observations" button
And user uploads Experiments & Observations "EXP-with-sub-obs-sub-unit-id.csv" file
When user selects 'Import' button
When user pause for "30" seconds
Then user can see banner appears with an error message "Error(s) detected in file, EXP-with-sub-obs-sub-unit-id.csv. Ontology term(s) not found: SubObsUnit,SubObsUnitID,sadfasdfsdf. Import cannot proceed."
5 changes: 5 additions & 0 deletions src/files/ExperimentsImport/EXP-with-sub-obs-sub-unit-id.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Germplasm Name,Germplasm GID,Test (T) or Check (C),Exp Title ,Exp Description,Exp Unit,Exp Type,Env,Env Location,Env Year,Exp Unit ID,Exp Replicate #,Exp Block #,Row,Column,Lat,Long,Elevation,RTK,Treatment Factors,ObsUnitID,SubObsUnit,SubObsUnitID,sadfasdfsdf
Germplas127,1,C,New Trial DRP1,A new trial DRP,plot,phenotyping,New Study 15,New Location DRP6,2000,9390,1,2,4,5,,,,,Jam application,,,,
Germplas128,2,C,New Trial DRP1,A new trial DRP,plot,phenotyping,New Study 16,New Location DRP7,2000,9391,1,2,4,5,,,,,Jam application,,,,
Germplas129,3,C,New Trial DRP1,A new trial DRP,plot,phenotyping,New Study 17,New Location DRP8,2000,9392,1,2,4,5,,,,,Jam application,,,,
Germplas130,4,C,New Trial DRP1,A new trial DRP,plot,phenotyping,New Study 18,New Location DRP9,2000,9393,1,2,4,5,,,,,Jam application,,,,
Loading