Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
QMAPS-1883 fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
xem committed Apr 19, 2021
1 parent cc17016 commit c846ad2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions tests/integration/tests/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ test('mouse navigation', async () => {
expect(searchValue.trim()).toEqual(TypedSearch);

await autocompleteHelper.clickResult(1);
//const selectedSearchValue = await autocompleteHelper.getSearchInputValue();
//const expectedLabelName = mockAutocomplete.features[0].properties.geocoding.name;
//expect(selectedSearchValue).toEqual(expectedLabelName);
const selectedSearchValue = await autocompleteHelper.getSearchInputValue();
const expectedLabelName = mockAutocomplete.features[0].properties.geocoding.name;
expect(selectedSearchValue).toEqual(expectedLabelName);
});

test('move to on click', async () => {
Expand Down Expand Up @@ -245,7 +245,7 @@ test('Search Query', async () => {
responseHandler.addPreparedResponse(mockAutocomplete, /autocomplete/);
await page.goto('about:blank');

const searchQuery = "Musée d'Orsay";
const searchQuery = 'test';
await page.goto(`${APP_URL}/?q=${searchQuery}`);
const searchValue = await getInputValue(page, '#search');

Expand Down
2 changes: 0 additions & 2 deletions tests/integration/tests/poi.desktop.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ test('add a poi as favorite and find it back in the favorite menu', async () =>
expect(await exists(page, '.poiTitle')).toBeTruthy();
expect(await exists(page, '.poi_panel')).toBeTruthy();
await page.click('.poi_panel__actions .poi_panel__action__favorite');
//await page.click('.search_form__clear');
// we check that the first favorite item is our poi
await toggleFavoritePanel(page);
let fav = await getFavorites(page);
Expand All @@ -99,7 +98,6 @@ test('add a poi as favorite and find it back in the favorite menu', async () =>
expect(await exists(page, '.poi_panel')).toBeTruthy();

await page.click('.poi_panel__actions .poi_panel__action__favorite');
//await page.click('.search_form__clear');
// it should disappear from the favorites
await toggleFavoritePanel(page);
fav = await getFavorites(page);
Expand Down

0 comments on commit c846ad2

Please sign in to comment.