Skip to content

Commit 4528b77

Browse files
test: test fixes
1 parent f4fc7c2 commit 4528b77

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

example/e2e/event_listener.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,21 @@ describe('Even listener tests', () => {
2727
await initializeIntegrationTestsPage();
2828
});
2929

30-
it('T01 - test navigation onRemainingTimeOrDistanceChanged event listener', async () => {
30+
it('T01 - test onRemainingTimeOrDistanceChanged event listener', async () => {
3131
await selectTestByName('testOnRemainingTimeOrDistanceChanged');
3232
await agreeToTermsAndConditions();
3333
await waitForTestToFinish();
3434
await expectSuccess();
3535
});
3636

37-
it('T02 - test navigation onArrival event listener', async () => {
37+
it('T02 - test onArrival event listener', async () => {
3838
await selectTestByName('testOnArrival');
3939
await agreeToTermsAndConditions();
4040
await waitForTestToFinish();
4141
await expectSuccess();
4242
});
4343

44-
it('T03 - test navigation OnRouteChanged event listener', async () => {
44+
it('T03 - test onRouteChanged event listener', async () => {
4545
await selectTestByName('testOnRouteChanged');
4646
await agreeToTermsAndConditions();
4747
await waitForTestToFinish();

example/src/screens/integration_tests/integration_test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,14 +272,14 @@ export const testNavigationToMultipleDestination = async (
272272
[
273273
{
274274
position: {
275-
lat: 37.4152112,
276-
lng: -122.0813741,
275+
lat: 37.4178065,
276+
lng: -122.0812455,
277277
},
278278
},
279279
{
280280
position: {
281-
lat: 37.4155112,
282-
lng: -122.0806959,
281+
lat: 37.4177952,
282+
lng: -122.0817198,
283283
},
284284
},
285285
],
@@ -599,6 +599,8 @@ export const testOnArrival = async (testTools: TestTools) => {
599599
},
600600
});
601601
await navigationController.startGuidance();
602+
// Timeout here is used to avoid issues on Android.
603+
await delay(3000);
602604
await navigationController.simulator.simulateLocationsAlongExistingRoute({
603605
speedMultiplier: 5,
604606
});

0 commit comments

Comments
 (0)