diff --git a/client/src/components/Header/components/universalNav.css b/client/src/components/Header/components/universalNav.css index 29adaaca3d..455f1d68f4 100644 --- a/client/src/components/Header/components/universalNav.css +++ b/client/src/components/Header/components/universalNav.css @@ -9,7 +9,7 @@ font-family: 'Lato', sans-serif; height: var(--header-height); background: var(--theme-color); - position: absolute; + position: fixed; z-index: 1000; color: var(--gray-00); width: 100%; diff --git a/cypress/integration/learn/index.js b/cypress/integration/learn/index.js index dd68bcb42d..2f75439315 100644 --- a/cypress/integration/learn/index.js +++ b/cypress/integration/learn/index.js @@ -52,7 +52,7 @@ describe('Learn Landing page (not logged in)', () => { describe('Quotes', () => { beforeEach(() => { cy.visit('/'); - cy.contains("Get started (it's free)").click({ force: true }); + cy.contains("Get started (it's free)").click(); }); it('Should show a quote', () => { @@ -71,7 +71,7 @@ describe('Quotes', () => { describe('Superblocks and Blocks', () => { beforeEach(() => { cy.visit('/'); - cy.contains("Get started (it's free)").click({ force: true }); + cy.contains("Get started (it's free)").click(); }); it('Has first superblock and block collapsed by default', () => { @@ -93,30 +93,26 @@ describe('Superblocks and Blocks', () => { }); it('Superblocks should be collapsable and foldable', () => { cy.contains(superBlockNames[0]) - .click({ - force: true - }) + .click() .should('have.attr', 'aria-expanded', 'false'); cy.contains('Basic HTML and HTML5').should('not.be.visible'); cy.contains(superBlockNames[0]) - .click({ - force: true - }) + .click() .should('have.attr', 'aria-expanded', 'true'); cy.contains('Basic HTML and HTML5').should('be.visible'); }); it('Blocks should be collapsable and foldable', () => { cy.contains('Basic HTML and HTML5') - .click({ force: true }) + .click() .should('have.attr', 'aria-expanded', 'false'); cy.contains('Introduction to Basic HTML and HTML5').should( 'not.be.visible' ); cy.contains('Basic HTML and HTML5') - .click({ force: true }) + .click() .should('have.attr', 'aria-expanded', 'true'); cy.contains('Introduction to Basic HTML and HTML5').should('be.visible'); }); diff --git a/cypress/integration/learn/navigation-buttons/update-my-account-settings-button.js b/cypress/integration/learn/navigation-buttons/update-my-account-settings-button.js index bfc78d13ef..ee8ae4d324 100644 --- a/cypress/integration/learn/navigation-buttons/update-my-account-settings-button.js +++ b/cypress/integration/learn/navigation-buttons/update-my-account-settings-button.js @@ -4,7 +4,7 @@ describe('The `Update my account settings` button works properly', function() { beforeEach(() => { cy.visit('/'); - cy.contains("Get started (it's free)").click({ force: true }); + cy.contains("Get started (it's free)").click(); }); it('Should get rendered', function() { @@ -17,7 +17,7 @@ describe('The `Update my account settings` button works properly', function() { }); it('Should take user to their account settings when clicked', function() { - cy.contains('Update my account settings').click({ force: true }); + cy.contains('Update my account settings').click(); cy.url().should('include', '/settings'); }); }); diff --git a/cypress/integration/learn/navigation-buttons/view-portfolio-button.js b/cypress/integration/learn/navigation-buttons/view-portfolio-button.js index 99d292dd78..d5cfa82683 100644 --- a/cypress/integration/learn/navigation-buttons/view-portfolio-button.js +++ b/cypress/integration/learn/navigation-buttons/view-portfolio-button.js @@ -4,7 +4,7 @@ describe('The `View my Portfolio` button works properly', function() { beforeEach(() => { cy.visit('/'); - cy.contains("Get started (it's free)").click({ force: true }); + cy.contains("Get started (it's free)").click(); }); it('Button gets rendered', function() { @@ -17,7 +17,7 @@ describe('The `View my Portfolio` button works properly', function() { }); it('Button takes user to their portfolio when clicked', function() { - cy.contains('View my Portfolio').click({ force: true }); + cy.contains('View my Portfolio').click(); cy.url().should('include', '/developmentuser'); }); });