Skip to content

Commit

Permalink
Remove cypress tests that use notes #2673
Browse files Browse the repository at this point in the history
  • Loading branch information
abhidg committed Apr 29, 2022
1 parent 518b20e commit 4d90bc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ describe('Curator', function () {
cy.contains('li', 'Bartonella').click();
cy.get('div[data-testid="pathogens"]').type('Ebola');
cy.contains('li', 'Ebola').click();
cy.get('textarea[name="notes"]').type('test notes\non new line');
cy.server();
cy.route('POST', '/api/cases?num_cases=1').as('addCase');
cy.get('button[data-testid="submit"]').click();
Expand Down Expand Up @@ -278,10 +277,6 @@ describe('Curator', function () {
// Pathogens.
cy.contains('Bartonella');
cy.contains('Ebola');
cy.get('textarea[name="notes"]').should(
'have.value',
'test notes\non new line',
);
// Transmission.
cy.contains('Airborne infection');
cy.contains('Test route');
Expand Down Expand Up @@ -316,7 +311,6 @@ describe('Curator', function () {
cy.contains('www.example.com');
cy.contains('testSourceEntryID123');
cy.contains('superuser@test.com');
cy.contains('test notes on new line');
cy.contains('VERIFIED');
// Demographics.
cy.contains('21');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('View case', function () {
cy.visit('/cases');
cy.wait('@getCases');

cy.get('input[id="search-field"]').type('travel{enter}');
cy.get('input[id="search-field"]').type('Andorrean{enter}');

cy.get('body').then(($body) => {
if ($body.find('.iubenda-cs-accept-btn').length) {
Expand All @@ -36,10 +36,10 @@ describe('View case', function () {
});

cy.contains('France').click();
cy.contains('travelled')
cy.contains('Andorrean')
.should('have.attr', 'class')
.and('equal', 'highlighted');
cy.get('.highlighted').children('mark').contains('travel');
cy.get('.highlighted').children('mark').contains('Andorrean');
});

// View of a full case is covered in the curator test.
Expand Down

0 comments on commit 4d90bc9

Please sign in to comment.