From 6ea03c746db2e5393d90beb0cffcbcd6e58e340f Mon Sep 17 00:00:00 2001 From: Will Barton Date: Mon, 12 Sep 2022 09:27:29 -0400 Subject: [PATCH] Remove additional redundant title check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change removes some additional checks for the `title` parameter in the URL after the `title` field is checked in the filterable list controls. The `title` parameter check was failing occasionally due to URL-encoding of the title. The title parameter check seems redundant given that we’re checking the title field of the control after applying the filters. --- .../components/filterable-lists/filter-blog-posts.cy.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/test/cypress/integration/components/filterable-lists/filter-blog-posts.cy.js b/test/cypress/integration/components/filterable-lists/filter-blog-posts.cy.js index 900514bb0fa..f01e864f81f 100644 --- a/test/cypress/integration/components/filterable-lists/filter-blog-posts.cy.js +++ b/test/cypress/integration/components/filterable-lists/filter-blog-posts.cy.js @@ -417,9 +417,6 @@ describe( 'Filter Blog Posts based on content', () => { blog.resultsHeaderContent().should( 'contain', category.get( 0 ).innerText.split( '\n' ).pop().trim() ); - // And the page url should contain "title=" title - const plusTitle = title.get( 0 ).innerText.split( ' ' ).join( '+' ); - cy.url().should( 'include', 'title=' + plusTitle ); // And the page url should contain "categories=" category cy.url().should( 'include', @@ -453,9 +450,6 @@ describe( 'Filter Blog Posts based on content', () => { ).toLowerCase() ).then( label => { blog.resultsContent().should( 'contain', label.get( 0 ).innerText ); } ); - // And the page url should contain "title=" title - const plusTitle = title.get( 0 ).innerText.split( ' ' ).join( '+' ); - cy.url().should( 'include', 'title=' + plusTitle ); // And the page url should contain "topics=" topic cy.url().should( 'include', @@ -490,9 +484,6 @@ describe( 'Filter Blog Posts based on content', () => { date.get( 0 ).getAttribute( 'datetime' ).split( '-' )[0] ); blog.resultsContent().should( 'contain', title.get( 0 ).innerText ); - // And the page url should contain "title=loans" - const plusTitle = title.get( 0 ).innerText.split( ' ' ).join( '+' ); - cy.url().should( 'include', 'title=' + plusTitle ); // And the page url should contain "from_date=2020-01-01" cy.url().should( 'include',