Commit Graph

344 Commits (4eab5e5ed2463d51deef40df054080d08a90e09d)

Author SHA1 Message Date
Iris Scholten 51224fa7e7 move tooltip for time format link to constants and update time format tests 2018-03-23 17:28:55 -07:00
Iris Scholten d3f34aeb63 update GraphOptionsSortBy.test 2018-03-23 17:13:21 -07:00
Iris Scholten 42e27aff1a update GraphOptionsTimeFormat.test 2018-03-23 16:10:33 -07:00
Jared Scheib 697d077e94
Merge pull request #3006 from influxdata/bugfix/task_enabled_correct_check
Fix Kapacitor Rules task enabled checkboxes to only toggle exactly as clicked
2018-03-23 10:48:41 -07:00
Alex P 872aebd0a1 Implement FancyScrollbar in Customize Fields list 2018-03-22 18:54:16 -07:00
Jared Scheib 504e6f938e Make tslint happy for tests 2018-03-22 15:51:54 -07:00
Jared Scheib 0fd2083601 Merge branch 'master' into bugfix/task_enabled_correct_check 2018-03-22 15:12:22 -07:00
Jared Scheib 2419890f7d Merge branch 'master' into bugfix/task_enabled_correct_check 2018-03-22 14:08:45 -07:00
Iris Scholten 180d3684e2 fix tslint alphabetizing errors 2018-03-22 13:20:00 -07:00
Jared Scheib a741a3f04c Test that KapacitorRules renders corresponding rule/task rows with same enabled status 2018-03-22 13:09:57 -07:00
Jared Scheib 7f4779b9ba Refactor KapacitorRules test to share common helpers & schema 2018-03-22 13:01:49 -07:00
Iris Scholten d428a19395 remove graph options test wrapping from tableoptions test 2018-03-22 12:47:41 -07:00
Iris Scholten be8ff5903c Merge branch 'master' into feature/table-hide-series 2018-03-21 18:31:39 -07:00
Andrew Watkins 317a22f9a9 Prettier fixes 2018-03-21 16:59:15 -07:00
Jared Scheib 5e7cbede07 Test that 'change' event on TaskRow calls onChangeRuleStatus on that rule 2018-03-21 16:48:57 -07:00
Jared Scheib 04bfbbfa09 Refactor TasksTable test to per-test shallow
Make dedicated describe block props
2018-03-21 16:43:19 -07:00
Jared Scheib dd46e6e43d Test that 'change' event on RuleRow calls onChangeRuleStatus on that rule 2018-03-21 16:42:03 -07:00
Jared Scheib 82910d0a19 Remove improper user interaction work-in-progress
Enzyme is not intended to test toggling a checkbox.
See https://github.com/airbnb/enzyme/issues/952.

