-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into feat/geojson
- Loading branch information
Showing
39 changed files
with
680 additions
and
611 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
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const LABELS_OVERLAY_TITLE = 'Labels overlay' | ||
|
||
describe('External Layer', () => { | ||
it('adds an external layer', () => { | ||
cy.visit('/') | ||
|
||
cy.getByDataTest('add-layer-button').click() | ||
|
||
const dataTest = `addlayeritem-${`${LABELS_OVERLAY_TITLE}` | ||
.toLowerCase() | ||
.replace(/\s/g, '_')}` | ||
|
||
cy.getByDataTest(dataTest).click() | ||
|
||
cy.getByDataTest('map-loading-mask').should('not.exist') | ||
|
||
cy.getByDataTest('layercard') | ||
.contains(LABELS_OVERLAY_TITLE) | ||
.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import { Layer as OrgUnitLayer } from '../../elements/layer.js' | ||
import { getMaps } from '../../elements/map_canvas.js' | ||
import { ThematicLayer } from '../../elements/thematic_layer.js' | ||
|
||
const INDICATOR_NAME = 'ANC 1 Coverage' | ||
|
||
describe('Multiple Layers', () => { | ||
beforeEach(() => { | ||
cy.visit('/') | ||
}) | ||
|
||
const TLayer = new ThematicLayer() | ||
const OULayer = new OrgUnitLayer() | ||
|
||
it('adds a thematic layer and an orgunit layer', () => { | ||
TLayer.openDialog('Thematic') | ||
.selectIndicatorGroup('ANC') | ||
.selectIndicator(INDICATOR_NAME) | ||
.selectTab('Period') | ||
.selectPeriodType('Yearly') | ||
.selectTab('Org Units') | ||
.selectOu('Sierra Leone') | ||
.selectOuLevel('District') | ||
.addToMap() | ||
|
||
TLayer.validateDialogClosed(true) | ||
|
||
TLayer.validateCardTitle(INDICATOR_NAME) | ||
|
||
getMaps().should('have.length', 1) | ||
|
||
OULayer.openDialog('Org units') | ||
.selectOu('Sierra Leone') | ||
.selectOuLevel('District') | ||
.addToMap() | ||
|
||
OULayer.validateDialogClosed(true) | ||
|
||
OULayer.validateCardTitle('Organisation units') | ||
OULayer.validateCardItems(['District']) | ||
|
||
cy.getByDataTest('sortable-layers-list') | ||
.children() | ||
.should('have.length', 2) | ||
|
||
// confirm the order of the cards | ||
cy.getByDataTest('sortable-layers-list') | ||
.children() | ||
.first() | ||
.should('contain', 'Organisation units') | ||
|
||
cy.getByDataTest('sortable-layers-list') | ||
.children() | ||
.last() | ||
.should('contain', INDICATOR_NAME) | ||
|
||
// TODO - add a test for drag/drop reordering of the layers | ||
}) | ||
}) |
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: i18next-conv\n" | ||
"POT-Creation-Date: 2023-09-06T13:08:55.205Z\n" | ||
"POT-Creation-Date: 2023-10-23T12:55:26.288Z\n" | ||
"PO-Revision-Date: 2019-06-25 18:35+0000\n" | ||
"Last-Translator: Viktor Varland <[email protected]>, 2023\n" | ||
"Language-Team: Arabic (https://app.transifex.com/hisp-uio/teams/100509/ar/)\n" | ||
|
@@ -26,15 +26,6 @@ msgstr "" | |
msgid "Failed to save map: {{message}}" | ||
msgstr "" | ||
|
||
msgid "Calculation" | ||
msgstr "" | ||
|
||
msgid "No calculations found" | ||
msgstr "" | ||
|
||
msgid "Calculations can be created in the Data Visualizer app." | ||
msgstr "" | ||
|
||
msgid "Classification" | ||
msgstr "تصنيف" | ||
|
||
|
@@ -438,9 +429,6 @@ msgstr "عنصر بيانات الحدث مطلوب" | |
msgid "Program indicator is required" | ||
msgstr "مؤشر البرنامج مطلوب" | ||
|
||
msgid "Calculation is required" | ||
msgstr "" | ||
|
||
msgid "Period is required" | ||
msgstr "الفترة مطلوبة" | ||
|
||
|
@@ -456,9 +444,6 @@ msgstr "عناصر بيانات الحدث" | |
msgid "Program indicators" | ||
msgstr "مؤشرات البرنامج" | ||
|
||
msgid "Calculations" | ||
msgstr "" | ||
|
||
msgid "Item type" | ||
msgstr "نوع العنصر" | ||
|
||
|
@@ -914,12 +899,6 @@ msgstr "OSM Light" | |
msgid "OSM Detailed" | ||
msgstr "OSM مفصل" | ||
|
||
msgid "Google Streets" | ||
msgstr "الشوارع بحسب غوغل" | ||
|
||
msgid "Google Hybrid" | ||
msgstr "Google Hybrid" | ||
|
||
msgid "Bing Road" | ||
msgstr "Bing طرقات" | ||
|
||
|
@@ -1327,18 +1306,6 @@ msgstr "لم يتم العثور على الكيانات المتعقبة" | |
msgid "related" | ||
msgstr "ذات صلة" | ||
|
||
msgid "Thematic" | ||
msgstr "" | ||
|
||
msgid "Events" | ||
msgstr "الأحداث" | ||
|
||
msgid "Tracked entities" | ||
msgstr "الكيانات المتعقبة" | ||
|
||
msgid "Org units" | ||
msgstr "الوحدات التنظيمية" | ||
|
||
msgid "not one of" | ||
msgstr "" | ||
|
||
|
@@ -1364,6 +1331,18 @@ msgstr "" | |
"تتطلب هذه الطبقة حساب Google Earth Engine. تحقق من وثائق DHIS2 لمزيد من " | ||
"المعلومات." | ||
|
||
msgid "Thematic" | ||
msgstr "" | ||
|
||
msgid "Events" | ||
msgstr "الأحداث" | ||
|
||
msgid "Tracked entities" | ||
msgstr "الكيانات المتعقبة" | ||
|
||
msgid "Org units" | ||
msgstr "الوحدات التنظيمية" | ||
|
||
msgid "Facility" | ||
msgstr "المنشأة" | ||
|
||
|
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.