Skip to content

Commit ca1320f

Browse files
chore: merge main into feat/tzaware
chore: merge main into feat/tzaware
2 parents 63a1baf + 3ab7e67 commit ca1320f

47 files changed

Lines changed: 6229 additions & 23534 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -173,42 +173,46 @@ jobs:
173173
name: coverage
174174
path: coverage.json
175175

176-
tests-cypress-modern:
177-
name: Run Tests (Cypress - Modern)
176+
tests-playwright:
177+
name: Run Tests (Playwright)
178178
if: ${{ github.event.inputs.skiptests == 'false' }}
179179
needs: [prepare]
180180
runs-on: macos-latest
181+
strategy:
182+
fail-fast: false
183+
matrix:
184+
project: [chromium, firefox]
181185

182186
steps:
183187
- uses: actions/checkout@v3
184188

189+
- uses: actions/setup-node@v2
190+
with:
191+
node-version: '18'
192+
185193
- name: Run all tests
186194
run: |
187195
echo "Installing dependencies..."
188196
yarn
189-
echo "Start Vite Preview..."
190-
yarn preview &>/dev/null &
197+
echo "Installing Playwright..."
198+
cd playwright
199+
mkdir test-results
200+
npm ci
201+
npx playwright install --with-deps ${{ matrix.project }}
191202
echo "Running tests..."
192-
yarn cypress
193-
194-
- name: Upload Video Recordings
195-
uses: actions/upload-artifact@v3.0.0
196-
if: ${{ always() }}
197-
continue-on-error: true
198-
with:
199-
name: videos-modern
200-
path: cypress/videos/
203+
npx playwright test --project=${{ matrix.project }}
201204
202-
- name: Upload Screenshots
205+
- name: Upload Report
203206
uses: actions/upload-artifact@v3.0.0
204207
if: ${{ always() }}
205208
continue-on-error: true
206209
with:
207-
name: screenshots-modern
208-
path: cypress/screenshots/
210+
name: playwright-results-${{ matrix.project }}
211+
path: playwright/test-results/
212+
if-no-files-found: ignore
209213

210-
tests-cypress-legacy:
211-
name: Run Tests (Cypress - Legacy)
214+
tests-cypress:
215+
name: Run Tests (Cypress)
212216
if: ${{ github.event.inputs.skiptests == 'false' }}
213217
needs: [prepare]
214218
runs-on: ubuntu-latest
@@ -258,6 +262,7 @@ jobs:
258262
with:
259263
name: videos-legacy
260264
path: cypress/videos/
265+
if-no-files-found: ignore
261266

262267
- name: Upload Screenshots
263268
uses: actions/upload-artifact@v3.0.0
@@ -266,14 +271,15 @@ jobs:
266271
with:
267272
name: screenshots-modern
268273
path: cypress/screenshots/
274+
if-no-files-found: ignore
269275

270276
# -----------------------------------------------------------------
271277
# RELEASE
272278
# -----------------------------------------------------------------
273279
release:
274280
name: Make Release
275281
if: ${{ always() }}
276-
needs: [tests-python, tests-cypress-modern, tests-cypress-legacy, prepare]
282+
needs: [tests-python, tests-playwright, tests-cypress, prepare]
277283
runs-on: ubuntu-latest
278284
env:
279285
SHOULD_DEPLOY: ${{needs.prepare.outputs.should_deploy}}

.github/workflows/ci-run-tests.yml

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ on:
1010
- 'package.json'
1111

1212
jobs:
13-
tests:
14-
name: Run Tests
13+
tests-python:
14+
name: Run Tests (Python)
1515
runs-on: ubuntu-latest
1616
container: ghcr.io/ietf-tools/datatracker-app-base:latest
1717

@@ -69,3 +69,39 @@ jobs:
6969
with:
7070
name: coverage
7171
path: coverage.json
72+
73+
tests-playwright:
74+
name: Run Tests (Playwright)
75+
runs-on: macos-latest
76+
strategy:
77+
fail-fast: false
78+
matrix:
79+
project: [chromium, firefox]
80+
81+
steps:
82+
- uses: actions/checkout@v3
83+
84+
- uses: actions/setup-node@v2
85+
with:
86+
node-version: '18'
87+
88+
- name: Run all tests
89+
run: |
90+
echo "Installing dependencies..."
91+
yarn
92+
echo "Installing Playwright..."
93+
cd playwright
94+
mkdir test-results
95+
npm ci
96+
npx playwright install --with-deps ${{ matrix.project }}
97+
echo "Running tests..."
98+
npx playwright test --project=${{ matrix.project }}
99+
100+
- name: Upload Report
101+
uses: actions/upload-artifact@v3.0.0
102+
if: ${{ always() }}
103+
continue-on-error: true
104+
with:
105+
name: playwright-results-${{ matrix.project }}
106+
path: playwright/test-results/
107+
if-no-files-found: ignore

.pnp.cjs

Lines changed: 42 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
2.52 KB
Binary file not shown.
95.4 KB
Binary file not shown.
10.1 KB
Binary file not shown.
59.1 KB
Binary file not shown.
60.3 KB
Binary file not shown.

client/App.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ const agendaStore = useAgendaStore()
2424
2525
const appContainer = ref(null)
2626
27-
// INIT
28-
29-
agendaStore.fetch()
30-
3127
// --------------------------------------------------------------------
3228
// Handle browser resize
3329
// --------------------------------------------------------------------

client/agenda/Agenda.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,8 @@ const titleExtra = computed(() => {
227227
return title
228228
})
229229
const meetingDate = computed(() => {
230-
const start = DateTime.fromISO(agendaStore.meeting.startDate).setZone(agendaStore.timezone)
231-
const end = DateTime.fromISO(agendaStore.meeting.endDate).setZone(agendaStore.timezone)
230+
const start = DateTime.fromISO(agendaStore.meeting.startDate, { zone: agendaStore.meeting.timezone }).setZone(agendaStore.timezone)
231+
const end = DateTime.fromISO(agendaStore.meeting.endDate, { zone: agendaStore.meeting.timezone }).setZone(agendaStore.timezone)
232232
if (start.month === end.month) {
233233
return `${start.toFormat('MMMM d')} - ${end.toFormat('d, y')}`
234234
} else {
@@ -353,6 +353,8 @@ onBeforeUnmount(() => {
353353
// MOUNTED
354354
355355
onMounted(() => {
356+
agendaStore.fetch(route.params.meetingNumber)
357+
356358
handleCurrentMeetingRedirect()
357359
358360
// -> Hide Loading Screen

0 commit comments

Comments
 (0)