Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Commit b8f83f8

Browse files
authored
Merge pull request #198 from City-of-Helsinki/build-test
use dryRun when sentry api key is not available
2 parents 7ffff8f + 36236bb commit b8f83f8

4 files changed

Lines changed: 51 additions & 49 deletions

File tree

.github/workflows/ui-e2e.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ jobs:
1818
runs-on: ubuntu-latest
1919
env:
2020
CYPRESS_BASE_URL: http://localhost:3000
21-
environment:
22-
name: actions
2321
steps:
2422
- uses: actions/checkout@v2
23+
- uses: actions/setup-node@v2
24+
with:
25+
node-version: "14"
2526
- name: Build image
2627
run: |
2728
docker build -t tilavaraus-ui -f ui/Dockerfile .

ui/components/form/__tests__/__snapshots__/DateSelectorMenu.test.tsx.snap

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
exports[`matches snapshot 1`] = `
44
<div
5-
class="DateSelectorMenu__Wrapper-sc-4q8ipz-0 jXmzKr"
5+
class="DateSelectorMenu__Wrapper-sc-4q8ipz-0 dPJvut"
66
data-testid="date-selector-menu"
77
>
88
<div
9-
class="DateSelectorMenu__CheckboxWrapper-sc-4q8ipz-1 ilGTbW"
9+
class="DateSelectorMenu__CheckboxWrapper-sc-4q8ipz-1 ereszc"
1010
>
1111
<div
12-
class="Checkbox-module_checkbox__3L0GR checkbox_hds-checkbox__9HMCz Checkbox__StyledCheckbox-sc-14mc6iy-0 gYbgIB"
12+
class="Checkbox-module_checkbox__3L0GR checkbox_hds-checkbox__9HMCz Checkbox__StyledCheckbox-sc-14mc6iy-0 dcMWWH"
1313
style="--background-unselected: var(--color-white); display: block; line-height: 24px;"
1414
>
1515
<input
@@ -28,7 +28,7 @@ exports[`matches snapshot 1`] = `
2828
</label>
2929
</div>
3030
<div
31-
class="Checkbox-module_checkbox__3L0GR checkbox_hds-checkbox__9HMCz Checkbox__StyledCheckbox-sc-14mc6iy-0 gYbgIB"
31+
class="Checkbox-module_checkbox__3L0GR checkbox_hds-checkbox__9HMCz Checkbox__StyledCheckbox-sc-14mc6iy-0 dcMWWH"
3232
style="--background-unselected: var(--color-white); display: block; line-height: 24px;"
3333
>
3434
<input
@@ -47,7 +47,7 @@ exports[`matches snapshot 1`] = `
4747
</label>
4848
</div>
4949
<div
50-
class="Checkbox-module_checkbox__3L0GR checkbox_hds-checkbox__9HMCz Checkbox__StyledCheckbox-sc-14mc6iy-0 gYbgIB"
50+
class="Checkbox-module_checkbox__3L0GR checkbox_hds-checkbox__9HMCz Checkbox__StyledCheckbox-sc-14mc6iy-0 dcMWWH"
5151
style="--background-unselected: var(--color-white); display: block; line-height: 24px;"
5252
>
5353
<input
@@ -66,7 +66,7 @@ exports[`matches snapshot 1`] = `
6666
</label>
6767
</div>
6868
<div
69-
class="Checkbox-module_checkbox__3L0GR checkbox_hds-checkbox__9HMCz Checkbox__StyledCheckbox-sc-14mc6iy-0 gYbgIB"
69+
class="Checkbox-module_checkbox__3L0GR checkbox_hds-checkbox__9HMCz Checkbox__StyledCheckbox-sc-14mc6iy-0 dcMWWH"
7070
style="--background-unselected: var(--color-white); display: block; line-height: 24px;"
7171
>
7272
<input
@@ -86,7 +86,7 @@ exports[`matches snapshot 1`] = `
8686
</div>
8787
</div>
8888
<button
89-
class="DateSelectorMenu__Btn-sc-4q8ipz-2 gDyqJS selectDates"
89+
class="DateSelectorMenu__Btn-sc-4q8ipz-2 gaxllE selectDates"
9090
type="button"
9191
>
9292
<svg
@@ -110,7 +110,7 @@ exports[`matches snapshot 1`] = `
110110
</g>
111111
</svg>
112112
<div
113-
class="DateSelectorMenu__BtnText-sc-4q8ipz-3 eNxEJL"
113+
class="DateSelectorMenu__BtnText-sc-4q8ipz-3 crfxaZ"
114114
>
115115
dateSelector:menu.buttonCustom
116116
</div>
@@ -136,7 +136,7 @@ exports[`matches snapshot 1`] = `
136136
</svg>
137137
</button>
138138
<button
139-
class="DateSelectorMenu__Btn-sc-4q8ipz-2 inhOyv back"
139+
class="DateSelectorMenu__Btn-sc-4q8ipz-2 hnXyNl back"
140140
type="button"
141141
>
142142
<svg
@@ -160,17 +160,17 @@ exports[`matches snapshot 1`] = `
160160
</g>
161161
</svg>
162162
<div
163-
class="DateSelectorMenu__BtnText-sc-4q8ipz-3 eNxEJL"
163+
class="DateSelectorMenu__BtnText-sc-4q8ipz-3 crfxaZ"
164164
>
165165
dateSelector:menu.buttonBack
166166
</div>
167167
</button>
168168
<button
169-
class="DateSelectorMenu__Btn-sc-4q8ipz-2 gDyqJS close"
169+
class="DateSelectorMenu__Btn-sc-4q8ipz-2 gaxllE close"
170170
type="button"
171171
>
172172
<div
173-
class="DateSelectorMenu__BtnText-sc-4q8ipz-3 eNxEJL"
173+
class="DateSelectorMenu__BtnText-sc-4q8ipz-3 crfxaZ"
174174
>
175175
dateSelector:menu.buttonClose
176176
</div>

