Skip to content

Commit

Permalink
chore: fixing e2e tests KER-346
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkojamG committed Oct 31, 2024
1 parent 35185ed commit 54f3ccd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions e2e/tests/pages/map.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ test.describe('Map Page', () => {
await expect(page.getByRole('combobox', { name: 'Etsi otsikoista' })).toBeVisible();
});

test('should display "Etsi..." text', async ({ page }) => {
await expect(page.getByText('Etsi...')).toBeVisible();
test('should display "Hae aiheista" combobox', async ({ page }) => {
await expect(page.getByRole('combobox', { name: 'Hae aiheista' })).toBeVisible();
});

test('should display "Etsi" button', async ({ page }) => {
Expand Down
3 changes: 1 addition & 2 deletions src/components/LabelList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl } from 'react-intl';
import { Tag } from 'hds-react';
import { capitalize } from 'lodash';

import getAttr from '../utils/getAttr';
import Link from './LinkWithLang';
Expand All @@ -27,7 +26,7 @@ export const Labels = (props) => {
}}
key={label.id || label}
>
<Tag theme={{ '--tag-background': 'var(--color-fog)' }}>{capitalize(getAttr(label.label, language))}</Tag>
<Tag theme={{ '--tag-background': 'var(--color-fog)' }}>{getAttr(label.label, language)}</Tag>
</Link>
);

Expand Down

0 comments on commit 54f3ccd

Please sign in to comment.