-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make space to left of dashboard items scrollable [DHIS2-10138] (#…
…1523) Fixes: * use padding instead of margin so that scrolling works when scrolling the empty space along the left of the items * migrate to consistent css classes language (wrapper => container) * add buttons for both small and large view and show/hide using css. This avoids the need for javascript to determine which button to show and will behave more instantaneously * remove position:fixed on the action bar as it isn't needed Co-authored-by: Martin <[email protected]>
- Loading branch information
1 parent
ea2cc8d
commit 3305aa3
Showing
8 changed files
with
96 additions
and
82 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { When, Then } from 'cypress-cucumber-preprocessor/steps' | ||
import { dashboards } from '../../../assets/backends/sierraLeone_236' | ||
|
||
When('I click to preview the print layout', () => { | ||
cy.get('button').contains('More').click() | ||
cy.get('[data-test="print-menu-item"]').click() | ||
cy.get('[data-test="print-layout-menu-item"]').click() | ||
}) | ||
|
||
Then('the print layout displays for {string} dashboard', title => { | ||
//check the url | ||
cy.location().should(loc => { | ||
expect(loc.hash).to.equal(`${dashboards[title].route}/printlayout`) | ||
}) | ||
|
||
//check for some elements | ||
cy.get('[data-test="print-layout-page"]').should('be.visible') | ||
}) | ||
|
||
When('I click to exit print preview', () => { | ||
cy.get('button').not('.small').contains('Exit print preview').click() | ||
}) | ||
|
||
When('I click to preview the print one-item-per-page', () => { | ||
cy.get('button').contains('More').click() | ||
cy.get('[data-test="print-menu-item"]').click() | ||
cy.get('[data-test="print-oipp-menu-item"]').click() | ||
}) | ||
|
||
Then('the print one-item-per-page displays for {string} dashboard', title => { | ||
//check the url | ||
cy.location().should(loc => { | ||
expect(loc.hash).to.equal(`${dashboards[title].route}/printoipp`) | ||
}) | ||
|
||
//check for some elements | ||
cy.get('[data-test="print-oipp-page"]').should('be.visible') | ||
}) |
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
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