Skip to content

Commit

Permalink
fix i18n namespace, fix badge test
Browse files Browse the repository at this point in the history
  • Loading branch information
ryankeairns committed Sep 18, 2020
1 parent cc5155b commit 14e2982
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ export const NewsfeedNavButton = ({ apiFetchResult }: Props) => {
aria-haspopup="true"
aria-label={
showBadge
? i18n.translate('header.newsfeedButton.unreadAriaLabel', {
? i18n.translate('newsfeed.headerButton.unreadAriaLabel', {
defaultMessage: 'Newsfeed menu - unread items available',
})
: i18n.translate('header.newsfeedButton.readAriaLabel', {
: i18n.translate('newsfeed.headerButton.readAriaLabel', {
defaultMessage: 'Newsfeed menu - all items read',
})
}
Expand Down
4 changes: 3 additions & 1 deletion test/functional/page_objects/newsfeed_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ export function NewsfeedPageProvider({ getService, getPageObjects }: FtrProvider
}

async getRedButtonSign() {
return await testSubjects.exists('showBadgeNews');
return (await testSubjects.find('newsfeed')).elementHasClass(
'euiHeaderSectionItemButton__notification--dot'
);
}

async getNewsfeedList() {
Expand Down

0 comments on commit 14e2982

Please sign in to comment.