Skip to content

Commit

Permalink
system tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SeriousHorncat committed Oct 30, 2024
1 parent 9189994 commit f77c98d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 5 additions & 1 deletion system-tests/e2e/edit_case_analysis.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ describe('edit_case_analysis.cy.js', () => {
});

it('edits a value & saves to the analysis', () => {
cy.get('.grey-rounded-menu').invoke('attr', 'style', 'display: block; visibility: visible; opacity: 1;');
cy.get('[data-test="user-menu"]')
.find('.grey-rounded-menu')
.invoke('attr', 'style', 'display: block; visibility: visible; opacity: 1;');
cy.get('[data-test="user-menu"] > .grey-rounded-menu').contains('Edit').click();
cy.get('[data-test="user-menu"').invoke('show').click({ force: true })
cy.get('[data-test="user-menu"] > .grey-rounded-menu > :nth-child(1)').contains('Edit').click();
cy.get('.grey-rounded-menu').invoke('attr', 'style', 'display: block; visibility: hidden; opacity: 0;');
cy.get('[href="#Brief"]').click();
Expand Down
8 changes: 8 additions & 0 deletions system-tests/e2e/utilize_analysis_section_attachments.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ describe('Case Model System', () => {
cy.resetDatabase();
cy.login('vrr-prep');
cy.intercept('/rosalution/api/analysis/CPAM0002').as('analysisLoad');
cy.get('[data-test="user-menu"]')
.find('.grey-rounded-menu')
.invoke('attr', 'style', 'display: block; visibility: visible; opacity: 1;')
.as('openUserMenu');
cy.get('[data-test="user-menu"]')
.find('.grey-rounded-menu')
.invoke('attr', 'style', 'display: block; visibility: hidden; opacity: 0;')
.as('closeUserMenu');
cy.visit('analysis/CPAM0002');
});

Expand Down

0 comments on commit f77c98d

Please sign in to comment.