Skip to content

Commit

Permalink
Fix tests for new UI
Browse files Browse the repository at this point in the history
Signed-off-by: JP Lomas <[email protected]>
  • Loading branch information
jplomas committed Nov 12, 2024
1 parent 3d90e76 commit 41f1c79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/1_load.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ describe('Basic load', () => {
});

it('loads the site', () => {
cy.get('.container > h1').should('contain.text', 'NELA API');
cy.get('.container > h1').should('contain.text', 'Demo');
});
});
4 changes: 2 additions & 2 deletions test/api.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ describe('Request to / returns the interactive front end', () => {
expectTypeOf(body).toBeArray();
});

test('One of the elements in the array should contain <h1>NELA API</h1>', () => {
expect(body).to.have.string('<h1>NELA API</h1>');
test('One of the elements in the array should contain `NELA Risk Calc API`', () => {
expect(body).to.have.string('NELA Risk Calc API');
});
});

Expand Down

0 comments on commit 41f1c79

Please sign in to comment.