Andrew Watkins
4908c2cd0b
Move TickscriptSave button to own file
2018-04-09 11:59:00 -07:00
Andrew Watkins
153a8915ca
Disables saveing tickscript if no databases are selected
2018-04-06 17:56:02 -07:00
ebb-tide
4ccde5e55d
Implement suggestions from PR review
2018-04-03 12:00:53 -07:00
ebb-tide
a3218e1027
Add some tests
2018-04-02 17:16:45 -07:00
Jared Scheib
385c892f6a
Make tslint happy for tests
2018-03-22 15:51:54 -07:00
Jared Scheib
67e3c92077
Test that KapacitorRules renders corresponding rule/task rows with same enabled status
2018-03-22 13:09:57 -07:00
Jared Scheib
c9525b22b0
Refactor KapacitorRules test to share common helpers & schema
2018-03-22 13:01:49 -07:00
Jared Scheib
5e40cf4e6d
Test that 'change' event on TaskRow calls onChangeRuleStatus on that rule
2018-03-21 16:48:57 -07:00
Jared Scheib
6c76e2b4f4
Refactor TasksTable test to per-test shallow
...
Make dedicated describe block props
2018-03-21 16:43:19 -07:00
Jared Scheib
e3be0cd95f
Test that 'change' event on RuleRow calls onChangeRuleStatus on that rule
2018-03-21 16:42:03 -07:00
Jared Scheib
a95b8543c3
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
Jared Scheib
90e0aa1a01
Get rows & props for testing of KapacitorRulesTable & TasksTable
2018-03-21 13:14:52 -07:00
Jared Scheib
a411e7d2ba
Test that KapacitorRules renders one corresponding task row for each rule row
2018-03-21 12:29:26 -07:00
Jared Scheib
68bc9df652
WIP Test user interaction toggle of checkboxes
2018-03-20 20:47:49 -07:00
Jared Scheib
06adacdcee
Refactor KapacitorRules.test to use explicit shallow setup
2018-03-20 20:37:05 -07:00
Jared Scheib
25409b232e
Prettier
2018-03-20 18:41:45 -07:00
Jared Scheib
2b026d8660
Find by component rather than component name in enzyme tests
2018-03-19 16:52:06 -07:00
Jared Scheib
4ed4be638d
Add failing test for KapacitorRules renders both tables rows with unique label FORs
2018-03-16 16:04:04 -07:00
Jared Scheib
eeda415eb7
Add failing test for KapacitorRules renders both tables with unique checkbox IDs
2018-03-16 16:03:20 -07:00
Jared Scheib
54266c094a
Revert "Test KapacitorRulesTable tr keys to be UUIDv4"
...
This reverts commit bd6674859c
.
2018-03-16 14:18:57 -07:00
Jared Scheib
bd6674859c
Test KapacitorRulesTable tr keys to be UUIDv4
2018-03-14 18:44:51 -07:00
Jared Scheib
a4cf6276f5
Remove unused jest in Kapacitor tests
2018-03-14 17:18:29 -07:00
Jared Scheib
81e2551053
Add initial enzyme test for component KapacitorRulesTable render
2018-03-14 17:17:16 -07:00
Jared Scheib
13da9bec6f
Add initial enzyme test for component TasksTable render
2018-03-14 17:16:11 -07:00
Jared Scheib
7f493204db
Clean up
2018-03-14 16:53:58 -07:00
Jared Scheib
90ac8ad8db
Remove unused jest.mock
2018-03-14 16:51:33 -07:00
Jared Scheib
ab360fa1f8
Remove unused override var
2018-03-14 16:50:24 -07:00
Jared Scheib
beaa186586
Remove unused imports
2018-03-14 16:48:15 -07:00
Jared Scheib
568ca6b5ed
Split KapacitorRules render test into two tests
2018-03-14 16:46:40 -07:00
Jared Scheib
d9002cf557
Test KapacitorRules to render KapacitorRulesTable & TasksTable
2018-03-14 16:32:23 -07:00
Jared Scheib
e0111010c7
Test KapacitorRules to render two tables
2018-03-14 16:17:00 -07:00
Jared Scheib
afa0acb63e
Add initial passing enzyme test for KapacitorRules render
2018-03-14 16:06:34 -07:00