cannot appear as a child of
,
- 1,
+ 2,
);
expectSelectValue(e, 'bar');
},
@@ -228,26 +227,23 @@ describe('ReactDOMServerIntegrationSelect', () => {
,
);
const option = e.options[0];
- expect(option.childNodes.length).toBe(1);
- expect(option.childNodes[0].nodeType).toBe(3);
- expect(option.childNodes[0].nodeValue).toBe('A B');
+ expect(option.textContent).toBe('A B');
+ expect(option.value).toBe('bar');
+ expect(option.selected).toBe(true);
});
itRenders(
- 'a select option with flattened children and a warning',
+ 'a select option with flattened children no value',
async render => {
const e = await render(
-