From 6c1857b133aa5d9702b47ed64ee506eccf3bfd9b Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 30 Jan 2022 14:03:50 +0100 Subject: [PATCH] fix(tests): assert absence of last viewed headline more precisely --- cypress/integration/list/list-history.spec.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cypress/integration/list/list-history.spec.js b/cypress/integration/list/list-history.spec.js index 57e802148..27a2a8c18 100644 --- a/cypress/integration/list/list-history.spec.js +++ b/cypress/integration/list/list-history.spec.js @@ -10,9 +10,8 @@ describe('List History', () => { cy.visit('/') cy.wait('@loadNamespaces') - cy.get('h3') - .contains('Last viewed') - .should('not.exist') + cy.get('body') + .should('not.contain', 'Last viewed') cy.visit(`/lists/${lists[0].id}`) cy.wait('@loadNamespaces')