Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Test] Enable unit test suite: render_opt_in_banner.test.ts #505

Merged
merged 1 commit into from
Jun 24, 2021

Conversation

ananzh
Copy link
Member

@ananzh ananzh commented Jun 19, 2021

Description

All the unit tests related to unused telemetry are temporarily
skipped after the fork. Unit tests of the disabled telemetry
functions should also be modified correspondingly. To build
a clean unit test, we decide to modify and enable all the
working unit tests. This PR modifies and enables
render_opt_in_banner.test.ts.

Signed-off-by: Anan Zhuang ananzh@amazon.com

Issues Resolved

#503

Test results

unit test for render_opt_in_banner.test.ts

yarn test:jest /home/anan/work/OpenSearch-Dashboards/src/plugins/telemetry/public/services/telemetry_notifications/render_opt_in_banner.test.ts
yarn run v1.22.10
$ node scripts/jest /home/anan/work/OpenSearch-Dashboards/src/plugins/telemetry/public/services/telemetry_notifications/render_opt_in_banner.test.ts
 PASS  src/plugins/telemetry/public/services/telemetry_notifications/render_opt_in_banner.test.ts
  renderOptInBanner
    ✓ adds a banner to banners with priority of 10000 (4 ms)

Test Suites: 1 passed, 1 total
Tests:       1 passed, 1 total
Snapshots:   0 total
Time:        3.882 s

Overall test result:
Screen Shot 2021-06-18 at 5 15 17 PM

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

…ch-project#503)

All the unit tests related to unused telemetry are temporarily
skipped after the fork. Unit tests of the disabled telemetry
functions should also be modified correspondingly. To build
a clean unit test, we decide to modify and enable all the
working unit tests. This PR modifies and enables
render_opt_in_banner.test.ts.

Signed-off-by: Anan Zhuang <ananzh@amazon.com>
@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed 2dcd565

@ananzh ananzh changed the title [Test] Enable unit test suite: render_opt_in_banner.test.ts (#503) [Test] Enable unit test suite: render_opt_in_banner.test.ts Jun 21, 2021
@kavilla kavilla linked an issue Jun 23, 2021 that may be closed by this pull request
@ananzh ananzh merged commit 24ceae6 into opensearch-project:main Jun 24, 2021
kavilla pushed a commit that referenced this pull request Jun 26, 2021
)

All the unit tests related to unused telemetry are temporarily
skipped after the fork. Unit tests of the disabled telemetry
functions should also be modified correspondingly. To build
a clean unit test, we decide to modify and enable all the
working unit tests. This PR modifies and enables
render_opt_in_banner.test.ts.

Signed-off-by: Anan Zhuang <ananzh@amazon.com>
kavilla pushed a commit that referenced this pull request Jun 26, 2021
)

All the unit tests related to unused telemetry are temporarily
skipped after the fork. Unit tests of the disabled telemetry
functions should also be modified correspondingly. To build
a clean unit test, we decide to modify and enable all the
working unit tests. This PR modifies and enables
render_opt_in_banner.test.ts.

Signed-off-by: Anan Zhuang <ananzh@amazon.com>
@ananzh ananzh deleted the i-503 branch September 14, 2021 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Test] unit test render_opt_in_banner.test.ts is skipped now
4 participants