Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev-to-master diff #2597

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
d157c30
fix: remove fallback coordinate field (DHIS2-8165) (#2575)
turban Apr 24, 2023
00fae56
feat(plugin): send installation status [DHIS2-15097] (#2580)
KaiVandivier May 2, 2023
23efb6b
fix: bumps cli-app-scripts to 10.3.8 for LIBS-499 fix (#2592)
KaiVandivier May 5, 2023
1ff538b
fix(translations): sync translations from transifex (dev)
dhis2-bot Jun 6, 2023
eb2a3bb
docs: move docs to app (#2650)
janhenrikoverland Jun 9, 2023
3fafd45
fix(translations): sync translations from transifex (dev)
dhis2-bot Jun 10, 2023
cd34381
fix(translations): sync translations from transifex (dev)
dhis2-bot Jun 14, 2023
e40dc13
fix(translations): sync translations from transifex (dev)
dhis2-bot Jun 17, 2023
09412e0
docs: maps download and value labels (#2691)
turban Jun 19, 2023
d7172d4
fix(translations): sync translations from transifex (dev)
dhis2-bot Jun 21, 2023
bd9237a
fix(translations): sync translations from transifex (dev)
dhis2-bot Jun 23, 2023
6de79b1
fix: Set rendering strategy to single if not relative period (#2703)
turban Jun 26, 2023
09de660
chore: increase default timeout for DOM activity (#2720)
jenniferarnesen Jun 26, 2023
fd5696d
chore: use 50 second timeout for card title to appear (#2730)
jenniferarnesen Jun 27, 2023
3ba7831
chore: dependency upgrades (#2722)
turban Jun 27, 2023
491548b
fix: keep layer visibility when period is changed (#2705)
turban Jun 27, 2023
9fa4abd
Don't show north arrow for split view maps (#2704)
turban Jun 27, 2023
32578ec
fix: set period for each split view map (#2721)
turban Jun 27, 2023
578a75a
chore: remove target-branch from dependabot config (#2731)
jenniferarnesen Jun 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ updates:
schedule:
interval: daily
open-pull-requests-limit: 10
target-branch: master
versioning-strategy: increase
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ cypress/videos/
cypress/screenshots/
cypress/downloads/
cypress.env.json
yarn-error.log
.jshintignore
.jshintrc

# DHIS2 Platform
.d2
Expand Down
17 changes: 6 additions & 11 deletions .tx/config
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
[main]
host = https://www.transifex.com
host = https://www.transifex.com
lang_map = fa_AF: prs, uz@Cyrl: uz, uz@Latn: uz_Latn


[o:hisp-uio:p:app-maps:r:en-pot]
file_filter = i18n/<lang>.po
source_file = i18n/en.pot
source_lang = en
type = PO
file_filter = i18n/<lang>.po
source_file = i18n/en.pot
source_lang = en
type = PO
minimum_perc = 0

[o:hisp-uio:p:app-maps:r:i18n_module_en-properties]
file_filter = public/i18n_old/i18n_module_<lang>.properties
source_file = public/i18n_old/i18n_module_en.properties
source_lang = en
type = PROPERTIES
minimum_perc = 0

3 changes: 2 additions & 1 deletion cypress.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"networkMode": "live",
"dhis2ApiVersion": "40"
},
"testFiles": "**/*.cy.js"
"testFiles": "**/*.cy.js",
"defaultCommandTimeout": 15000
}
3 changes: 3 additions & 0 deletions cypress/elements/basemap_card.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ const activeBasemap = (basemapName) => {
cy.getByDataTest('basemaplistitem-name')
.contains(basemapName)
.scrollIntoView()

cy.getByDataTest('basemaplistitem-name')
.contains(basemapName)
.siblings('[data-test=basemaplistitem-img]')
.should('have.css', 'outline', 'rgb(21, 101, 192) solid 3px') // TODO - could remove the actual attribute value
}
Expand Down
13 changes: 11 additions & 2 deletions cypress/elements/file_menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ export const openMap = (mapName) => {
method: 'GET',
url: /\/maps\?/,
}).as('fetchListOfMaps')

cy.getByDataTest('open-file-dialog-modal-name-filter').find('input').clear()

cy.getByDataTest('open-file-dialog-modal-name-filter').find('input').focus()

cy.getByDataTest('open-file-dialog-modal-name-filter')
.find('input')
.clear()
.focus()
.type(mapName)

cy.wait('@fetchListOfMaps')
Expand Down Expand Up @@ -42,6 +45,9 @@ export const saveAsNewMap = (newMapName) => {
cy.getByDataTest('file-menu-saveas-modal-name-content', EXTENDED_TIMEOUT)
.find('input')
.clear()

cy.getByDataTest('file-menu-saveas-modal-name-content', EXTENDED_TIMEOUT)
.find('input')
.type(newMapName)

cy.get('button').contains('Save').click()
Expand All @@ -58,6 +64,9 @@ export const saveNewMap = (newMapName) => {
cy.getByDataTest('file-menu-saveas-modal-name-content', EXTENDED_TIMEOUT)
.find('input')
.clear()

cy.getByDataTest('file-menu-saveas-modal-name-content', EXTENDED_TIMEOUT)
.find('input')
.type(newMapName)

cy.get('button').contains('Save').click()
Expand Down
27 changes: 11 additions & 16 deletions cypress/elements/layer.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { EXTENDED_TIMEOUT } from '../support/util.js'

export class Layer {
openDialog(layer) {
const dataTest = `addlayeritem-${layer
.toLowerCase()
.replace(/\s/g, '_')}`

cy.getByDataTest('add-layer-button', EXTENDED_TIMEOUT).click()
cy.getByDataTest('add-layer-button').click()

cy.get(`[data-test="${dataTest}"]`).click()

Expand All @@ -23,10 +21,9 @@ export class Layer {
}

selectOu(ouName) {
cy.getByDataTest('org-unit-tree')
.contains(ouName)
.scrollIntoView()
.click()
cy.getByDataTest('org-unit-tree').contains(ouName).scrollIntoView()

cy.getByDataTest('org-unit-tree').contains(ouName).click()

return this
}
Expand All @@ -51,38 +48,36 @@ export class Layer {
}

addToMap() {
cy.getByDataTest('dhis2-uicore-modalactions', EXTENDED_TIMEOUT)
cy.getByDataTest('dhis2-uicore-modalactions')
.contains('Add layer')
.click()
}

validateDialogClosed(closed) {
if (closed) {
cy.getByDataTest('layeredit', EXTENDED_TIMEOUT).should('not.exist')
cy.getByDataTest('layeredit').should('not.exist')
} else {
cy.getByDataTest('layeredit', EXTENDED_TIMEOUT).should('be.visible')
cy.getByDataTest('layeredit').should('be.visible')
}
}

validateCardTitle(title) {
cy.getByDataTest('layercard', EXTENDED_TIMEOUT)
.contains(title, EXTENDED_TIMEOUT)
cy.getByDataTest('layercard')
.contains(title, { timeout: 50000 })
.should('be.visible')

return this
}

validateCardPeriod(period) {
cy.getByDataTest('layercard', EXTENDED_TIMEOUT)
.contains(period)
.should('be.visible')
cy.getByDataTest('layercard').contains(period).should('be.visible')

return this
}

validateCardItems(items) {
items.forEach((item) => {
cy.getByDataTest('layercard', EXTENDED_TIMEOUT)
cy.getByDataTest('layercard')
.find('[data-test="layerlegend-item"]')
.contains(item)
.should('be.visible')
Expand Down
6 changes: 3 additions & 3 deletions cypress/integration/layers/facilitylayer.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ context('Facility Layers', () => {

Layer.validateDialogClosed(false)

cy.contains('No organisation units are selected')
.scrollIntoView()
.should('be.visible')
cy.contains('No organisation units are selected').scrollIntoView()

cy.contains('No organisation units are selected').should('be.visible')
})

it('adds a facilities layer', () => {
Expand Down
6 changes: 3 additions & 3 deletions cypress/integration/layers/orgunitlayer.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ context('Org Unit Layers', () => {

Layer.validateDialogClosed(false)

cy.contains('No organisation units are selected')
.scrollIntoView()
.should('be.visible')
cy.contains('No organisation units are selected').scrollIntoView()

cy.contains('No organisation units are selected').should('be.visible')
})

it('adds a org unit layer', () => {
Expand Down
24 changes: 16 additions & 8 deletions cypress/integration/plugin.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ describe.skip('Basemap checks for plugin', () => {

// cy.visit(`${pluginUrl}aVYDp6FYyFU`, EXTENDED_TIMEOUT);
cy.visit(pluginUrl)
cy.get('#inputMapID').clear().type('aVYDp6FYyFU')
cy.get('#inputMapID').clear()
cy.get('#inputMapID').type('aVYDp6FYyFU')
cy.get('#btnLoadPlugin').click()
cy.wait('@openMap1')

Expand All @@ -48,7 +49,8 @@ describe.skip('Basemap checks for plugin', () => {

// cy.visit(`${pluginUrl}zDP78aJU8nX`, EXTENDED_TIMEOUT);
cy.visit(pluginUrl)
cy.get('#inputMapID').clear().type('zDP78aJU8nX')
cy.get('#inputMapID').clear()
cy.get('#inputMapID').type('zDP78aJU8nX')
cy.get('#btnLoadPlugin').click()
cy.wait('@openMap')

Expand All @@ -73,7 +75,8 @@ describe.skip('Basemap checks for plugin', () => {

// cy.visit(`${pluginUrl}qTfO4YkQ9xW`, EXTENDED_TIMEOUT);
cy.visit(pluginUrl)
cy.get('#inputMapID').clear().type('qTfO4YkQ9xW')
cy.get('#inputMapID').clear()
cy.get('#inputMapID').type('qTfO4YkQ9xW')
cy.get('#btnLoadPlugin').click()
cy.wait('@openMap')

Expand Down Expand Up @@ -106,7 +109,8 @@ describe.skip('Basemap checks for plugin', () => {

// cy.visit(`${pluginUrl}ZugJzZ7xxRW`, EXTENDED_TIMEOUT);
cy.visit(pluginUrl)
cy.get('#inputMapID').clear().type('ZugJzZ7xxRW')
cy.get('#inputMapID').clear()
cy.get('#inputMapID').type('ZugJzZ7xxRW')
cy.get('#btnLoadPlugin').click()
cy.wait('@openMap')

Expand Down Expand Up @@ -139,7 +143,8 @@ describe.skip('Basemap checks for plugin', () => {

// cy.visit(`${pluginUrl}ZBjCfSaLSqD`, EXTENDED_TIMEOUT);
cy.visit(pluginUrl)
cy.get('#inputMapID').clear().type('ZBjCfSaLSqD')
cy.get('#inputMapID').clear()
cy.get('#inputMapID').type('ZBjCfSaLSqD')
cy.get('#btnLoadPlugin').click()
cy.wait('@openMap')

Expand Down Expand Up @@ -172,7 +177,8 @@ describe.skip('Basemap checks for plugin', () => {

// cy.visit(`${pluginUrl}wIIoj44X77r`, EXTENDED_TIMEOUT);
cy.visit(pluginUrl)
cy.get('#inputMapID').clear().type('wIIoj44X77r')
cy.get('#inputMapID').clear()
cy.get('#inputMapID').type('wIIoj44X77r')
cy.get('#btnLoadPlugin').click()
cy.wait('@openMap')

Expand All @@ -196,7 +202,8 @@ describe.skip('Basemap checks for plugin', () => {

// cy.visit(`${pluginUrl}voX07ulo2Bq`, EXTENDED_TIMEOUT);
cy.visit(pluginUrl)
cy.get('#inputMapID').clear().type('voX07ulo2Bq')
cy.get('#inputMapID').clear()
cy.get('#inputMapID').type('voX07ulo2Bq')
cy.get('#btnLoadPlugin').click()
cy.wait('@openMap')

Expand All @@ -220,7 +227,8 @@ describe.skip('Basemap checks for plugin', () => {

// cy.visit(`${pluginUrl}voX07ulo2Bq`, EXTENDED_TIMEOUT);
cy.visit(pluginUrl)
cy.get('#inputMapID').clear().type('voX07ulo2Bq')
cy.get('#inputMapID').clear()
cy.get('#inputMapID').type('voX07ulo2Bq')
cy.get('#btnLoadPlugin').click()
cy.wait('@openMap')

Expand Down
Loading