-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MET-3943 Init filter remove scroll properly, restyle / refactor, adde…
…d tooltips
- Loading branch information
1 parent
ef27ca2
commit 643c65b
Showing
8 changed files
with
90 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { DimensionName } from '../../src/app/_models'; | ||
|
||
context('statistics-dashboard', () => { | ||
describe('filter removal', () => { | ||
const force = { force: true }; | ||
const selFilterRemove = '.rm-filter'; | ||
const selFilterRemoveNav = '.rm-filter-nav'; | ||
const selNavNext = `${selFilterRemoveNav}-next`; | ||
const selNavPrev = `${selFilterRemoveNav}-prev`; | ||
const selNavNextActive = `${selNavNext}.active`; | ||
const selNavPrevActive = `${selNavPrev}.active`; | ||
const url = `/data/${DimensionName.country}?dataset-id='datasetId_123,datasetId_456,datasetId_789,datasetId_abc,datasetId_def,datasetId_hij`; | ||
|
||
it('should show the filter remove scroll controls', () => { | ||
cy.visit(url); | ||
cy.get(selFilterRemove).should('have.length', 6); | ||
cy.get(selFilterRemoveNav).should('have.length', 1); | ||
cy.get(selNavNext).should('have.length', 1); | ||
cy.get(selNavPrev).should('have.length', 1); | ||
cy.get(selNavNextActive).should('have.length', 1); | ||
cy.get(selNavPrevActive).should('have.length', 0); | ||
}); | ||
|
||
it('should scroll the filter remove options', () => { | ||
cy.visit(url); | ||
cy.get(selNavPrevActive).should('have.length', 0); | ||
cy.get(selNavNextActive).click(force); | ||
cy.get(selNavPrevActive).should('have.length', 1); | ||
}); | ||
}); | ||
}); |
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 @@ | ||
export * from './is-scrollable'; |
19 changes: 11 additions & 8 deletions
19
src/app/_directives/is-scrollable/is-scrollable.directive.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ | |
} | ||
|
||
:last-child { | ||
cursor: pointer; | ||
width: 100%; | ||
} | ||
} | ||
|