Test initial render RuleRow.
Make query an optional property in AlertRule definition.
2018-03-21 16:14:20 -07:00
Andrew Watkins 16dfa23477 Add tslint to test runner / watcher 2018-03-21 16:12:42 -07:00
Andrew Watkins 9c1799c50d Fix linting errors 2018-03-21 16:12:42 -07:00
Jared Scheib 366cf0c7c4 Get rows & props for testing of KapacitorRulesTable & TasksTable 2018-03-21 13:14:52 -07:00
Jared Scheib 8e0ad0432b Test that KapacitorRules renders one corresponding task row for each rule row 2018-03-21 12:29:26 -07:00
Jared Scheib 317bfd5bfe WIP Test user interaction toggle of checkboxes 2018-03-20 20:47:49 -07:00
Jared Scheib b9c7f16cc4 Refactor KapacitorRules.test to use explicit shallow setup 2018-03-20 20:37:05 -07:00
Jared Scheib 2a77a3b776 Prettier 2018-03-20 18:41:45 -07:00
Jared Scheib 5e4a60f96d Add kapacitor rule test resource that has no query 2018-03-20 18:40:44 -07:00
Iris Scholten eca5394edc merge master and fix minor bugs
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
2018-03-20 18:30:08 -07:00
Iris Scholten beff578eb2 update tableoptions.test with visible 2018-03-20 17:24:34 -07:00
Iris Scholten bcc87a682a add renamed files from columnNames to fieldName changes 2018-03-20 17:24:34 -07:00
Iris Scholten e049b53cd9 update columnNames to fieldNames and columns to fields in front end for tablegraphs 2018-03-20 17:24:34 -07:00
Iris Scholten 2614da86e5 update GraphOptionsCustomizableColumn.test with visible prop and toggling it 2018-03-20 17:08:56 -07:00
Iris Scholten e7f89b6322 connect tableOptions field visibility toggle to tableGraph 2018-03-20 17:08:56 -07:00
Alex P 1c164179d3 update FFC test
Co-authored-by: Iris Scholten <iris@influxdata.com>
2018-03-20 16:28:23 -07:00
Iris Scholten bb57e6cca6 update and add tests for fixfirstcolumn logic 2018-03-19 18:20:17 -07:00
Jared Scheib 5fa6c7cd6a Remove unused UUID string validator & test 2018-03-19 17:04:43 -07:00
Jared Scheib 2358cce513 Find by component rather than component name in enzyme tests 2018-03-19 16:52:06 -07:00
Brandon Farmer 4618cb9559 Fixes typescript compile type error 2018-03-18 19:31:35 -07:00
Brandon Farmer 9d4162c60b Add test from display value of selected 2018-03-18 18:17:33 -07:00
Jared Scheib 6feb258c64 Merge branch 'master' into bugfix/task_enabled_correct_check 2018-03-16 21:05:01 -07:00
Brandon Farmer 1c08717148 Sort table graphs in cell editor overlay 2018-03-16 17:46:45 -07:00
Jared Scheib a1a40ddc01 Add failing test for KapacitorRules renders both tables rows with unique label FORs 2018-03-16 16:04:04 -07:00
Jared Scheib 4080c31e93 Add failing test for KapacitorRules renders both tables with unique checkbox IDs 2018-03-16 16:03:20 -07:00
Jared Scheib 68a0716bfc Add more kapacitor rules test data 2018-03-16 14:37:03 -07:00
Jared Scheib 60897b8bc2 Revert "Test KapacitorRulesTable tr keys to be UUIDv4"
This reverts commit 841ae1e60c.
2018-03-16 14:18:57 -07:00
Alex Paxton 0587c94345
Merge pull request #2993 from influxdata/feature/table-thresholds
Add Color Thresholds to Table Graphs
2018-03-16 12:44:20 -07:00
Andrew Watkins 458475243e
Merge pull request #3001 from influxdata/chore/chronograf-admin-ts
Conversion of AllUsersPage to TypeScript add initial test
2018-03-16 10:52:02 -07:00
Alex P 91950f2ef7 Merge branch 'master' into feature/table-thresholds 2018-03-16 10:51:14 -07:00
Andrew Watkins 37f3043dee Introduce AllUsersPage test 2018-03-15 16:44:18 -07:00
Iris Scholten a0f53f5b23
Merge pull request #2996 from influxdata/feature/table-graph-series-renaming
Table Graph Series/Column renaming
2018-03-15 16:27:47 -07:00
Alex P 111f2c5fc9 Add new prop to test 2018-03-14 22:26:23 -07:00
Alex P 0ad9d15bc3 rename singleStatColors to thresholdsListColors 2018-03-14 22:08:26 -07:00
Alex P 8078362856 Rename single stat constants to match thresholds naming scheme 2018-03-14 21:20:22 -07:00
Alex P 7a583b1567 rename singleStatType to thresholdsListType
going for a more generic and future proof naming scheme
2018-03-14 21:13:20 -07:00
Alex P 72b9279336 Use ThresholdsColorToggle in TableOptions 2018-03-14 21:02:13 -07:00
Alex P 47a66d2ae0 Update table options test 2018-03-14 20:57:55 -07:00
Alex P 9201bb1de4 Merge branch 'master' into feature/table-thresholds 2018-03-14 20:38:56 -07:00
Jared Scheib 841ae1e60c Test KapacitorRulesTable tr keys to be UUIDv4 2018-03-14 18:44:51 -07:00
Jared Scheib fd58c0cb5a Add string validator & tests for UUIDv4 2018-03-14 18:31:09 -07:00
Iris Scholten a7e820f038 fix typo in CustomizeColumns test 2018-03-14 18:21:53 -07:00
Iris Scholten 9d9525e821 create component test for GraphOptionsCustomizeColumns 2018-03-14 18:17:32 -07:00
Iris Scholten cc7422ad93 update columnNames in the redux store and connect them to TableGraphs 2018-03-14 17:46:42 -07:00
Andrew Watkins dc8902c62a Add insecureSkipVerify to default kapacitor 2018-03-14 17:23:34 -07:00
Andrew Watkins 608c81b3f5 Add test for updateKapacitor
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
2018-03-14 17:23:34 -07:00
Brandon Farmer 6931f5ece6 WIP 2018-03-14 17:23:34 -07:00
Brandon Farmer 42c03de005 Send insecure verify skip on kapacitor create
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
2018-03-14 17:23:34 -07:00
Brandon Farmer 2d08ed0f94 Allow users to use insecure skip verify on kapacitor
Co-authored-by: Brandon Farmer<bthesorceror@gmail.com>
Co-authored-by: Andrew Watkins<andrew.watkinz@gmail.com>
2018-03-14 17:23:34 -07:00
Jared Scheib b71faa7a37 Remove unused jest in Kapacitor tests 2018-03-14 17:18:29 -07:00
Jared Scheib 2d13bc23c3 Add initial enzyme test for component KapacitorRulesTable render 2018-03-14 17:17:16 -07:00
Jared Scheib fc4b58be89 Add initial enzyme test for component TasksTable render 2018-03-14 17:16:11 -07:00
Jared Scheib 7b729697ad Clean up 2018-03-14 16:53:58 -07:00
Jared Scheib 9f1a7963f4 Remove unused jest.mock 2018-03-14 16:51:33 -07:00
Jared Scheib d42852f8b9 Remove unused override var 2018-03-14 16:50:24 -07:00
Jared Scheib 311a196afe Remove unused imports 2018-03-14 16:48:15 -07:00
Jared Scheib 4986159c87 Split KapacitorRules render test into two tests 2018-03-14 16:46:40 -07:00
Jared Scheib ebd33f0a5d Test KapacitorRules to render KapacitorRulesTable & TasksTable 2018-03-14 16:32:23 -07:00
Jared Scheib 7fccddfcb4 Test KapacitorRules to render two tables 2018-03-14 16:17:00 -07:00
Jared Scheib 6f6e5136d5 Add initial passing enzyme test for KapacitorRules render 2018-03-14 16:06:34 -07:00
Iris Scholten 641fc3ce65 Merge branch 'master' into feature/table-graph-series-renaming 2018-03-14 16:00:11 -07:00
Alex Paxton 3613cc52a7
Merge pull request #2910 from influxdata/polish-notifications
Redesign & Refactor Notifications
2018-03-14 15:37:38 -07:00
Iris Scholten 260599dbf8 WIP get queries for columnNames in table optoins 2018-03-14 15:28:53 -07:00
Andrew Watkins 7f04f5c5e6 Change publishNotification to notify 2018-03-14 15:26:09 -07:00
Brandon Farmer 3d472485c3 Make query configs available in table options on visualization tab 2018-03-14 15:14:00 -07:00
Andrew Watkins 466a6e47c6 Cleanup errors 2018-03-14 14:49:01 -07:00
Andrew Watkins cac7180ce3 Cleanup 2018-03-14 12:33:23 -07:00
Alex P 19d2019f73 WIP replace addFlashMessage with publishNotification 2018-03-14 10:31:03 -07:00
Alex P 48b974cac8 Move notifications test to proper directory and rename 2018-03-14 10:31:03 -07:00
Jared Scheib d9290f36a8 Add dummy data for KapacitorRules component test
Signed-off-by: Deniz Kusefoglu <denizk@gmail.com>
2018-03-13 18:34:34 -07:00
Iris Scholten ae042b46f8 fix typo in import 2018-03-13 17:22:50 -07:00
Iris Scholten 57e1d473ec respond to reviews and add extra test 2018-03-13 16:58:25 -07:00
Iris Scholten 5b62395e65 update GraphOptionsCustomizableColumn to typescript and create component test for it 2018-03-13 16:02:07 -07:00
Iris Scholten 1986186f71 Merge branch 'master' into feature/graph-table-time-format 2018-03-13 11:11:25 -07:00
Andrew Watkins fae3766952 Add test for resetting KapacitorForm 2018-03-13 10:13:04 -07:00
Andrew Watkins 376556201b Cleanup 2018-03-13 10:13:04 -07:00
Andrew Watkins 3f69abb9af Add more tests 2018-03-13 10:13:04 -07:00
Andrew Watkins e46690ce09 Make breath 2018-03-13 10:11:11 -07:00
Andrew Watkins 0a36ecb15e WIP refactor of KapacitorForm 2018-03-13 10:11:11 -07:00
Andrew Watkins 68da38c231 Fix ts warnings 2018-03-13 10:11:11 -07:00
Andrew Watkins e5ccbafd90 WIP introduce mocking api requests and testing resultant behavior 2018-03-13 10:11:11 -07:00
Andrew Watkins 531c93d117 Introduce mock api responses 2018-03-13 10:11:11 -07:00
Andrew Watkins 662a6774e3 WIP introduce componentDidMount test 2018-03-13 10:11:11 -07:00
Andrew Watkins f528e74a5e WIP Introduce KapacitorPage test 2018-03-13 10:11:11 -07:00
Iris Scholten b55167e4e8 respond to review 2018-03-12 18:46:21 -07:00
Alex P a63ce9f058 Rename "gaugeColors" constant to "thresholds" and move to shared 2018-03-12 17:17:26 -07:00
Iris Scholten cf2c508c96 update server_test, internal_test, and cells_test with tableOptions 2018-03-12 17:12:20 -07:00
Iris Scholten 9420e206bc update cell editor overlay test with table options 2018-03-12 15:31:46 -07:00
Iris Scholten 4c277b099c update TableOptions component test to use tableOptions instead of options 2018-03-12 15:07:19 -07:00
Iris Scholten 302efab3b9 change options to table options in backend, front end and redux 2018-03-12 15:04:17 -07:00
Iris Scholten 7dac48daa4 create component test for TableOptions 2018-03-12 10:11:05 -07:00
Brandon Farmer 3781ffabf9 Add tests for GraphOptionsTimeFormat component
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
2018-03-09 17:15:03 -08:00
Iris Scholten cfe6ba5d0c create initial tests for ProvidersTableRowNew around bug fix 2018-03-07 16:27:56 -08:00
Iris Scholten cca46ad3f9 change InputclicktoEdit tests to look for html components instead of attributes 2018-03-07 15:13:38 -08:00
Iris Scholten 2ca3ca45a6 create component tests for InputClickToEdit 2018-03-07 14:39:41 -08:00
Iris Scholten 953ddcdfe4 fix error in ConfirmButtons.test 2018-03-07 11:09:37 -08:00
Iris Scholten 90c56f487a create unit tests for ConfirmButtons and refactor confirmButtons 2018-03-06 16:48:08 -08:00
Iris Scholten 08f5c1072f change ConfirmButtons to typescript and refactor; create initial ConfirmButtons tests 2018-03-06 12:22:58 -08:00
Andrew Watkins d2cddc4816 Move old tests over to new jest format 2018-03-05 08:46:23 -08:00
Andrew Watkins ffc976ec69 Add user interaction tests to MeasurementList 2018-03-05 08:46:23 -08:00
Andrew Watkins 2c6d127a9c Add test for TagList.tsx 2018-03-05 08:46:23 -08:00
Andrew Watkins 52fcc8e95f Refactor MeasurementList 2018-03-05 08:46:23 -08:00
Andrew Watkins 5f26de0d96 Convert MeasurementList to TypeScript and add tests 2018-03-05 08:46:23 -08:00
Andrew Watkins fc12deba4a Update DatabaseList test 2018-03-05 08:46:23 -08:00
Andrew Watkins 74865597d5 WIP Add more tests for DatabaseList 2018-03-05 08:46:23 -08:00
Andrew Watkins 543fae9f30 Add test for DatabaseListItem 2018-03-05 08:46:23 -08:00
Andrew Watkins 11c505eb65 Add first successful TypeScript test 2018-03-05 08:46:23 -08:00
Andrew Watkins 6970717f32 WIP first TypeScript test 2018-03-05 08:46:23 -08:00
Andrew Watkins c029c55813 Add more rendering tests 2018-03-05 08:46:23 -08:00
Andrew Watkins 65fbc38ed0 Update test copy 2018-03-05 08:46:23 -08:00
Andrew Watkins c6fc8ef312 Add test for handleFilterKeyPress 2018-03-05 08:46:23 -08:00
Andrew Watkins d35f695815 Introduce handleFilterKeyPress test 2018-03-05 08:46:23 -08:00
Andrew Watkins 3b558fc11b Refine <DropdownInput/> rendering test 2018-03-05 08:46:23 -08:00
Andrew Watkins e84d578229 Have test use mount so they can access refs 2018-03-01 11:42:24 -07:00
Andrew Watkins 7287781135 Cleanup 2018-03-01 11:18:23 -07:00
Andrew Watkins 760c5d3dfc Add test for handleSelection 2018-03-01 11:18:23 -07:00
Andrew Watkins 74b78dd20b Add test for handleClick instance method 2018-03-01 11:18:23 -07:00
Andrew Watkins 2128d5f2e9 Introduce instance method tests 2018-03-01 11:18:23 -07:00
Andrew Watkins 6b85a0b541 Add DropdownInput test 2018-03-01 11:18:23 -07:00
Andrew Watkins 7e90245dba Refactor Dropdown component and specs 2018-03-01 11:18:23 -07:00
Andrew Watkins 1a809b4c81 Add introductory Dropdown component test 2018-03-01 11:17:35 -07:00
Andrew Watkins d3b810a08e Add linter to tests 2018-03-01 11:16:29 -07:00
Andrew Watkins f0726f6d8e Fix prop-types and other warnings 2018-03-01 11:16:29 -07:00
Andrew Watkins 84dac1d6fd Fix moment warnings 2018-03-01 11:16:03 -07:00
Andrew Watkins d586967615 Will pass all tests using jest 2018-03-01 11:16:02 -07:00
Andrew Watkins dc3cf7faf8 WIP Enable jest to resolve all modules 2018-03-01 11:16:02 -07:00
Andrew Watkins 8b304bb312 Rename spec dir to test 2018-03-01 11:16:02 -07:00