diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index f33af97..2bb9dec 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -21,7 +21,7 @@
"react": "17.0.2",
"react-dom": "17.0.2",
"save-dev": "0.0.1-security",
- "styled-components": "5.3.10"
+ "styled-components": "^5.3.11"
},
"devDependencies": {
"@babel/core": "7.21.3",
@@ -14363,9 +14363,9 @@
}
},
"node_modules/styled-components": {
- "version": "5.3.10",
- "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-5.3.10.tgz",
- "integrity": "sha512-3kSzSBN0TiCnGJM04UwO1HklIQQSXW7rCARUk+VyMR7clz8XVlA3jijtf5ypqoDIdNMKx3la4VvaPFR855SFcg==",
+ "version": "5.3.11",
+ "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-5.3.11.tgz",
+ "integrity": "sha512-uuzIIfnVkagcVHv9nE0VPlHPSCmXIUGKfJ42LNjxCCTDTL5sgnJ8Z7GZBq0EnLYGln77tPpEpExt2+qa+cZqSw==",
"dependencies": {
"@babel/helper-module-imports": "^7.0.0",
"@babel/traverse": "^7.4.5",
@@ -26346,9 +26346,9 @@
"dev": true
},
"styled-components": {
- "version": "5.3.10",
- "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-5.3.10.tgz",
- "integrity": "sha512-3kSzSBN0TiCnGJM04UwO1HklIQQSXW7rCARUk+VyMR7clz8XVlA3jijtf5ypqoDIdNMKx3la4VvaPFR855SFcg==",
+ "version": "5.3.11",
+ "resolved": "https://registry.npmjs.org/styled-components/-/styled-components-5.3.11.tgz",
+ "integrity": "sha512-uuzIIfnVkagcVHv9nE0VPlHPSCmXIUGKfJ42LNjxCCTDTL5sgnJ8Z7GZBq0EnLYGln77tPpEpExt2+qa+cZqSw==",
"requires": {
"@babel/helper-module-imports": "^7.0.0",
"@babel/traverse": "^7.4.5",
diff --git a/frontend/package.json b/frontend/package.json
index 8bde3ee..3a24cc2 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -21,6 +21,7 @@
"lint": "./node_modules/.bin/eslint --ext .js,.jsx src test",
"test": "npm run build:prod && JEST_ENV=jest-environment-puppeteer ./node_modules/.bin/jest --testPathPattern=page.spec.js",
"unit": "JEST_ENV=jsdom ./node_modules/.bin/jest --testPathPattern=test.js --coverage",
+ "unit:update-snapshots": "JEST_ENV=jsdom ./node_modules/.bin/jest --testPathPattern=test.js --coverage --updateSnapshot",
"prepare": "node update_nvmrc.js"
},
"devDependencies": {
@@ -72,7 +73,7 @@
"react": "17.0.2",
"react-dom": "17.0.2",
"save-dev": "0.0.1-security",
- "styled-components": "5.3.10"
+ "styled-components": "5.3.11"
},
"snyk": true
}
diff --git a/frontend/src/component/__snapshots__/Header.test.jsx.snap b/frontend/src/component/__snapshots__/Header.test.jsx.snap
index 7cbab23..0882d03 100644
--- a/frontend/src/component/__snapshots__/Header.test.jsx.snap
+++ b/frontend/src/component/__snapshots__/Header.test.jsx.snap
@@ -3,26 +3,26 @@
exports[`Header should be rendered 1`] = `
Tietojeni käyttö
Tällä sivulla voit tarkastella ja hallinnoida antamiasi käyttölupia tietoihisi. Lisäksi näet mitkä toimijat, esim. viranomaiset, ovat käyttäneet tietojasi.
*
Onni Oskari Oppija
s.
1.2.1980
@@ -30,12 +30,12 @@ exports[`Header should be rendered 1`] = `
Tarkasteltava henkilö:
diff --git a/frontend/src/component/__snapshots__/Log.test.jsx.snap b/frontend/src/component/__snapshots__/Log.test.jsx.snap
index 2f7897e..3165906 100644
--- a/frontend/src/component/__snapshots__/Log.test.jsx.snap
+++ b/frontend/src/component/__snapshots__/Log.test.jsx.snap
@@ -2,7 +2,7 @@
exports[`Log should render alert in case of error in query 1`] = `
Tapahtui odottamaton virhe, emmekä juuri nyt pysty näyttämään tietoja.
@@ -11,7 +11,7 @@ exports[`Log should render alert in case of error in query 1`] = `
exports[`Log should render with empty log 1`] = `
Tällä sivulla näytetään toimijat, jotka ovat käyttäneet opinto- ja varhaiskasvatustietojasi.
@@ -21,23 +21,23 @@ exports[`Log should render with empty log 1`] = `
**
Tietojen käyttäjät näytetään eri tietorekistereistä seuraavasti:
@@ -69,80 +69,80 @@ exports[`Log should render with empty log 1`] = `
exports[`Log should render with non-empty log 1`] = `
[
Tietojen käyttäjä
**
Käytetty tietovaranto
,
+
Organisaatio 1
Opintosuoritukset (KOSKI)
,
+
Test 2
Varhaiskasvatuksen tietovaranto (Varda)
,
,
**
Tietojen käyttäjät näytetään eri tietorekistereistä seuraavasti:
@@ -174,80 +174,80 @@ exports[`Log should render with non-empty log 1`] = `
exports[`Log should render with non-empty log and language en 1`] = `
[
User of data
**
Registry that has been used
,
+
Organization 1
Completed studies (KOSKI)
,
+
Test 2
The national data warehouse for early childhood education and care Varda
,
,
**
Showing organisations that have used your data per data registry:
@@ -279,80 +279,80 @@ exports[`Log should render with non-empty log and language en 1`] = `
exports[`Log should render with non-empty log and language sv 1`] = `
[
Uppgiftsanvändare
**
Använt informationsresurs
,
+
Organisation 1
Studieprestationer (KOSKI)
,
+
Test 2
Informationsresursen inom småbarnspedagogik (Varda)
,
,
**
Här visas de aktörer som använt dina uppgifter enligt informationsresurs:
@@ -384,58 +384,58 @@ exports[`Log should render with non-empty log and language sv 1`] = `
exports[`Log should render with non-empty log and organization with no English name 1`] = `
[
User of data
**
Registry that has been used
,
+
Organisaatio 1
Completed studies (KOSKI)
,
,
**
Showing organisations that have used your data per data registry:
diff --git a/frontend/src/component/generic/widget/__snapshots__/DateList.test.jsx.snap b/frontend/src/component/generic/widget/__snapshots__/DateList.test.jsx.snap
index 2d2510c..0e6ebdf 100644
--- a/frontend/src/component/generic/widget/__snapshots__/DateList.test.jsx.snap
+++ b/frontend/src/component/generic/widget/__snapshots__/DateList.test.jsx.snap
@@ -2,7 +2,7 @@
exports[`DateList should be rendered 1`] = `
diff --git a/frontend/src/component/generic/widget/__snapshots__/ExternalLink.test.jsx.snap b/frontend/src/component/generic/widget/__snapshots__/ExternalLink.test.jsx.snap
index 5ccda66..452787b 100644
--- a/frontend/src/component/generic/widget/__snapshots__/ExternalLink.test.jsx.snap
+++ b/frontend/src/component/generic/widget/__snapshots__/ExternalLink.test.jsx.snap
@@ -2,14 +2,14 @@
exports[`ExternalLink should render external link 1`] = `
Teksti
@@ -18,15 +18,15 @@ exports[`ExternalLink should render external link 1`] = `
exports[`ExternalLink should render external link that targets new tab 1`] = `
Teksti
@@ -35,14 +35,14 @@ exports[`ExternalLink should render external link that targets new tab 1`] = `
exports[`ExternalLink should render link without explicit text 1`] = `
http://localhost
diff --git a/frontend/src/component/generic/widget/__snapshots__/NavBar.test.jsx.snap b/frontend/src/component/generic/widget/__snapshots__/NavBar.test.jsx.snap
index d8160d6..cbd9d63 100644
--- a/frontend/src/component/generic/widget/__snapshots__/NavBar.test.jsx.snap
+++ b/frontend/src/component/generic/widget/__snapshots__/NavBar.test.jsx.snap
@@ -2,25 +2,25 @@
exports[`NavBar should be rendered 1`] = `
`;
diff --git a/frontend/src/component/generic/widget/__snapshots__/StudentInfo.test.jsx.snap b/frontend/src/component/generic/widget/__snapshots__/StudentInfo.test.jsx.snap
index b57c083..4dfa2bf 100644
--- a/frontend/src/component/generic/widget/__snapshots__/StudentInfo.test.jsx.snap
+++ b/frontend/src/component/generic/widget/__snapshots__/StudentInfo.test.jsx.snap
@@ -3,15 +3,15 @@
exports[`StudentInfo should be rendered 1`] = `
[
Onni Oskari Oppija
s.
1.2.1980
@@ -19,12 +19,12 @@ exports[`StudentInfo should be rendered 1`] = `
,
Tarkasteltava henkilö:
Näytä tietojen käyttökerrat
@@ -20,14 +20,14 @@ exports[`LogEntries should render with empty timestamp list 1`] = `
exports[`LogEntries should render with non-empty timestamp list, and toggle expansion of timestamps when link is clicked 1`] = `
Näytä tietojen käyttökerrat
@@ -37,25 +37,25 @@ exports[`LogEntries should render with non-empty timestamp list, and toggle expa
exports[`LogEntries should render with non-empty timestamp list, and toggle expansion of timestamps when link is clicked 2`] = `
Piilota käyttökerrat
Näytetään käyttökerrat 1–2 / 2
@@ -75,14 +75,14 @@ exports[`LogEntries should render with non-empty timestamp list, and toggle expa
exports[`LogEntries should render with non-empty timestamp list, and toggle expansion of timestamps when link is clicked 3`] = `
Näytä tietojen käyttökerrat
@@ -92,25 +92,25 @@ exports[`LogEntries should render with non-empty timestamp list, and toggle expa
exports[`LogEntries should render with timestamp list of over 10 entries, expanding 10 timestamps at a time 1`] = `
Piilota käyttökerrat
Näytetään käyttökerrat 1–10 / 15
@@ -166,10 +166,10 @@ exports[`LogEntries should render with timestamp list of over 10 entries, expand
Näytä lisää käyttökertoja
@@ -179,25 +179,25 @@ exports[`LogEntries should render with timestamp list of over 10 entries, expand
exports[`LogEntries should render with timestamp list of over 10 entries, expanding 10 timestamps at a time 2`] = `
Piilota käyttökerrat
Näytetään käyttökerrat 1–15 / 15
diff --git a/frontend/src/component/organization/__snapshots__/Organization.test.jsx.snap b/frontend/src/component/organization/__snapshots__/Organization.test.jsx.snap
index 4c7ed64..f0f3748 100644
--- a/frontend/src/component/organization/__snapshots__/Organization.test.jsx.snap
+++ b/frontend/src/component/organization/__snapshots__/Organization.test.jsx.snap
@@ -2,21 +2,21 @@
exports[`Organization should render with organization permitted by default, and expand data when button is clicked 1`] = `
+
Organisaatio 1
Opintosuoritukset (KOSKI)
@@ -26,65 +26,65 @@ exports[`Organization should render with organization permitted by default, and
exports[`Organization should render with organization permitted by default, and expand data when button is clicked 2`] = `
-
Organisaatio 1
Opintosuoritukset (KOSKI)
Näytä tietojen käyttökerrat
@@ -96,21 +96,21 @@ exports[`Organization should render with organization permitted by default, and
exports[`Organization should render with organization permitted by user, and expand data when button is clicked 1`] = `
+
Organisaatio 2
Opintosuoritukset (KOSKI)
@@ -120,65 +120,65 @@ exports[`Organization should render with organization permitted by user, and exp
exports[`Organization should render with organization permitted by user, and expand data when button is clicked 2`] = `
-
Organisaatio 2
Opintosuoritukset (KOSKI)
Näytä tietojen käyttökerrat
diff --git a/frontend/src/http/__snapshots__/Query.test.jsx.snap b/frontend/src/http/__snapshots__/Query.test.jsx.snap
index faaad69..254bf57 100644
--- a/frontend/src/http/__snapshots__/Query.test.jsx.snap
+++ b/frontend/src/http/__snapshots__/Query.test.jsx.snap
@@ -3,7 +3,7 @@
exports[`Query should render alert defined by ErrorBoundary when query fails 1`] = `
Tapahtui odottamaton virhe, emmekä juuri nyt pysty näyttämään tietoja.