feat(hda-extension-e2e): Verify seminar start date in seminar import
This commit is contained in:
@@ -18,10 +18,15 @@ function arrayContainingObjectWith(obj: Record<string, unknown>) {
|
||||
test('Seminar events is imported successfully', async ({ workerAdminSeededInstance }, testInfo) => {
|
||||
const antragoId = '57000'
|
||||
const hotelId = '17'
|
||||
const uhrzeitStart = '17:17'
|
||||
const datumStart = '06.06.2025'
|
||||
|
||||
const flowName = FlowsPage.getFlowNameForWorker(testInfo.parallelIndex)
|
||||
const runner = await SeminarImport.fromFlowArgs(workerAdminSeededInstance, flowName)
|
||||
runner.setSeminarEventContentWithAntragoId(antragoId, { hotel: { idnr: hotelId } })
|
||||
runner.setSeminarEventContentWithAntragoId(antragoId, {
|
||||
zeitraum: { uhrzeitStart, datumStart },
|
||||
hotel: { idnr: hotelId }
|
||||
})
|
||||
|
||||
const { flowResponse, seminarEvents } = await runner.run()
|
||||
|
||||
@@ -34,6 +39,7 @@ test('Seminar events is imported successfully', async ({ workerAdminSeededInstan
|
||||
expect(seminarEvents).toEqual(
|
||||
arrayContainingObjectWith({
|
||||
antrago_id: antragoId,
|
||||
starts_at: `2025-06-06T17:17:00`,
|
||||
location: expect.objectContaining({ id: hotelId })
|
||||
})
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user