Skip to content

Commit

Permalink
Updating system test to match the miggrated fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
SeriousHorncat committed Jul 7, 2023
1 parent 103c171 commit 43cd2ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions system-tests/e2e/rosalution_analysis.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@ describe('As a Clinical Analyst using Rosalution for analysis', () => {

it('should allow the user to navigate the analysis via the logo, header, and section anchor links', () => {

const anchorLinks = ['Brief', 'Clinical History', 'Pedigree', 'Supporting Evidence'];
const anchorLinks = [
'Brief', 'Clinical History', 'Pedigree', 'Supporting Evidence', 'VMA21 Gene To Phenotype',
'VMA21 Molecular Mechanism', 'VMA21 Function', 'Model Goals',
];
const expectedHeaderLinks =
['CPAM0002', 'LOGIN', ...anchorLinks];

cy.wait('@analysisLoad');
cy.get('[data-test="primary-content"] > div > a')
.each(($el) => {
console.log("HELLO!!!!")
console.log($el);
cy.wrap($el).invoke('text').should('be.oneOf', expectedHeaderLinks).then((text) => {
if (anchorLinks.includes(text)) {
const anchorLink = `#${text.replace(' ', '_')}`;
console.log(anchorLink)
cy.wrap($el).click().url().should('contain', `analysis/CPAM0002${anchorLink}`);
cy.get(anchorLink);
}
Expand Down

0 comments on commit 43cd2ac

Please sign in to comment.