ui/components/reservation/__tests__/__snapshots__/Ticket.test.tsx.snap

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,50 +3,50 @@
33
exports[`renders correctly 1`] = `
44
<DocumentFragment>
55
<div
6-
class="Ticket__Wrapper-sc-16qon89-1 bxJppa"
6+
class="Ticket__Wrapper-sc-16qon89-1 lLgEg"
77
data-testid="reservation__ticket--container"
88
>
99
<div
10-
class="Ticket__PunchHole-sc-16qon89-0 kCZKkf"
10+
class="Ticket__PunchHole-sc-16qon89-0 gIogyp"
1111
/>
1212
<div
1313
class="Ticket__Content-sc-16qon89-2"
1414
>
1515
<h1
16-
class="typography__H1-sc-yczr8v-4 Ticket__Title-sc-16qon89-3 exespM cWvaak"
16+
class="typography__H1-sc-yczr8v-4 Ticket__Title-sc-16qon89-3 bYyLbm hExzHe"
1717
data-test="reservation__title"
1818
>
1919
Ticket title
2020
</h1>
2121
<div
22-
class="Ticket__Price-sc-16qon89-6 iGKRoY"
22+
class="Ticket__Price-sc-16qon89-6 ilVEgG"
2323
data-testid="reservation__price--container"
2424
>
2525
<div
26-
class="Ticket__PriceRow-sc-16qon89-7 jRyEGg"
26+
class="Ticket__PriceRow-sc-16qon89-7 bhMqie"
2727
>
2828
<div>
2929
<span
30-
class="typography__Strongish-sc-yczr8v-1 pEndj"
30+
class="typography__Strongish-sc-yczr8v-1 jipjPt"
3131
>
3232
reservations:reservationDuration
3333
</span>
3434
</div>
3535
<div />
3636
</div>
3737
<div
38-
class="Ticket__PriceRow-sc-16qon89-7 jRyEGg"
38+
class="Ticket__PriceRow-sc-16qon89-7 bhMqie"
3939
>
4040
<div>
4141
<span
42-
class="typography__Strongish-sc-yczr8v-1 pEndj"
42+
class="typography__Strongish-sc-yczr8v-1 jipjPt"
4343
>
4444
prices:total
4545
</span>
4646
</div>
4747
<div>
4848
<span
49-
class="typography__Strongish-sc-yczr8v-1 pEndj"
49+
class="typography__Strongish-sc-yczr8v-1 jipjPt"
5050
>
5151
prices:priceFree
5252
</span>
@@ -55,7 +55,7 @@ exports[`renders correctly 1`] = `
5555
</div>
5656
</div>
5757
<div
58-
class="Ticket__PunchHole-sc-16qon89-0 kCZKkf"
58+
class="Ticket__PunchHole-sc-16qon89-0 gIogyp"
5959
/>
6060
</div>
6161
</DocumentFragment>
@@ -64,50 +64,50 @@ exports[`renders correctly 1`] = `
6464
exports[`renders correctly 2`] = `
6565
<DocumentFragment>
6666
<div
67-
class="Ticket__Wrapper-sc-16qon89-1 ktMrPx"
67+
class="Ticket__Wrapper-sc-16qon89-1 eOXurf"
6868
data-testid="reservation__ticket--container"
6969
>
7070
<div
71-
class="Ticket__PunchHole-sc-16qon89-0 kCZKkf"
71+
class="Ticket__PunchHole-sc-16qon89-0 gIogyp"
7272
/>
7373
<div
7474
class="Ticket__Content-sc-16qon89-2"
7575
>
7676
<h1
77-
class="typography__H1-sc-yczr8v-4 Ticket__Title-sc-16qon89-3 exespM cWvaak"
77+
class="typography__H1-sc-yczr8v-4 Ticket__Title-sc-16qon89-3 bYyLbm hExzHe"
7878
data-test="reservation__title"
7979
>
8080
Ticket title
8181
</h1>
8282
<div
83-
class="Ticket__Price-sc-16qon89-6 iGKRoY"
83+
class="Ticket__Price-sc-16qon89-6 ilVEgG"
8484
data-testid="reservation__price--container"
8585
>
8686
<div
87-
class="Ticket__PriceRow-sc-16qon89-7 jRyEGg"
87+
class="Ticket__PriceRow-sc-16qon89-7 bhMqie"
8888
>
8989
<div>
9090
<span
91-
class="typography__Strongish-sc-yczr8v-1 pEndj"
91+
class="typography__Strongish-sc-yczr8v-1 jipjPt"
9292
>
9393
reservations:reservationDuration
9494
</span>
9595
</div>
9696
<div />
9797
</div>
9898
<div
99-
class="Ticket__PriceRow-sc-16qon89-7 jRyEGg"
99+
class="Ticket__PriceRow-sc-16qon89-7 bhMqie"
100100
>
101101
<div>
102102
<span
103-
class="typography__Strongish-sc-yczr8v-1 pEndj"
103+
class="typography__Strongish-sc-yczr8v-1 jipjPt"
104104
>
105105
prices:total
106106
</span>
107107
</div>
108108
<div>
109109
<span
110-
class="typography__Strongish-sc-yczr8v-1 pEndj"
110+
class="typography__Strongish-sc-yczr8v-1 jipjPt"
111111
>
112112
prices:priceFree
113113
</span>
@@ -116,7 +116,7 @@ exports[`renders correctly 2`] = `
116116
</div>
117117
</div>
118118
<div
119-
class="Ticket__PunchHole-sc-16qon89-0 kCZKkf"
119+
class="Ticket__PunchHole-sc-16qon89-0 gIogyp"
120120
/>
121121
</div>
122122
</DocumentFragment>
@@ -125,34 +125,34 @@ exports[`renders correctly 2`] = `
125125
exports[`renders correctly 3`] = `
126126
<DocumentFragment>
127127
<div
128-
class="Ticket__Wrapper-sc-16qon89-1 ktMrPx"
128+
class="Ticket__Wrapper-sc-16qon89-1 eOXurf"
129129
data-testid="reservation__ticket--container"
130130
>
131131
<div
132-
class="Ticket__PunchHole-sc-16qon89-0 kCZKkf"
132+
class="Ticket__PunchHole-sc-16qon89-0 gIogyp"
133133
/>
134134
<div
135135
class="Ticket__Content-sc-16qon89-2"
136136
>
137137
<h1
138-
class="typography__H1-sc-yczr8v-4 Ticket__Title-sc-16qon89-3 exespM cWvaak"
138+
class="typography__H1-sc-yczr8v-4 Ticket__Title-sc-16qon89-3 bYyLbm hExzHe"
139139
data-test="reservation__title"
140140
>
141141
Ticket title
142142
</h1>
143143
<div
144-
class="Ticket__Price-sc-16qon89-6 hBNSGZ"
144+
class="Ticket__Price-sc-16qon89-6 iRiYIP"
145145
data-testid="reservation__price--container"
146146
>
147147
<span
148-
class="typography__Strongish-sc-yczr8v-1 pEndj"
148+
class="typography__Strongish-sc-yczr8v-1 jipjPt"
149149
>
150150
reservationUnit:priceFree
151151
</span>
152152
</div>
153153
</div>
154154
<div
155-
class="Ticket__PunchHole-sc-16qon89-0 kCZKkf"
155+
class="Ticket__PunchHole-sc-16qon89-0 gIogyp"
156156
/>
157157
</div>
158158
</DocumentFragment>
@@ -161,28 +161,28 @@ exports[`renders correctly 3`] = `
161161
exports[`renders correctly 4`] = `
162162
<DocumentFragment>
163163
<div
164-
class="Ticket__Wrapper-sc-16qon89-1 cQAWtY"
164+
class="Ticket__Wrapper-sc-16qon89-1 iwnydW"
165165
data-testid="reservation__ticket--container"
166166
>
167167
<div
168-
class="Ticket__PunchHole-sc-16qon89-0 hgEUEW"
168+
class="Ticket__PunchHole-sc-16qon89-0 EkbHM"
169169
/>
170170
<div
171171
class="Ticket__Content-sc-16qon89-2"
172172
>
173173
<h1
174-
class="typography__H1-sc-yczr8v-4 Ticket__Title-sc-16qon89-3 exespM cWvaak"
174+
class="typography__H1-sc-yczr8v-4 Ticket__Title-sc-16qon89-3 bYyLbm hExzHe"
175175
data-test="reservation__title"
176176
>
177177
Backgstage huone
178178
</h1>
179179
<h2
180-
class="typography__H2-sc-yczr8v-5 Ticket__Subtitle-sc-16qon89-4 dQVsnC cdeDAn"
180+
class="typography__H2-sc-yczr8v-5 Ticket__Subtitle-sc-16qon89-4 laLuKs hkZgxB"
181181
>
182182
Arabianrannan nuorisotalo
183183
</h2>
184184
<div
185-
class="Ticket__Duration-sc-16qon89-5 eGJEwH"
185+
class="Ticket__Duration-sc-16qon89-5 qbsUd"
186186
data-test="reservation__time-range"
187187
>
188188
<svg
@@ -207,25 +207,25 @@ exports[`renders correctly 4`] = `
207207
<span>
208208
Common:dateWithWeekday common:timeWithPrefix - common:time
209209
<span
210-
class="util__NoWrap-sc-5wh4ks-1 kcHKKZ"
210+
class="util__NoWrap-sc-5wh4ks-1 SOiPT"
211211
>
212212
(common:duration)
213213
</span>
214214
</span>
215215
</div>
216216
<div
217-
class="Ticket__Price-sc-16qon89-6 hBNSGZ"
217+
class="Ticket__Price-sc-16qon89-6 iRiYIP"
218218
data-testid="reservation__price--container"
219219
>
220220
<span
221-
class="typography__Strongish-sc-yczr8v-1 pEndj"
221+
class="typography__Strongish-sc-yczr8v-1 jipjPt"
222222
>
223223
reservationUnit:priceFree
224224
</span>
225225
</div>
226226
</div>
227227
<div
228-
class="Ticket__PunchHole-sc-16qon89-0 hgEUEW"
228+
class="Ticket__PunchHole-sc-16qon89-0 EkbHM"
229229
/>
230230
</div>
231231
</DocumentFragment>

ui/next.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const sentryWebpackPluginOptions = {
2929
// release, url, org, project, authToken, configFile, stripPrefix,
3030
// urlPrefix, include, ignore
3131

32+
dryRun: process.env.SENTRY_AUTH_TOKEN === undefined,
3233
silent: true, // Suppresses all logs
3334
// For all available options, see:
3435
// https://github.com/getsentry/sentry-webpack-plugin#options.

0 commit comments

Comments
 (0)