mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
E2E/integration tests: fix/un-skip some tests ✅
This commit is contained in:
parent
3d50a212b5
commit
83dfc4456c
7 changed files with 16 additions and 20 deletions
|
@ -399,7 +399,7 @@ test('line with additionalName', async (t) => {
|
|||
t.end()
|
||||
})
|
||||
|
||||
test.skip('radar', async (t) => {
|
||||
test('radar', async (t) => {
|
||||
await pStations
|
||||
|
||||
const vehicles = await client.radar({
|
||||
|
|
|
@ -158,8 +158,7 @@ test('Kiel Hbf to Holstentor', async (t) => {
|
|||
t.end()
|
||||
})
|
||||
|
||||
// todo: fails with "query too complex, try less intermediate stations"
|
||||
test.skip('Husum to Lübeck Hbf with stopover at Kiel Hbf', async (t) => {
|
||||
test('Husum to Lübeck Hbf with stopover at Kiel Hbf', async (t) => {
|
||||
const res = await client.journeys(husum, luebeckHbf, {
|
||||
via: kielHbf,
|
||||
results: 1,
|
||||
|
|
|
@ -198,7 +198,7 @@ test('departures with station object', async (t) => {
|
|||
t.end()
|
||||
})
|
||||
|
||||
test.skip('departures at Auestadion in direction of Friedrichsplatz', async (t) => {
|
||||
test('departures at Auestadion in direction of Friedrichsplatz', async (t) => {
|
||||
await testDeparturesInDirection({
|
||||
test: t,
|
||||
fetchDepartures: client.departures,
|
||||
|
@ -211,9 +211,8 @@ test.skip('departures at Auestadion in direction of Friedrichsplatz', async (t)
|
|||
t.end()
|
||||
})
|
||||
|
||||
// todo: also shows deps at 2200073 Scheidemannplatz & 2200055 Wilhelmsstraße/Stadtmuseum
|
||||
test.skip('arrivals at Kassel Friedrichsplatz.', async (t) => {
|
||||
const arrivals = await client.arrivals(friedrichsplatz, {
|
||||
test('arrivals at Kassel Weigelstr.', async (t) => {
|
||||
const arrivals = await client.arrivals(weigelstr, {
|
||||
duration: 5, when
|
||||
})
|
||||
|
||||
|
@ -221,7 +220,7 @@ test.skip('arrivals at Kassel Friedrichsplatz.', async (t) => {
|
|||
test: t,
|
||||
arrivals,
|
||||
validate,
|
||||
id: friedrichsplatz
|
||||
id: weigelstr,
|
||||
})
|
||||
t.end()
|
||||
})
|
||||
|
|
|
@ -91,8 +91,7 @@ test.skip('radar', async (t) => {
|
|||
t.end()
|
||||
})
|
||||
|
||||
// todo: always fails with `LOCATION` ("location/stop not found")
|
||||
test.skip('reachableFrom', async (t) => {
|
||||
test('reachableFrom', async (t) => {
|
||||
await testReachableFrom({
|
||||
test: t,
|
||||
reachableFrom: client.reachableFrom,
|
||||
|
|
|
@ -65,7 +65,7 @@ test('earlier/later journeys', async (t) => {
|
|||
t.end()
|
||||
})
|
||||
|
||||
test.skip('refreshJourney', async (t) => {
|
||||
test('refreshJourney', async (t) => {
|
||||
await testRefreshJourney({
|
||||
test: t,
|
||||
fetchJourneys: client.journeys,
|
||||
|
@ -91,7 +91,7 @@ test('arrivals at Platz der Jugend', async (t) => {
|
|||
|
||||
// todo: nearby
|
||||
|
||||
test.skip('radar', async (t) => {
|
||||
test('radar', async (t) => {
|
||||
const vehicles = await client.radar({
|
||||
north: 54.116968,
|
||||
west: 12.029738,
|
||||
|
@ -105,8 +105,7 @@ test.skip('radar', async (t) => {
|
|||
t.end()
|
||||
})
|
||||
|
||||
// todo: fails with "HCI Service: location missing or invalid"
|
||||
test.skip('reachableFrom', async (t) => {
|
||||
test('reachableFrom', async (t) => {
|
||||
await testReachableFrom({
|
||||
test: t,
|
||||
reachableFrom: client.reachableFrom,
|
||||
|
|
|
@ -91,13 +91,13 @@ test('radar', async (t) => {
|
|||
})
|
||||
|
||||
// todo: fails with "HCI Service: location missing or invalid"
|
||||
test.skip('reachableFrom', async (t) => {
|
||||
test('reachableFrom', async (t) => {
|
||||
await testReachableFrom({
|
||||
test: t,
|
||||
reachableFrom: client.reachableFrom,
|
||||
address: {
|
||||
type: 'location',
|
||||
id: '910001453',
|
||||
id: '910001336',
|
||||
name: 'Rathaus, Bremen',
|
||||
poi: true,
|
||||
latitude: 53.076053, longitude: 8.808008,
|
||||
|
|
|
@ -157,15 +157,15 @@ test('departures at Meckesheim', async (t) => {
|
|||
t.end()
|
||||
})
|
||||
|
||||
test.skip('departures at Meckesheim in direction of Mauer', async (t) => {
|
||||
const zuzenhausen = '8006679'
|
||||
test('departures at Meckesheim in direction of Reilsheim', async (t) => {
|
||||
const reilsheim = '8005015'
|
||||
await testDeparturesInDirection({
|
||||
test: t,
|
||||
fetchDepartures: client.departures,
|
||||
fetchTrip: client.trip,
|
||||
id: meckesheim,
|
||||
directionIds: [zuzenhausen],
|
||||
when, duration: 5 * 60,
|
||||
directionIds: [reilsheim],
|
||||
when, duration: 30 * 60,
|
||||
validate,
|
||||
})
|
||||
t.end()
|
||||
|
|
Loading…
Add table
Reference in a new issue