@@ -92,10 +92,9 @@ test('should work edit mode toggle', () => {
92
92
// double click todo text label, then enable todo text edit code
93
93
fireEvent . doubleClick ( getByTestId ( 'todo-body-text' ) )
94
94
expect ( getByTestId ( 'todo-item' ) ) . toHaveClass ( 'editing' )
95
- // @TODO in jsdom, dynamic .editing classCSSSelector doesn't apply. So tipically show/hide UI test are difficult.
95
+ // @TODO in jsdom, dynamic .editing css class doesn't apply. So tipically show/hide UI test are difficult.
96
96
// @ref https://spectrum.chat/testing-library/general/testing-an-accordion~b004a9b1-b104-4eb1-a73b-43c60b1a3630?m=MTU1NDQ4NDIzMTQ5Ng==
97
97
//expect(getByTestId('todo-edit-input')).toBeVisible()
98
-
99
98
fireEvent . change ( getByTestId ( 'todo-edit-input' ) , {
100
99
target : { value : 'cut tomato plus' }
101
100
} )
@@ -108,7 +107,7 @@ test('should work edit mode toggle', () => {
108
107
expect ( getByTestId ( 'todo-body-text' ) ) . toHaveTextContent ( 'cut tomato plus' )
109
108
// @TODO why fireEvent.keyPress() didn't work?
110
109
//expect(container.querySelector('[class*="editing"]')).toBe(null)
111
- // @TODO in jsdom, dynamic .editing classCSSSelector doesn't apply. So tipically show/hide UI test are difficult.
110
+ // @TODO in jsdom, dynamic .editing css class doesn't apply. So tipically show/hide UI test are difficult.
112
111
// @ref https://spectrum.chat/testing-library/general/testing-an-accordion~b004a9b1-b104-4eb1-a73b-43c60b1a3630?m=MTU1NDQ4NDIzMTQ5Ng==
113
112
//expect(getByTestId('todo-edit-input')).not.toBeVisible()
114
113
} )
0 commit comments