Skip to content

I18n tests#20306

Merged
yankouskia merged 28 commits intoelastic:masterfrom
maksim-tolo:i18n-tests
Jul 24, 2018
Merged

I18n tests#20306
yankouskia merged 28 commits intoelastic:masterfrom
maksim-tolo:i18n-tests

Conversation

@maksim-tolo
Copy link
Contributor

@maksim-tolo maksim-tolo commented Jun 28, 2018

#19727

Blocked by #20513

@maksim-tolo maksim-tolo added review Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// Project:i18n labels Jun 28, 2018
@elasticmachine
Copy link
Contributor

💔 Build Failed

@azasypkin
Copy link
Contributor

retest

@azasypkin azasypkin added the test label Jun 28, 2018
@elasticmachine
Copy link
Contributor

💔 Build Failed

@azasypkin
Copy link
Contributor

Hey @maksim-tolo, looks like CI fails because of linting issue in your PR, could you please check?

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Aliaksandr Yankouski and others added 2 commits July 4, 2018 14:42
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

jest.resetAllMocks();
});

it('provides wrapper under i18n translate function', () => {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this label correct for this test?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@archanid Filters in general are functions which format the value. And current filter is a wrapper under i18n core engine translate function. In this test case we check that angular abstraction works.
Could you please share your thoughts maybe regarding more suitable label here?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the clarification! The label works.

@yankouskia yankouskia requested review from azasypkin, epixa and spalger and removed request for azasypkin, epixa and spalger July 11, 2018 08:45
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@yankouskia yankouskia requested a review from maryia-lapata July 19, 2018 12:13
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded


if (newMessages.locale && newMessages.locale !== locale) {
throw new Error(
'[I18n] A `locale` in the messages object is different from one provided as second argument.'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: not a native speaker, but something like from the one provided as a second argument sounds a little bit better, up to you 🤷‍♂️

@elasticmachine
Copy link
Contributor

💔 Build Failed

@yankouskia
Copy link

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@yankouskia
Copy link

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@yankouskia yankouskia merged commit 1e7ce26 into elastic:master Jul 24, 2018
@yankouskia yankouskia deleted the i18n-tests branch July 24, 2018 09:06
LeanidShutau pushed a commit to LeanidShutau/kibana that referenced this pull request Aug 3, 2018
* Add unit-tests for i18n engine

* tests for angular wrappers under i18n engine

* split to packages in accordance to specific library

* split to packages depending on tech and environment

* make env modules names consistent

* remove intl polyfilling

* move laoder to root, i18n folder to core

* Add unit-tests for i18n engine

* tests for angular wrappers under i18n engine

* rebase on split package, injectIntl component

* eslint fixes

* use method names for checking, test i18n-values in directive

* use real html content while testing directive

* add test for angular directive without values
LeanidShutau added a commit that referenced this pull request Aug 3, 2018
* Add unit-tests for i18n engine

* tests for angular wrappers under i18n engine

* split to packages in accordance to specific library

* split to packages depending on tech and environment

* make env modules names consistent

* remove intl polyfilling

* move laoder to root, i18n folder to core

* Add unit-tests for i18n engine

* tests for angular wrappers under i18n engine

* rebase on split package, injectIntl component

* eslint fixes

* use method names for checking, test i18n-values in directive

* use real html content while testing directive

* add test for angular directive without values
@LeanidShutau
Copy link
Contributor

6.x/6.5: 1f7c1bc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported Project:i18n Team:Core Platform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t// test v6.5.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants