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()
|
t.end()
|
||||||
})
|
})
|
||||||
|
|
||||||
test.skip('radar', async (t) => {
|
test('radar', async (t) => {
|
||||||
await pStations
|
await pStations
|
||||||
|
|
||||||
const vehicles = await client.radar({
|
const vehicles = await client.radar({
|
||||||
|
|
|
@ -158,8 +158,7 @@ test('Kiel Hbf to Holstentor', async (t) => {
|
||||||
t.end()
|
t.end()
|
||||||
})
|
})
|
||||||
|
|
||||||
// todo: fails with "query too complex, try less intermediate stations"
|
test('Husum to Lübeck Hbf with stopover at Kiel Hbf', async (t) => {
|
||||||
test.skip('Husum to Lübeck Hbf with stopover at Kiel Hbf', async (t) => {
|
|
||||||
const res = await client.journeys(husum, luebeckHbf, {
|
const res = await client.journeys(husum, luebeckHbf, {
|
||||||
via: kielHbf,
|
via: kielHbf,
|
||||||
results: 1,
|
results: 1,
|
||||||
|
|
|
@ -198,7 +198,7 @@ test('departures with station object', async (t) => {
|
||||||
t.end()
|
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({
|
await testDeparturesInDirection({
|
||||||
test: t,
|
test: t,
|
||||||
fetchDepartures: client.departures,
|
fetchDepartures: client.departures,
|
||||||
|
@ -211,9 +211,8 @@ test.skip('departures at Auestadion in direction of Friedrichsplatz', async (t)
|
||||||
t.end()
|
t.end()
|
||||||
})
|
})
|
||||||
|
|
||||||
// todo: also shows deps at 2200073 Scheidemannplatz & 2200055 Wilhelmsstraße/Stadtmuseum
|
test('arrivals at Kassel Weigelstr.', async (t) => {
|
||||||
test.skip('arrivals at Kassel Friedrichsplatz.', async (t) => {
|
const arrivals = await client.arrivals(weigelstr, {
|
||||||
const arrivals = await client.arrivals(friedrichsplatz, {
|
|
||||||
duration: 5, when
|
duration: 5, when
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -221,7 +220,7 @@ test.skip('arrivals at Kassel Friedrichsplatz.', async (t) => {
|
||||||
test: t,
|
test: t,
|
||||||
arrivals,
|
arrivals,
|
||||||
validate,
|
validate,
|
||||||
id: friedrichsplatz
|
id: weigelstr,
|
||||||
})
|
})
|
||||||
t.end()
|
t.end()
|
||||||
})
|
})
|
||||||
|
|
|
@ -91,8 +91,7 @@ test.skip('radar', async (t) => {
|
||||||
t.end()
|
t.end()
|
||||||
})
|
})
|
||||||
|
|
||||||
// todo: always fails with `LOCATION` ("location/stop not found")
|
test('reachableFrom', async (t) => {
|
||||||
test.skip('reachableFrom', async (t) => {
|
|
||||||
await testReachableFrom({
|
await testReachableFrom({
|
||||||
test: t,
|
test: t,
|
||||||
reachableFrom: client.reachableFrom,
|
reachableFrom: client.reachableFrom,
|
||||||
|
|
|
@ -65,7 +65,7 @@ test('earlier/later journeys', async (t) => {
|
||||||
t.end()
|
t.end()
|
||||||
})
|
})
|
||||||
|
|
||||||
test.skip('refreshJourney', async (t) => {
|
test('refreshJourney', async (t) => {
|
||||||
await testRefreshJourney({
|
await testRefreshJourney({
|
||||||
test: t,
|
test: t,
|
||||||
fetchJourneys: client.journeys,
|
fetchJourneys: client.journeys,
|
||||||
|
@ -91,7 +91,7 @@ test('arrivals at Platz der Jugend', async (t) => {
|
||||||
|
|
||||||
// todo: nearby
|
// todo: nearby
|
||||||
|
|
||||||
test.skip('radar', async (t) => {
|
test('radar', async (t) => {
|
||||||
const vehicles = await client.radar({
|
const vehicles = await client.radar({
|
||||||
north: 54.116968,
|
north: 54.116968,
|
||||||
west: 12.029738,
|
west: 12.029738,
|
||||||
|
@ -105,8 +105,7 @@ test.skip('radar', async (t) => {
|
||||||
t.end()
|
t.end()
|
||||||
})
|
})
|
||||||
|
|
||||||
// todo: fails with "HCI Service: location missing or invalid"
|
test('reachableFrom', async (t) => {
|
||||||
test.skip('reachableFrom', async (t) => {
|
|
||||||
await testReachableFrom({
|
await testReachableFrom({
|
||||||
test: t,
|
test: t,
|
||||||
reachableFrom: client.reachableFrom,
|
reachableFrom: client.reachableFrom,
|
||||||
|
|
|
@ -91,13 +91,13 @@ test('radar', async (t) => {
|
||||||
})
|
})
|
||||||
|
|
||||||
// todo: fails with "HCI Service: location missing or invalid"
|
// todo: fails with "HCI Service: location missing or invalid"
|
||||||
test.skip('reachableFrom', async (t) => {
|
test('reachableFrom', async (t) => {
|
||||||
await testReachableFrom({
|
await testReachableFrom({
|
||||||
test: t,
|
test: t,
|
||||||
reachableFrom: client.reachableFrom,
|
reachableFrom: client.reachableFrom,
|
||||||
address: {
|
address: {
|
||||||
type: 'location',
|
type: 'location',
|
||||||
id: '910001453',
|
id: '910001336',
|
||||||
name: 'Rathaus, Bremen',
|
name: 'Rathaus, Bremen',
|
||||||
poi: true,
|
poi: true,
|
||||||
latitude: 53.076053, longitude: 8.808008,
|
latitude: 53.076053, longitude: 8.808008,
|
||||||
|
|
|
@ -157,15 +157,15 @@ test('departures at Meckesheim', async (t) => {
|
||||||
t.end()
|
t.end()
|
||||||
})
|
})
|
||||||
|
|
||||||
test.skip('departures at Meckesheim in direction of Mauer', async (t) => {
|
test('departures at Meckesheim in direction of Reilsheim', async (t) => {
|
||||||
const zuzenhausen = '8006679'
|
const reilsheim = '8005015'
|
||||||
await testDeparturesInDirection({
|
await testDeparturesInDirection({
|
||||||
test: t,
|
test: t,
|
||||||
fetchDepartures: client.departures,
|
fetchDepartures: client.departures,
|
||||||
fetchTrip: client.trip,
|
fetchTrip: client.trip,
|
||||||
id: meckesheim,
|
id: meckesheim,
|
||||||
directionIds: [zuzenhausen],
|
directionIds: [reilsheim],
|
||||||
when, duration: 5 * 60,
|
when, duration: 30 * 60,
|
||||||
validate,
|
validate,
|
||||||
})
|
})
|
||||||
t.end()
|
t.end()
|
||||||
|
|
Loading…
Add table
Reference in a new issue