-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: several backports to [v37] (#1935)
* fix: bump analytics and ui to latest (#1927) * feat: use the new SharingDialog with cascading sharing (#1913) * fix: reenable cypress tests for offline (#1928) * fix: readd missing offlinejs file (#1929) * fix: disable dirty check on exit (DHIS2-11701) (#1930) Removing the "dirty" check which would display the "Discard changes?" modal when "Exit without saving" was clicked after making changes to the title/description. * fix: bump cli-app-scripts to solve issues with z-index and Modals (#1931) Solves issues with ui Modals and z-index. Various Modals opened under the edit mode toolbar. Co-authored-by: Jen Jones Arnesen <jennifer@dhis2.org> * fix: upgrade d2-ui 7.3.3 (#1932) This upgrade fixes the broken interpretations component Co-authored-by: Martin <martin@moid.se> Co-authored-by: Edoardo Sabadelli <edoardo@dhis2.org> Co-authored-by: Jan Henrik Øverland <jan@dhis2.org>
- Loading branch information
1 parent
316ffb9
commit 5c5973f
Showing
11 changed files
with
201 additions
and
199 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
84 changes: 0 additions & 84 deletions
84
cypress/integration/view/dashboard_filter/dashboard_filter.js
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,70 @@ | ||
Feature: Offline dashboard | ||
|
||
Scenario: I cache an uncached dashboard | ||
Given I create two dashboards | ||
When I cache one of the dashboards | ||
Then the cached dashboard has a Last Updated time and chip icon | ||
And the uncached dashboard does not have a Last Updated time and no chip icon | ||
|
||
Scenario: I am online with an uncached dashboard when I lose connectivity | ||
Given I open an uncached dashboard | ||
When connectivity is turned off | ||
Then all actions for "uncached" dashboard requiring connectivity are disabled | ||
|
||
Scenario: I am online with a cached dashboard when I lose connectivity | ||
Given I open a cached dashboard | ||
Then the cached dashboard options are available | ||
When connectivity is turned off | ||
Then all actions for "cached" dashboard requiring connectivity are disabled | ||
|
||
Scenario: I am offline and switch from a cached dashboard to an uncached dashboard | ||
Given I open a cached dashboard | ||
And connectivity is turned off | ||
When I click to open an uncached dashboard when offline | ||
Then the dashboard is not available and offline message is displayed | ||
|
||
Scenario: I am offline and switch to a cached dashboard | ||
Given I open an uncached dashboard | ||
And connectivity is turned off | ||
When I click to open a cached dashboard when offline | ||
Then the cached dashboard is loaded and displayed in view mode | ||
|
||
Scenario: I am offline and switch to an uncached dashboard and then connectivity is restored | ||
Given I open a cached dashboard | ||
And connectivity is turned off | ||
When I click to open an uncached dashboard when offline | ||
Then the dashboard is not available and offline message is displayed | ||
When connectivity is turned on | ||
Then the uncached dashboard is loaded and displayed in view mode | ||
|
||
Scenario: I am in edit mode on an uncached dashboard when I lose connectivity and then I exit without saving and then connectivity is restored | ||
Given I open an uncached dashboard in edit mode | ||
When connectivity is turned off | ||
Then all edit actions requiring connectivity are disabled | ||
When I click Exit without saving | ||
Then the dashboard is not available and offline message is displayed | ||
When connectivity is turned on | ||
Then the uncached dashboard is loaded and displayed in view mode | ||
|
||
Scenario: I am in edit mode on a cached dashboard when I lose connectivity and then I exit without saving | ||
Given I open a cached dashboard in edit mode | ||
When connectivity is turned off | ||
Then all edit actions requiring connectivity are disabled | ||
When I click Exit without saving | ||
Then the cached dashboard is loaded and displayed in view mode | ||
|
||
# Scenario: The sharing dialog is open when connectivity is lost | ||
# Given I open a cached dashboard | ||
# When I open sharing settings | ||
# And connectivity is turned off | ||
# Then it is not possible to change sharing settings | ||
|
||
Scenario: The interpretations panel is open when connectivity is lost | ||
Given I open a cached dashboard | ||
And I open the interpretations panel | ||
When connectivity is turned off | ||
Then it is not possible to interact with interpretations | ||
|
||
|
||
Scenario: I delete the cached and uncached dashboard | ||
Given I delete the cached and uncached dashboard |
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.