Skip to content

Commit

Permalink
fixed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
emre2038 committed Jul 10, 2023
1 parent d9f9570 commit fe53c3e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions __tests__/gui/data_whitelist.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Feature: Data Whitelist
Given I am on the Wazimap Homepage
Then I wait until map is ready

Then I confirm that the view dropdown displays "Default"

# Choropleth default filter
When I expand Data Mapper
And I click on "Demographics" in Data Mapper
Expand All @@ -26,6 +28,8 @@ Feature: Data Whitelist
Given I am on the Wazimap Homepage Test View
Then I wait until map is ready

Then I confirm that the view dropdown displays "test"

# Choropleth default filter
When I expand Data Mapper
And I click on "Demographics" in Data Mapper
Expand Down
4 changes: 4 additions & 0 deletions __tests__/gui/data_whitelist/data_whitelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,7 @@ Given('I am on the Wazimap Homepage Test View', () => {
setupInterceptions(profiles, all_details, profile, themes, {}, [], profile_indicator_summary, profile_indicator_data);
cy.visit("/?view=test");
})

Then(/^I confirm that the view dropdown displays "([^"]*)"$/, function (word) {
cy.get('.current-view-container').should('contain.text', word)
});
1 change: 1 addition & 0 deletions src/custom-css/general.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

.tutorial-button-container {
height: 100%;
position: fixed;
}

.current-view-container {
Expand Down
2 changes: 1 addition & 1 deletion src/js/elements/tutorial/tutorial_button.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const StyledButton = styled(Button)(() => ({
right: 0,
transform: 'rotate(-90deg) translate(0, -100%)',
transformOrigin: '100% 0',
position: 'absolute',
position: 'fixed',
height: '44px',
[`& svg`]: {
marginRight: '5px'
Expand Down

0 comments on commit fe53c3e

Please sign in to comment.