HUE-9090 [frontend] Introduce snapshot testing for ko components

Review Request #14548 — Created Nov. 26, 2019 and submitted

johan
hue
master
hue
jgauthier, ranade, romain, roohi, weixia, yingc
commit f2d30093dd62c7bb95b078f46c0584748203f5c3
Author: Johan Ahlen <johan@johanahlen.com>
Date:   Tue Nov 26 16:48:20 2019 +0100

    HUE-9090 [frontend] Introduce snapshot testing for ko components

:100644 100644 80c892eb93 673d563d1b M	desktop/core/src/desktop/js/jest/koTestUtils.js
:000000 100644 0000000000 fe8675b4cf A	desktop/core/src/desktop/js/ko/components/__snapshots__/ko.catalogEntriesList.test.js.snap
:000000 100644 0000000000 6a601a1c77 A	desktop/core/src/desktop/js/ko/components/__snapshots__/ko.sessionPanel.test.js.snap
:100644 100644 0813a7cdb4 fe7158e7bd M	desktop/core/src/desktop/js/ko/components/ko.catalogEntriesList.js
:000000 100644 0000000000 51ded7db36 A	desktop/core/src/desktop/js/ko/components/ko.catalogEntriesList.test.js
:100644 100644 0130b0d531 215a3acc8f M	desktop/core/src/desktop/js/ko/components/ko.sessionPanel.test.js

commit efff2759aba02d8974c7b7be09b6963084a905b7
Author: Johan Ahlen <johan@johanahlen.com>
Date:   Tue Nov 26 16:47:46 2019 +0100

    HUE-9090 [frontend] Don't re-run js tests on static content changes

:100644 100644 283558b74f 86d0c6bd13 M	jest.config.js

commit cd07b4f5d1da22ed924ef7141b09752534cada8c
Author: Johan Ahlen <johan@johanahlen.com>
Date:   Tue Nov 26 16:47:12 2019 +0100

    HUE-9090 [frontend] Replace deprecated polyfill lib

:100644 100644 7b3d51064f 618349008b M	desktop/core/src/desktop/js/hue.js
:100644 100644 b4f8f524c2 890a13e44f M	desktop/core/src/desktop/js/sql/sqlLocationWebWorker.js
:100644 100644 4cb7d789cb bc66523601 M	desktop/core/src/desktop/js/sql/sqlSyntaxWebWorker.js

commit c1dbbb13dfa345d545cd18908b5eab0cb036f7de
Author: Johan Ahlen <johan@johanahlen.com>
Date:   Tue Nov 26 16:46:31 2019 +0100

    HUE-9090 [frontend] Fix flaky test

:100644 100644 bb94b74d7a f6b9abf963 M	desktop/core/src/desktop/js/sql/autocompleteResults.test.js

commit 76ba45a74bdd1c84c58bf5847695de34d546f518
Author: Johan Ahlen <johan@johanahlen.com>
Date:   Tue Nov 26 16:45:58 2019 +0100

    HUE-9090 [frontend] Add the jest plugin to eslint

