diff --git a/app/views/articles/index.html.erb b/app/views/articles/index.html.erb index 800a7d99a..7ca95e4d8 100644 --- a/app/views/articles/index.html.erb +++ b/app/views/articles/index.html.erb @@ -44,22 +44,23 @@ diff --git a/app/views/stories/tagged_articles/index.html.erb b/app/views/stories/tagged_articles/index.html.erb index 2899c49f8..e693c48da 100644 --- a/app/views/stories/tagged_articles/index.html.erb +++ b/app/views/stories/tagged_articles/index.html.erb @@ -56,22 +56,23 @@ diff --git a/cypress/integration/homeFeedFlows/feedNavigation.spec.js b/cypress/integration/homeFeedFlows/feedNavigation.spec.js index f3c6d833d..19520832e 100644 --- a/cypress/integration/homeFeedFlows/feedNavigation.spec.js +++ b/cypress/integration/homeFeedFlows/feedNavigation.spec.js @@ -26,17 +26,17 @@ describe('Home Feed Navigation', () => { 'page', ); - cy.get('@week').should('have.attr', 'aria-current', ''); - cy.get('@month').should('have.attr', 'aria-current', ''); - cy.get('@year').should('have.attr', 'aria-current', ''); - cy.get('@infinity').should('have.attr', 'aria-current', ''); + cy.get('@week').should('not.have.attr', 'aria-current'); + cy.get('@month').should('not.have.attr', 'aria-current'); + cy.get('@year').should('not.have.attr', 'aria-current'); + cy.get('@infinity').should('not.have.attr', 'aria-current'); }); }); it('should navigate to Week view', () => { cy.findByRole('navigation', { name: 'View posts by' }).within(() => { cy.findByRole('link', { name: 'Week' }).as('week'); - cy.get('@week').should('have.attr', 'aria-current', ''); + cy.get('@week').should('not.have.attr', 'aria-current'); cy.get('@week').click(); }); @@ -54,7 +54,7 @@ describe('Home Feed Navigation', () => { it('should navigate to Month view', () => { cy.findByRole('navigation', { name: 'View posts by' }).within(() => { cy.findByRole('link', { name: 'Month' }).as('month'); - cy.get('@month').should('have.attr', 'aria-current', ''); + cy.get('@month').should('not.have.attr', 'aria-current'); cy.get('@month').click(); }); @@ -72,7 +72,7 @@ describe('Home Feed Navigation', () => { it('should navigate to Year view', () => { cy.findByRole('navigation', { name: 'View posts by' }).within(() => { cy.findByRole('link', { name: 'Year' }).as('year'); - cy.get('@year').should('have.attr', 'aria-current', ''); + cy.get('@year').should('not.have.attr', 'aria-current'); cy.get('@year').click(); }); @@ -90,7 +90,7 @@ describe('Home Feed Navigation', () => { it('should navigate to Infinity view', () => { cy.findByRole('navigation', { name: 'View posts by' }).within(() => { cy.findByRole('link', { name: 'Infinity' }).as('infinity'); - cy.get('@infinity').should('have.attr', 'aria-current', ''); + cy.get('@infinity').should('not.have.attr', 'aria-current'); cy.get('@infinity').click(); }); diff --git a/cypress/integration/tagsFlows/tagIndexNavigation.spec.js b/cypress/integration/tagsFlows/tagIndexNavigation.spec.js index 329ad8120..51719b8be 100644 --- a/cypress/integration/tagsFlows/tagIndexNavigation.spec.js +++ b/cypress/integration/tagsFlows/tagIndexNavigation.spec.js @@ -25,18 +25,18 @@ describe('Tag index page navigation', () => { 'page', ); - cy.get('@week').should('have.attr', 'aria-current', ''); - cy.get('@month').should('have.attr', 'aria-current', ''); - cy.get('@year').should('have.attr', 'aria-current', ''); - cy.get('@infinity').should('have.attr', 'aria-current', ''); - cy.get('@latest').should('have.attr', 'aria-current', ''); + cy.get('@week').should('not.have.attr', 'aria-current'); + cy.get('@month').should('not.have.attr', 'aria-current'); + cy.get('@year').should('not.have.attr', 'aria-current'); + cy.get('@infinity').should('not.have.attr', 'aria-current'); + cy.get('@latest').should('not.have.attr', 'aria-current'); }); }); it('should navigate to Week view', () => { cy.findByRole('navigation', { name: 'View tagged posts by' }).within(() => { cy.findByRole('link', { name: 'Week' }).as('week'); - cy.get('@week').should('have.attr', 'aria-current', ''); + cy.get('@week').should('not.have.attr', 'aria-current'); cy.get('@week').click(); }); @@ -54,7 +54,7 @@ describe('Tag index page navigation', () => { it('should navigate to Month view', () => { cy.findByRole('navigation', { name: 'View tagged posts by' }).within(() => { cy.findByRole('link', { name: 'Month' }).as('month'); - cy.get('@month').should('have.attr', 'aria-current', ''); + cy.get('@month').should('not.have.attr', 'aria-current'); cy.get('@month').click(); }); @@ -72,7 +72,7 @@ describe('Tag index page navigation', () => { it('should navigate to Year view', () => { cy.findByRole('navigation', { name: 'View tagged posts by' }).within(() => { cy.findByRole('link', { name: 'Year' }).as('year'); - cy.get('@year').should('have.attr', 'aria-current', ''); + cy.get('@year').should('not.have.attr', 'aria-current'); cy.get('@year').click(); }); @@ -90,7 +90,7 @@ describe('Tag index page navigation', () => { it('should navigate to Infinity view', () => { cy.findByRole('navigation', { name: 'View tagged posts by' }).within(() => { cy.findByRole('link', { name: 'Infinity' }).as('infinity'); - cy.get('@infinity').should('have.attr', 'aria-current', ''); + cy.get('@infinity').should('not.have.attr', 'aria-current'); cy.get('@infinity').click(); }); @@ -108,7 +108,7 @@ describe('Tag index page navigation', () => { it('should navigate to Latest view', () => { cy.findByRole('navigation', { name: 'View tagged posts by' }).within(() => { cy.findByRole('link', { name: 'Latest' }).as('latest'); - cy.get('@latest').should('have.attr', 'aria-current', ''); + cy.get('@latest').should('not.have.attr', 'aria-current'); cy.get('@latest').click(); });