Skip to content

Commit

Permalink
Merge pull request #7237 from cfpb/fix/functional-test-filter-blog-ti…
Browse files Browse the repository at this point in the history
…tle-check

Remove additional redundant title check in filter-blog-posts functional test
  • Loading branch information
willbarton authored Sep 13, 2022
2 parents fb866c3 + 30c9878 commit adb2ffe
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit adb2ffe

Please sign in to comment.