From 6fe28cca532bab199aa9b641f69c978f5b6c9ad6 Mon Sep 17 00:00:00 2001 From: Eddie Antonio Santos Date: Tue, 5 Mar 2019 15:16:28 -0700 Subject: [PATCH] Adjust test for #91 to be more robust. --- .../features/gh-issue-091-source-superscripts.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/neahtta/cypress/integration/features/gh-issue-091-source-superscripts.js b/neahtta/cypress/integration/features/gh-issue-091-source-superscripts.js index 12e125bb..1fc4d95d 100644 --- a/neahtta/cypress/integration/features/gh-issue-091-source-superscripts.js +++ b/neahtta/cypress/integration/features/gh-issue-091-source-superscripts.js @@ -42,10 +42,10 @@ describe('Concise representations of dictionary sources', function () { .contains('.lexeme', 'âhkamêyihtam') .as('lexeme'); - let translation1 = /He keeps on thinking of what has to be done[.]?\s+MD/ - let translation2 = /s\/he continues to think of future deeds or tasks[.]?\s+CW/; - let both = new RegExp(`${translation1.source};\\s+${translation2.source}|` + - `${translation2.source};\\s+${translation1.source}`); + let translation1 = /He keeps on thinking of what has to be done[.]?\s*MD/ + let translation2 = /s\/he continues to think of future deeds or tasks[.]?\s*CW/; + let both = new RegExp(`${translation1.source}\\s*;\\s+${translation2.source}|` + + `${translation2.source}\\s*;\\s+${translation1.source}`); cy.get('@lexeme').get('.meanings') .invoke('text') .should('match', translation1)