-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: CLIN-3292 Adjuts Cypress tests
- Loading branch information
Karine St-Onge
committed
Oct 25, 2024
1 parent
ef7e818
commit ba08d59
Showing
7 changed files
with
150 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/// <reference types="cypress"/> | ||
import { getDateTime } from '../../support/utils'; | ||
import { oneMinute } from '../../support/utils'; | ||
|
||
const { strDate } = getDateTime(); | ||
|
||
beforeEach(() => { | ||
cy.removeFilesFromFolder(Cypress.config('downloadsFolder')); | ||
|
||
cy.login(); | ||
cy.visitStudiesPage(); | ||
cy.showColumn('Population'); | ||
cy.showColumn('Access Limitation'); | ||
cy.showColumn('Access Requirement'); | ||
cy.showColumn('Overall design'); | ||
cy.showColumn('Data Collection Method'); | ||
cy.showColumn('Principal Investigator(s)'); | ||
cy.showColumn('Contact person(s)'); | ||
cy.showColumn('Affiliated institution(s)'); | ||
cy.showColumn('Inclusion and exclusion criteria'); | ||
cy.showColumn('Description'); | ||
cy.wait(1000); | ||
|
||
cy.clickAndIntercept('div[id="content"] svg[data-icon="download"]', 'POST', '**/download', 1); | ||
cy.waitUntilFile(oneMinute); | ||
}); | ||
|
||
describe('Page des études - Exporter les études en TSV', () => { | ||
it('Valider le nom du fichier', () => { | ||
cy.validateFileName('cqdg-study-table-'+`${strDate.slice(0, 4)}-${strDate.slice(4, 6)}-${strDate.slice(6, 8)}`+'.tsv'); | ||
}); | ||
|
||
it('Valider les en-têtes du fichier', () => { | ||
cy.validateFileHeaders('ExportTableauStudies.json'); | ||
}); | ||
|
||
it('Valider le contenu du fichier', () => { | ||
cy.validateFileContent('ExportTableauStudies.json'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"headers": ["Code", | ||
"Name", | ||
"Domain", | ||
"Population", | ||
"Participants", | ||
"Families", | ||
"Files", | ||
"Description", | ||
"Overall Design", | ||
"Data Collection Method", | ||
"Principal Investigators", | ||
"Contact Persons", | ||
"Affiliated Institutions", | ||
"Inclusion and Exclusion Criteria"], | ||
"content": ["T-DEE", | ||
"Developmental and epileptic encephalopathies", | ||
"Neurodevelopmental Conditions", | ||
"Pediatric and adult", | ||
"588", | ||
"196", | ||
"2940", | ||
"Case-parent trio study on developmental and epileptic encephalopaties (DEE)|Description en francais, Case-parent trio study on developmental and epileptic encephalopaties (DEE)", | ||
"Case only", | ||
"Case-control", | ||
"Investigator Assessment", | ||
"Medical Records", | ||
"Toto", | ||
"Tata", | ||
"Toto Institution", | ||
"Children with a diagnosis of intractable seizures"] | ||
} |