:100644 100644 c107e1bd13 519f158aad M	.circleci/config.yml
:100644 100644 0b66f78bfe c49c6067fc M	.eslintrc.js
:100644 100644 d35f5393b8 913e765784 M	desktop/core/src/desktop/js/ko/components/assist/assistStorageEntry.test.js
:100644 100644 f89bba3463 7617420ebd M	desktop/core/src/desktop/js/parse/sql/calcite/test/calciteAutocompleteParser.Alter.test.js
:100644 100644 0df25c3197 2c3d91f84f M	desktop/core/src/desktop/js/parse/sql/calcite/test/calciteAutocompleteParser.Create.test.js
:100644 100644 f26a4225ab 95aeea25ac M	desktop/core/src/desktop/js/parse/sql/calcite/test/calciteAutocompleteParser.Drop.test.js
:100644 100644 18bbc7f4ad d4f5c3d8d7 M	desktop/core/src/desktop/js/parse/sql/calcite/test/calciteAutocompleteParser.Error.test.js
:100644 100644 db0736daac 77350261f1 M	desktop/core/src/desktop/js/parse/sql/calcite/test/calciteAutocompleteParser.Insert.test.js
:100644 100644 1290cce249 eeeed5b306 M	desktop/core/src/desktop/js/parse/sql/calcite/test/calciteAutocompleteParser.Locations.test.js
:100644 100644 08f4435163 5a48c05f34 M	desktop/core/src/desktop/js/parse/sql/calcite/test/calciteAutocompleteParser.Select.test.js
:100644 100644 c8490e8379 2488eacf8a M	desktop/core/src/desktop/js/parse/sql/calcite/test/calciteAutocompleteParser.Set.test.js
:100644 100644 4088e81596 75f336decf M	desktop/core/src/desktop/js/parse/sql/calcite/test/calciteAutocompleteParser.Update.test.js
:100644 100644 19fba0c693 9b04a6d964 M	desktop/core/src/desktop/js/parse/sql/calcite/test/calciteAutocompleteParser.Use.test.js
:100644 100644 3728dd9ce8 cb967085f8 M	desktop/core/src/desktop/js/parse/sql/calcite/test/calciteAutocompleteParser.test.js
:100644 100644 0d0880ad61 1887f2dcce M	desktop/core/src/desktop/js/parse/sql/druid/test/druidAutocompleteParser.Alter.test.js
:100644 100644 7fe74b1236 c2cdbeea66 M	desktop/core/src/desktop/js/parse/sql/druid/test/druidAutocompleteParser.Create.test.js
:100644 100644 8ea8657d91 801d98d4cd M	desktop/core/src/desktop/js/parse/sql/druid/test/druidAutocompleteParser.Drop.test.js
:100644 100644 61379423fd 5fff333de6 M	desktop/core/src/desktop/js/parse/sql/druid/test/druidAutocompleteParser.Error.test.js
:100644 100644 b252884668 ed32ca6ec3 M	desktop/core/src/desktop/js/parse/sql/druid/test/druidAutocompleteParser.Insert.test.js
:100644 100644 17347144bf 24fe67ed3a M	desktop/core/src/desktop/js/parse/sql/druid/test/druidAutocompleteParser.Locations.test.js
:100644 100644 fe03b71d76 570dc264c4 M	desktop/core/src/desktop/js/parse/sql/druid/test/druidAutocompleteParser.Select.test.js
:100644 100644 6bbb23ede6 cd79a0970f M	desktop/core/src/desktop/js/parse/sql/druid/test/druidAutocompleteParser.Set.test.js
:100644 100644 9790199594 d829e0a037 M	desktop/core/src/desktop/js/parse/sql/druid/test/druidAutocompleteParser.Update.test.js
:100644 100644 d11388b81a afe8a207a1 M	desktop/core/src/desktop/js/parse/sql/druid/test/druidAutocompleteParser.Use.test.js
:100644 100644 eaca86628a a523732a88 M	desktop/core/src/desktop/js/parse/sql/druid/test/druidAutocompleteParser.test.js
:100644 100644 446136dbaf 25dc5d3a49 M	desktop/core/src/desktop/js/parse/sql/elasticsearch/test/elasticsearchAutocompleteParser.Alter.test.js
:100644 100644 1dc005aff1 b3684ced11 M	desktop/core/src/desktop/js/parse/sql/elasticsearch/test/elasticsearchAutocompleteParser.Create.test.js
:100644 100644 aa2e705a3d 80d647ad55 M	desktop/core/src/desktop/js/parse/sql/elasticsearch/test/elasticsearchAutocompleteParser.Drop.test.js
:100644 100644 f3dd1e89ac 1a32e08407 M	desktop/core/src/desktop/js/parse/sql/elasticsearch/test/elasticsearchAutocompleteParser.Error.test.js
:100644 100644 f7837b7e68 1c2fdb1607 M	desktop/core/src/desktop/js/parse/sql/elasticsearch/test/elasticsearchAutocompleteParser.Insert.test.js
:100644 100644 4231e62cd1 b7b04a7590 M	desktop/core/src/desktop/js/parse/sql/elasticsearch/test/elasticsearchAutocompleteParser.Locations.test.js
:100644 100644 1f3389e3bd 3b89d80fdc M	desktop/core/src/desktop/js/parse/sql/elasticsearch/test/elasticsearchAutocompleteParser.Select.test.js
:100644 100644 08385ea243 87e8cb7905 M	desktop/core/src/desktop/js/parse/sql/elasticsearch/test/elasticsearchAutocompleteParser.Set.test.js
:100644 100644 0910d8f077 c4c5b4e5f7 M	desktop/core/src/desktop/js/parse/sql/elasticsearch/test/elasticsearchAutocompleteParser.Update.test.js
:100644 100644 5798b77ca5 2dc6c45fc3 M	desktop/core/src/desktop/js/parse/sql/elasticsearch/test/elasticsearchAutocompleteParser.Use.test.js
:100644 100644 cd40953e6b 775dd2b449 M	desktop/core/src/desktop/js/parse/sql/elasticsearch/test/elasticsearchAutocompleteParser.test.js
:100644 100644 3316db021b 75e247d537 M	desktop/core/src/desktop/js/parse/sql/generic/test/genericAutocompleteParser.Alter.test.js
:100644 100644 f4c490f19d 2d27adb2fe M	desktop/core/src/desktop/js/parse/sql/generic/test/genericAutocompleteParser.Create.test.js
:100644 100644 85079e9759 c2f2357aeb M	desktop/core/src/desktop/js/parse/sql/generic/test/genericAutocompleteParser.Drop.test.js
:100644 100644 d18f9bcd45 78e2430f64 M	desktop/core/src/desktop/js/parse/sql/generic/test/genericAutocompleteParser.Error.test.js
:100644 100644 7fc1d42c13 ed691f3134 M	desktop/core/src/desktop/js/parse/sql/generic/test/genericAutocompleteParser.Insert.test.js
:100644 100644 6475bbfd72 35aef252af M	desktop/core/src/desktop/js/parse/sql/generic/test/genericAutocompleteParser.Locations.test.js
:100644 100644 bf45bcca02 8b61ac550f M	desktop/core/src/desktop/js/parse/sql/generic/test/genericAutocompleteParser.Select.test.js
:100644 100644 c319657acf 39b680eed8 M	desktop/core/src/desktop/js/parse/sql/generic/test/genericAutocompleteParser.Set.test.js
:100644 100644 16fde45238 46086f5659 M	desktop/core/src/desktop/js/parse/sql/generic/test/genericAutocompleteParser.Update.test.js
:100644 100644 965420bc0b 05f79fb683 M	desktop/core/src/desktop/js/parse/sql/generic/test/genericAutocompleteParser.Use.test.js
:100644 100644 2fc6fd4bd2 d901ba304c M	desktop/core/src/desktop/js/parse/sql/generic/test/genericAutocompleteParser.test.js
:100644 100644 3dccf10f81 87fcfb77c3 M	desktop/core/src/desktop/js/parse/sql/hive/test/hiveAutocompleteParser.Alter.test.js
:100644 100644 c8b0b44c8f 6f0d825d93 M	desktop/core/src/desktop/js/parse/sql/hive/test/hiveAutocompleteParser.Analyze.test.js
:100644 100644 ca15ce11ef c752e21c8f M	desktop/core/src/desktop/js/parse/sql/hive/test/hiveAutocompleteParser.Create.test.js
:100644 100644 d43e85ebeb 328badc003 M	desktop/core/src/desktop/js/parse/sql/hive/test/hiveAutocompleteParser.Describe.test.js
:100644 100644 b139f5cd79 4eacad3b7d M	desktop/core/src/desktop/js/parse/sql/hive/test/hiveAutocompleteParser.Drop.test.js
:100644 100644 15abe29c2b 6f8ced95a8 M	desktop/core/src/desktop/js/parse/sql/hive/test/hiveAutocompleteParser.Error.test.js
:100644 100644 7a849223a2 5de5fd4858 M	desktop/core/src/desktop/js/parse/sql/hive/test/hiveAutocompleteParser.Grant.test.js
:100644 100644 f2f39bb795 06099ee41e M	desktop/core/src/desktop/js/parse/sql/hive/test/hiveAutocompleteParser.ImportExport.test.js
:100644 100644 17c37a6b68 e6114ddac1 M	desktop/core/src/desktop/js/parse/sql/hive/test/hiveAutocompleteParser.Insert.test.js
:100644 100644 cc775e82a0 6f2e1c2b61 M	desktop/core/src/desktop/js/parse/sql/hive/test/hiveAutocompleteParser.Load.test.js
:100644 100644 f9ca2200bc 7dad18a1c8 M	desktop/core/src/desktop/js/parse/sql/hive/test/hiveAutocompleteParser.Locations.test.js
:100644 100644 3599a48402 61abc2b714 M	desktop/core/src/desktop/js/parse/sql/hive/test/hiveAutocompleteParser.Select.test.js
:100644 100644 15bf91ccce 9457f5a061 M	desktop/core/src/desktop/js/parse/sql/hive/test/hiveAutocompleteParser.Set.test.js
:100644 100644 21de0665d9 bc7cb4eaa8 M	desktop/core/src/desktop/js/parse/sql/hive/test/hiveAutocompleteParser.Show.test.js
:100644 100644 0a5b900a99 f5f2ffec7e M	desktop/core/src/desktop/js/parse/sql/hive/test/hiveAutocompleteParser.Update.test.js
:100644 100644 715b6ffdfe 2b6883866e M	desktop/core/src/desktop/js/parse/sql/hive/test/hiveAutocompleteParser.Use.test.js
:100644 100644 447fc86ed5 875faa040d M	desktop/core/src/desktop/js/parse/sql/hive/test/hiveAutocompleteParser.test.js
:100644 100644 29b34bcb62 c1e9051d45 M	desktop/core/src/desktop/js/parse/sql/impala/test/impalaAutocompleteParser.Alter.test.js
:100644 100644 71ce0313a1 08d1f64eb5 M	desktop/core/src/desktop/js/parse/sql/impala/test/impalaAutocompleteParser.Analyze.test.js
:100644 100644 573e8f1205 58ed428a62 M	desktop/core/src/desktop/js/parse/sql/impala/test/impalaAutocompleteParser.Create.test.js
:100644 100644 7b8082ab8f d9f40ce44c M	desktop/core/src/desktop/js/parse/sql/impala/test/impalaAutocompleteParser.Describe.test.js
:100644 100644 a5f2a4da49 8487e1a8a7 M	desktop/core/src/desktop/js/parse/sql/impala/test/impalaAutocompleteParser.Drop.test.js
:100644 100644 7841d4f214 a7cc7a75fd M	desktop/core/src/desktop/js/parse/sql/impala/test/impalaAutocompleteParser.Error.test.js
:100644 100644 9f32a7f3ea 2e266f89e4 M	desktop/core/src/desktop/js/parse/sql/impala/test/impalaAutocompleteParser.Grant.test.js
:100644 100644 54e1c59d92 cd9c2d2728 M	desktop/core/src/desktop/js/parse/sql/impala/test/impalaAutocompleteParser.Insert.test.js
:100644 100644 54a6ff6876 e8b9cb5a8b M	desktop/core/src/desktop/js/parse/sql/impala/test/impalaAutocompleteParser.Load.test.js
:100644 100644 4f9fbeb4d1 517eb21c29 M	desktop/core/src/desktop/js/parse/sql/impala/test/impalaAutocompleteParser.Locations.test.js
:100644 100644 3cc1ae04a8 fab6fd3641 M	desktop/core/src/desktop/js/parse/sql/impala/test/impalaAutocompleteParser.Select.test.js
:100644 100644 d24ee8e325 72bee99b24 M	desktop/core/src/desktop/js/parse/sql/impala/test/impalaAutocompleteParser.Set.test.js
:100644 100644 49a0eac727 809eeb0987 M	desktop/core/src/desktop/js/parse/sql/impala/test/impalaAutocompleteParser.Show.test.js
:100644 100644 52ac3489db 8b8b89d06c M	desktop/core/src/desktop/js/parse/sql/impala/test/impalaAutocompleteParser.Update.test.js
:100644 100644 229d11a77e 871de1f152 M	desktop/core/src/desktop/js/parse/sql/impala/test/impalaAutocompleteParser.Use.test.js
:100644 100644 f32c453f78 d2d5593bf7 M	desktop/core/src/desktop/js/parse/sql/impala/test/impalaAutocompleteParser.test.js
:100644 100644 19d09b496c 0ea96a405f M	desktop/core/src/desktop/js/parse/sql/ksql/test/ksqlAutocompleteParser.Alter.test.js
:100644 100644 65c8ca5d84 2431a8c8b9 M	desktop/core/src/desktop/js/parse/sql/ksql/test/ksqlAutocompleteParser.Create.test.js
:100644 100644 32c15dcbd8 185337c70d M	desktop/core/src/desktop/js/parse/sql/ksql/test/ksqlAutocompleteParser.Drop.test.js
:100644 100644 ddb83d2fd4 a6f5a35a3a M	desktop/core/src/desktop/js/parse/sql/ksql/test/ksqlAutocompleteParser.Error.test.js
:100644 100644 fab37925f6 3b96bcc654 M	desktop/core/src/desktop/js/parse/sql/ksql/test/ksqlAutocompleteParser.Insert.test.js
:100644 100644 38f56f29f3 a0da6d4653 M	desktop/core/src/desktop/js/parse/sql/ksql/test/ksqlAutocompleteParser.Locations.test.js
:100644 100644 3ef1b7764c 1136c94449 M	desktop/core/src/desktop/js/parse/sql/ksql/test/ksqlAutocompleteParser.Select.test.js
:100644 100644 8879d095cc 45088eb831 M	desktop/core/src/desktop/js/parse/sql/ksql/test/ksqlAutocompleteParser.Set.test.js
:100644 100644 d0abd4f177 a1678d8678 M	desktop/core/src/desktop/js/parse/sql/ksql/test/ksqlAutocompleteParser.Update.test.js
:100644 100644 b3ad9d8291 b50cd352fe M	desktop/core/src/desktop/js/parse/sql/ksql/test/ksqlAutocompleteParser.Use.test.js
:100644 100644 7925839aec 00378b1f80 M	desktop/core/src/desktop/js/parse/sql/ksql/test/ksqlAutocompleteParser.test.js
:100644 100644 0d207c7511 00c7ccbe7b M	desktop/core/src/desktop/js/parse/sql/phoenix/test/phoenixAutocompleteParser.Alter.test.js
:100644 100644 8d8841c17f bec6253894 M	desktop/core/src/desktop/js/parse/sql/phoenix/test/phoenixAutocompleteParser.Create.test.js
:100644 100644 d03fd5e4e5 78fe87968d M	desktop/core/src/desktop/js/parse/sql/phoenix/test/phoenixAutocompleteParser.Drop.test.js
:100644 100644 d855d3fcac fa721e33ec M	desktop/core/src/desktop/js/parse/sql/phoenix/test/phoenixAutocompleteParser.Error.test.js
:100644 100644 fe4bc87716 5469a7d025 M	desktop/core/src/desktop/js/parse/sql/phoenix/test/phoenixAutocompleteParser.Insert.test.js
:100644 100644 544f2da76b 280dc250f9 M	desktop/core/src/desktop/js/parse/sql/phoenix/test/phoenixAutocompleteParser.Locations.test.js
:100644 100644 382018bddb 111fbd8649 M	desktop/core/src/desktop/js/parse/sql/phoenix/test/phoenixAutocompleteParser.Select.test.js
:100644 100644 9b2d49ef46 e03a699b6d M	desktop/core/src/desktop/js/parse/sql/phoenix/test/phoenixAutocompleteParser.Set.test.js
:100644 100644 21e04662bd 77746a87d9 M	desktop/core/src/desktop/js/parse/sql/phoenix/test/phoenixAutocompleteParser.Update.test.js
:100644 100644 0898c4fea5 90485d7c05 M	desktop/core/src/desktop/js/parse/sql/phoenix/test/phoenixAutocompleteParser.Use.test.js
:100644 100644 6e065afaa4 7a8a9fc485 M	desktop/core/src/desktop/js/parse/sql/phoenix/test/phoenixAutocompleteParser.test.js
:100644 100644 34de8f7bb5 da54c76b21 M	desktop/core/src/desktop/js/parse/sql/presto/test/prestoAutocompleteParser.Alter.test.js
:100644 100644 d2d1bb6083 76bf09e7ef M	desktop/core/src/desktop/js/parse/sql/presto/test/prestoAutocompleteParser.Create.test.js
:100644 100644 ae2a362bd9 98cf9d93da M	desktop/core/src/desktop/js/parse/sql/presto/test/prestoAutocompleteParser.Drop.test.js
:100644 100644 f158eee752 ca9abb7190 M	desktop/core/src/desktop/js/parse/sql/presto/test/prestoAutocompleteParser.Error.test.js
:100644 100644 93e9ef9cfc 0a4fbcd15d M	desktop/core/src/desktop/js/parse/sql/presto/test/prestoAutocompleteParser.Insert.test.js
:100644 100644 c84f63e9eb cb8fe6d82f M	desktop/core/src/desktop/js/parse/sql/presto/test/prestoAutocompleteParser.Locations.test.js
:100644 100644 e8270a78f7 65e057b43a M	desktop/core/src/desktop/js/parse/sql/presto/test/prestoAutocompleteParser.Select.test.js
:100644 100644 102036422f c0b59b0963 M	desktop/core/src/desktop/js/parse/sql/presto/test/prestoAutocompleteParser.Set.test.js
:100644 100644 aa125b93ee 663438a3ca M	desktop/core/src/desktop/js/parse/sql/presto/test/prestoAutocompleteParser.Update.test.js
:100644 100644 1712a2c6cd 0d7dd1c580 M	desktop/core/src/desktop/js/parse/sql/presto/test/prestoAutocompleteParser.Use.test.js
:100644 100644 22f11f7613 20c1bf9a92 M	desktop/core/src/desktop/js/parse/sql/presto/test/prestoAutocompleteParser.test.js
:100644 100644 4ffb569bc6 bb94b74d7a M	desktop/core/src/desktop/js/sql/autocompleteResults.test.js
:100644 100644 29dcbd4a6c 3249fdc8d1 M	desktop/core/src/desktop/js/utils/hdfsAutocompleter.js
:100644 100644 6b43c6f797 01315e6fbf M	desktop/core/src/desktop/js/utils/hdfsAutocompleter.test.js
Manual on Chrome
romain
  1. Ship It!
  2. 
      
johan
Review request changed

Status: Closed (submitted)

Loading...