-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(PPDSC-2005) Layer manager (#146)
* fix(PPDSC-1972): select panel - add zindex * fix(PPDSC-1972): merge - update snapshots * fix(PPDSC-1972): failing tests - mock datetime * fix(PPDSC-1972): add comment * feat(PPDSC-0000): wip * feat(PPDSC-2005): add layer manager * feat(PPDSC-2005): delete portal component * feat(PPDSC-2005): add layers * feat(PPDSC-2005): update layer organizer * feat(PPDSC-2005): cleanup * feat(PPDSC-2005): clean up & new story * feat(PPDSC-2005): fixx select and inline prop on modal/drawer * feat(PPDSC-2005): fix unit tests * feat(PPDSC-2005): add comments * feat(PPDSC-2005): test LM on docs site * feat(PPDSC-2005): add tests * feat(PPDSC-2005): add unit tests to layer * feat(PPDSC-2005): fix unit tests * feat(PPDSC-2005): fix e2e tests * feat(PPDSC-2005): add srr * feat(PPDSC-2005): custom portal * feat(PPDSC-2005): add portal * feat(PPDSC-2005): improvements * feat(PPDSC-2005): update layer manager * feat(PPDSC-2005): fix ts * feat(PPDSC-2005): fix e2e tests * feat(PPDSC-2005): fix coverage * feat(PPDSC-2005): fix snapshots * feat(PPDSC-2005): fix LO * feat(PPDSC-2005): fix e2e tests * feat(PPDSC-2005): clean up * feat(PPDSC-2005): clean up * feat(PPDSC-2005): clean up * feat(PPDSC-2005): fix snapshots * feat(PPDSC-2005): add NewskitProvider * feat(PPDSC-2005): add select story * feat(PPDSC-2005): add warnings * feat(PPDSC-2005): remove mediaQueryProvider from select * feat(PPDSC-2005): update test-utils with newskitprovider * feat(PPDSC-2005): update newskit/theme provider docs * feat(PPDSC-2005): update snapshots * feat(PPDSC-2005): fix coverage * feat(PPDSC-2005): fix types and tests cleanup * feat(PPDSC-2005): update e2e tests * feat(PPDSC-2005): fix snapshots * feat(PPDSC-2005): fix coverage * feat(PPDSC-2005): fix unit tests * feat(PPDSC-2005): ignore test-utils from coverage * feat(PPDSC-2005): address comments * feat(PPDSC-2005): add docs * feat(PPDSC-2005): update snapshots * feat(PPDSC-2005): remove comment * feat(PPDSC-2005): update select snapshots * feat(PPDSC-2005): update docs snapshots * feat(PPDSC-2005): update mediaQueruContext * feat(PPDSC-2005): update docs * feat(PPDSC-2005): rename file * feat(PPDSC-2005): rename NewskitProvider to NewsKitProvider * feat(PPDSC-2005): fix typo * feat(PPDSC-2005): add waitBeforeCapture Co-authored-by: Stoyan Delev <[email protected]> Co-authored-by: Stoyan Delev <[email protected]>
- Loading branch information
1 parent
dfcdd4d
commit 63c3556
Showing
65 changed files
with
19,408 additions
and
17,065 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,36 @@ | ||
describe('drawer', () => { | ||
beforeEach(() => { | ||
cy.visit('?name=drawer'); | ||
cy.visit('?name=drawer-e2e'); | ||
}); | ||
|
||
it('page cant scroll when drawer panel is open', () => { | ||
cy.get('[data-testid="scrollable-drawer"]').within(() => { | ||
cy.get('[data-testid="drawer-open-button"]').first().click(); | ||
cy.get('[data-testid="drawer-open-button"]').first().click(); | ||
|
||
cy.wait(1000); | ||
cy.wait(1000); | ||
|
||
cy.window().then($el => | ||
expect($el.document.body.style.overflow).to.eq('hidden'), | ||
); | ||
cy.window().then($el => | ||
expect($el.document.body.style.overflow).to.eq('hidden'), | ||
); | ||
|
||
cy.get('[data-testid="overlay"]').click(); | ||
cy.get('[data-testid="overlay"]').click(); | ||
|
||
cy.wait(1000); | ||
cy.wait(1000); | ||
|
||
cy.window().then($el => | ||
expect($el.document.body.style.overflow).to.eq('visible'), | ||
); | ||
}); | ||
cy.window().then($el => | ||
expect($el.document.body.style.overflow).to.eq('visible'), | ||
); | ||
}); | ||
|
||
it('scrolling drawer panel is possible', () => { | ||
cy.get('[data-testid="scrollable-drawer"]').within(() => { | ||
cy.get('[data-testid="drawer-open-button"]').first().click(); | ||
|
||
cy.wait(1000); | ||
|
||
cy.get('[data-testid="drawer"]') | ||
.first() | ||
.find('[data-testid="dialog-content"]') | ||
.scrollTo('bottom') | ||
.its('scrollY') | ||
.should('not.equal', 0); | ||
}); | ||
cy.get('[data-testid="drawer-open-button"]').first().click(); | ||
|
||
cy.wait(1000); | ||
|
||
cy.get('[data-testid="drawer"]') | ||
.first() | ||
.find('[data-testid="dialog-content"]') | ||
.scrollTo('bottom') | ||
.its('scrollY') | ||
.should('not.equal', 0); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.