Skip to content

Commit

Permalink
Remove test knowledge of case age UI for now #2670
Browse files Browse the repository at this point in the history
  • Loading branch information
iamleeg committed May 5, 2022
1 parent a8774d0 commit a775dd1
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe('Curator', function () {
.type('testSourceEntryID123');
cy.get('div[data-testid="gender"]').click();
cy.get('li[data-value="Female"').click();
cy.get('input[name="age"]').type('21');
// TODO UI for age entry needs redesign
cy.get('div[data-testid="ethnicity"]').click().type('Asian');
cy.get('div[data-testid="nationalities"]').type('Afghan');
cy.contains('li', 'Afghan').click();
Expand Down Expand Up @@ -177,7 +177,7 @@ describe('Curator', function () {
cy.get('svg[data-testid="verified-svg"').should('exist');
cy.contains('www.example.com');
cy.contains('Female');
cy.contains('21');
// TODO UI for demographics.age needs redesigning
cy.contains('Germany');
cy.contains('2020-01-01');
cy.contains('Recovered');
Expand Down Expand Up @@ -207,7 +207,7 @@ describe('Curator', function () {

// Demographics.
cy.get('input[name="gender"]').should('have.value', 'Female');
cy.get('input[name="age"]').should('have.value', '21');
// TODO UI for demographics.age needs redesign
cy.get('div[data-testid="occupation"]').within(() => {
cy.get('input[type="text"]').should('have.value', 'Accountant');
});
Expand Down Expand Up @@ -303,8 +303,7 @@ describe('Curator', function () {
cy.contains('No records to display').should('not.exist');
cy.contains('Male');
// What's untouched should stay as is.
cy.contains('21');

// TODO UI for demographics.age needs redesigning
// View full details about the case
cy.contains('td', 'www.example.com').click({ force: true });
// Case data.
Expand All @@ -313,7 +312,7 @@ describe('Curator', function () {
cy.contains('superuser@test.com');
cy.contains('VERIFIED');
// Demographics.
cy.contains('21');
// TODO UI for demographics.age needs redesigning
cy.contains('Male');
cy.contains('Test occupation');
cy.contains('Afghan, Albanian');
Expand Down

0 comments on commit a775dd1

Please sign in to comment.