Skip to content

Commit

Permalink
docs(PPDSC-2064): doc site nav (#190)
Browse files Browse the repository at this point in the history
* feat(PPDSC-2064): feat-ppdse/2064 added with and icons

* feat(PPDSC-2064): feat-ppdse/2064 site header tidied

* feat(PPDSC-2064): feat-ppdse/2064 tidied getter functions

* feat(PPDSC-2064): feat-ppdse/2064 theme switch on lg up

* feat(PPDSC-2064): feat-ppdse/2064 added github button

* feat(PPDSC-2064): feat-ppdse/2064 added menu collapse

* feat(PPDSC-2064): feat-ppdse/2064 created menu in site

* feat(PPDSC-2064): feat-ppdse/2064 sidebar files updated

* feat(PPDSC-2064): feat-ppdse/2064 added divider on LG

* feat(PPDSC-2064): feat-ppdse/2064 updated style preset

* feat(PPDSC-2064): feat-ppdse/2064 fixed routes

* feat(PPDSC-2064): feat-ppdse/2064 selected showing lg xl

* feat(PPDSC-2064): feat-ppdse/2064 spacing fixed mobile

* feat(PPDSC-2064): feat-ppdse/2064 passed switcher props dwn

* feat(PPDSC-2064): feat-ppdse/2064 made theme switch dymanimc

* feat(PPDSC-2064): feat-ppdse/2064 added github button

* feat(PPDSC-2064): feat-ppdse/2064 added correct font

* feat(PPDSC-2064): feat-ppdse/2064 fixed github link

* feat(PPDSC-2064): feat-ppdse/2064 text on switch

* feat(PPDSC-2064): feat-ppdse/2064 added-aria-att

* feat(PPDSC-2064): feat-ppdse/2064 fixed 3 comments

* feat(PPDSC-2064): feat-ppdse/2064 fixed divider

* feat(PPDSC-2064): feat-ppdse/2064 fixed height on selected

* feat(PPDSC-2064): feat-ppdse/2064 fixed github button

* feat(PPDSC-2064): feat-ppdse/2064 changed theme switch pos

* feat(PPDSC-2064): feat-ppdse/2064 fixed site header test

* feat(PPDSC-2064): feat-ppdse/2064 fixed site header test

* feat(PPDSC-2064): feat-ppdse/2064 fixed keys

* feat(PPDSC-2064): feat-ppdse/2064 fixed keys and test

* feat(PPDSC-2064): feat-ppdse/2064 fixed keys and test

* feat(PPDSC-2064): feat-ppdse/2064 fixed sidebar test

* feat(PPDSC-2064): feat-ppdse/2064 updated snaps

* feat(PPDSC-2064): feat-ppdse/2064 updated height

* feat(PPDSC-2064): feat-ppdse/2064 tidied

* feat(PPDSC-2064): feat-ppdse/2064 updated cypress

* feat(PPDSC-2064): feat-ppdse/2064 updated file names

* feat(PPDSC-2064): feat-ppdse/2064 updated snapshots

* feat(PPDSC-2064): feat-ppdse/2064 tidied up

* feat(PPDSC-2064): feat-ppdse/2064 updated smnapshots

* feat(PPDSC-2064): feat-ppdse/2064 sidebar nav has menu

* feat(PPDSC-2064): feat-ppdse/2064 sidebar indicator working

* feat(PPDSC-2064): feat-ppdse/2064 sidebar name update

* feat(PPDSC-2064): feat-ppdse/2064 sidebar indicator height done

* feat(PPDSC-2064): feat-ppdse/2064 added marginleft

* feat(PPDSC-2064): feat-ppdse/2064 fixed sidebar width

* feat(PPDSC-2064): feat-ppdse/2064 fixed last item

* feat(PPDSC-2064): feat-ppdse/2064 fixed some on menu nav

* feat(PPDSC-2064): feat-ppdse/2064 sorted divider

* feat(PPDSC-2064): feat-ppdse/2064 fixed indicator

* feat(PPDSC-2064): feat-ppdse/2064 fixed sidebar space

* feat(PPDSC-2064): feat-ppdse/2064 adding space on github but

* feat(PPDSC-2064): feat-ppdse/2064 changed margininline

* feat(PPDSC-2064): feat-ppdse/2064 removed padding

* feat(PPDSC-2064): feat-ppdse/2064 aligned title

* feat(PPDSC-2064): feat-ppdse/2064 addressed mobile comments

* feat(PPDSC-2064): feat-ppdse/2064 menItem on site header

* feat(PPDSC-2064): feat-ppdse/2064 added mobileicon spacing

* feat(PPDSC-2064): feat-ppdse/2064 fixed spacing header

* feat(PPDSC-2064): feat-ppdse/2064 updated snaps

* feat(PPDSC-2064): feat-ppdse/2064 fixed use Router

* feat(PPDSC-2064): feat-ppdse/2064 split component

* feat(PPDSC-2064): feat-ppdse/2064 scroll working

* feat(PPDSC-2064): feat-ppdse/2064 ref on menuitem

* feat(PPDSC-2064): feat-ppdse/2064 ref on menuitem

* feat(PPDSC-2064): feat-ppdse/2064 got rid of menu selected

* docs(PPDSC-2064): docs-ppdse-2064-removed id

* docs(PPDSC-2064): docs-ppdse-2064-updated tests

* docs(PPDSC-2064): docs-ppdse-2064-moved div inside li

* docs(PPDSC-2064): docs-ppdse-2064-SH indicator working

* docs(PPDSC-2064): docs-ppdse-2064-fixed html structure

* docs(PPDSC-2064): docs-ppdse-2064-fixed stylepreset fonts

* docs(PPDSC-2064): docs-ppdse-2064-centered logo

* docs(PPDSC-2064): docs-ppdse-2064-updated tests

* docs(PPDSC-2064): docs-ppdse-2064-fixed

* docs(PPDSC-2064): docs-ppdse-2064-updated snapshots

* docs(PPDSC-2064): docs-ppdse-2064-sidebar gap fixed

* docs(PPDSC-2064): docs-ppdse-2064-fixed hoover

* docs(PPDSC-2064): docs-ppdse-2064-fixed routes and added grid

* docs(PPDSC-2064): docs-ppdse-2064-fixed changed aria labl

* docs(PPDSC-2064): docs-ppdse-2064-removed divider

* docs(PPDSC-2064): docs-ppdse-2064-uding selected reomved ind

* docs(PPDSC-2064): docs-ppdse-2064-removed indicator sidebar

* docs(PPDSC-2064): docs-ppdse-2064-fixd menu indi

* docs(PPDSC-2064): docs-ppdse-2064-grid on site header

* docs(PPDSC-2064): docs-ppdse-2064-fixed site header grid

* docs(PPDSC-2064): docs-ppdse-2064-menu site header fixed

* docs(PPDSC-2064): docs-ppdse-2064-added drawer mobile

* docs(PPDSC-2064): docs-ppdse-2064-got rid of extrs spacing

* docs(PPDSC-2064): docs-ppdse-2064-fixed title spacing

* docs(PPDSC-2064): docs-ppdse-2064-indicator now aligned

* docs(PPDSC-2064): docs-ppdse-2064-changed label to p tag

* docs(PPDSC-2064): docs-ppdse-2064-removec comments

* docs(PPDSC-2064): docs-ppdse-2064-drawer working

* docs(PPDSC-2064): docs-ppdse-2064-added drawer kground

* docs(PPDSC-2064): docs-ppdse-2064-centered

* docs(PPDSC-2064): docs-ppdse-2064-updated test and text block

* docs(PPDSC-2064): docs-ppdse-2064-tidied up

* docs(PPDSC-2064): docs-ppdse-2064-fixed header on xs

* docs(PPDSC-2064): docs-ppdse-2064-fixed h3 to p

* docs(PPDSC-2064): docs-ppdse-2064-fixed test

* docs(PPDSC-2064): docs-ppdse-2064-updated snapshots

* docs(PPDSC-2064): docs-ppdse-2064-comments

* docs(PPDSC-2064): docs-ppdse-2064-addressed comments

* docs(PPDSC-2064): docs-ppdse-2064-fixed anchor link

* docs(PPDSC-2064): docs-ppdse-2064-addressed comments

* docs(PPDSC-2064): docs-ppdse-2064-path as prop

* docs(PPDSC-2064): docs-ppdse-2064-fixed space

* docs(PPDSC-2064): docs-ppdse-2064-fixed theme

* docs(PPDSC-2064): docs-ppdse-2064-design comments

* docs(PPDSC-2064): docs-ppdse-2064-addressed pr comments

* docs(PPDSC-2064): docs-ppdse-2064-added icon as button

* docs(PPDSC-2064): docs-ppdse-2064-fixed indention divider

* docs(PPDSC-2064): docs-ppdse-2064-updated tests

* docs(PPDSC-2064): docs-ppdse-2064-tidied up

* docs(PPDSC-2064): docs-ppdse-2064-li last of tyoe 24px

* docs(PPDSC-2064): docs-ppdse-2064-fixed overview

* docs(PPDSC-2064): docs-ppdse-2064-centered?

* docs(PPDSC-2064): docs-ppdse-2064-updated tests

* docs(PPDSC-2064): docs-ppdse-2064-cypress test passing

* docs(PPDSC-2064): docs-ppdse-2064-updated tests

* docs(PPDSC-2064): docs-ppdse-2064-tidied roots

* docs(PPDSC-2064): docs-ppdse-2064-fixed onclick

* docs(PPDSC-2064): docs-ppdse-2064-removed mobile switch

* docs(PPDSC-2064): docs-ppdse-2064-addressed comments

* docs(PPDSC-2064): docs-ppdse-2064-fixed layout

* docs(PPDSC-2064): docs-ppdse-2064-fixed sidebar

* docs(PPDSC-2064): docs-ppdse-2064-fixed routes

* docs(PPDSC-2064): docs-ppdse-2064-fixed tests

* docs(PPDSC-2064): docs-ppdse-2064-removed prop

Co-authored-by: Stoyan Delev <[email protected]>
  • Loading branch information
baburay23 and mutebg authored May 31, 2022
1 parent f7d2d32 commit 371b009
Show file tree
Hide file tree
Showing 25 changed files with 18,635 additions and 3,474 deletions.
16 changes: 2 additions & 14 deletions cypress/site/functional/header-navigation.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const hamburgerIconTestID = '[data-testid="mobile-menu-icon"]';
const sidebarTestID = '[data-testid="sidebar"]';
const overlayTestID = '[data-testid="overlay"]';
const indicatorID = '[data-testid="styled-indicator"]';

describe('Documentation Site - header-navigation component', () => {
before(() => {
Expand All @@ -13,12 +13,9 @@ describe('Documentation Site - header-navigation component', () => {
it('should contain logo', () => {
cy.get('[data-testid="logo-container"]').should('exist');
});

it('should highlight active section', () => {
cy.visit('/about/introduction');
cy.contains('About').within(() =>
cy.get('div').should('have.attr', 'aria-current'),
);
cy.get(indicatorID).should('have.attr', 'aria-current');
});
});

Expand All @@ -30,18 +27,9 @@ describe('Documentation Site - header-navigation component', () => {
cy.get(sidebarTestID).should('exist').and('not.be.visible');
cy.get(hamburgerIconTestID).first().click();
cy.get(sidebarTestID).should('be.visible');
cy.get('body').should('have.css', 'overflow', 'hidden');
cy.get(overlayTestID).should('have.css', 'visibility', 'visible');

cy.get(hamburgerIconTestID).first().click();
cy.get(sidebarTestID).should('exist').and('not.be.visible');
cy.get('body').should('have.css', 'overflow', 'visible');
cy.get(overlayTestID).should('have.css', 'visibility', 'hidden');
});

it('burger menu should not be visible on the homepage', () => {
cy.visit('/');
cy.get(hamburgerIconTestID).should('not.exist');
});
});
});
Loading

0 comments on commit 371b009

Please sign in to comment.