123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
- exports[`RadioGroup render() can select a different item 1`] = `
- <div
- name="radio"
- role="radiogroup"
- >
- <RadioLineItem
- aria-checked={false}
- index={0}
- key="0"
- onClick={[Function]}
- role="radio"
- tabIndex={-1}
- >
- <RadioLineButton />
- <RadioLineText>
- Choice One
- </RadioLineText>
- </RadioLineItem>
- <RadioLineItem
- aria-checked={false}
- index={1}
- key="1"
- onClick={[Function]}
- role="radio"
- tabIndex={-1}
- >
- <RadioLineButton />
- <RadioLineText>
- Choice Two
- </RadioLineText>
- </RadioLineItem>
- <RadioLineItem
- aria-checked={true}
- index={2}
- key="2"
- onClick={[Function]}
- role="radio"
- tabIndex={0}
- >
- <RadioLineButton>
- <RadioLineButtonFill
- animate={true}
- />
- </RadioLineButton>
- <RadioLineText>
- Choice Three
- </RadioLineText>
- </RadioLineItem>
- </div>
- `;
- exports[`RadioGroup render() renders 1`] = `
- <div
- name="radio"
- role="radiogroup"
- >
- <RadioLineItem
- aria-checked={true}
- index={0}
- key="0"
- onClick={[Function]}
- role="radio"
- tabIndex={0}
- >
- <RadioLineButton>
- <RadioLineButtonFill
- animate={true}
- />
- </RadioLineButton>
- <RadioLineText>
- Choice One
- </RadioLineText>
- </RadioLineItem>
- <RadioLineItem
- aria-checked={false}
- index={1}
- key="1"
- onClick={[Function]}
- role="radio"
- tabIndex={-1}
- >
- <RadioLineButton />
- <RadioLineText>
- Choice Two
- </RadioLineText>
- </RadioLineItem>
- <RadioLineItem
- aria-checked={false}
- index={2}
- key="2"
- onClick={[Function]}
- role="radio"
- tabIndex={-1}
- >
- <RadioLineButton />
- <RadioLineText>
- Choice Three
- </RadioLineText>
- </RadioLineItem>
- </div>
- `;
- exports[`RadioGroup render() renders disabled 1`] = `
- <RadioGroup
- choices={
- Array [
- Array [
- "choice_one",
- "Choice One",
- ],
- ]
- }
- disabled={true}
- name="radio"
- value="choice_one"
- >
- <div
- name="radio"
- role="radiogroup"
- >
- <RadioLineItem
- aria-checked={true}
- disabled={true}
- index={0}
- key="0"
- onClick={[Function]}
- role="radio"
- tabIndex={0}
- >
- <Component
- aria-checked={true}
- className="css-1h3kzqs-RadioLineItem eeb3g7x1"
- disabled={true}
- index={0}
- onClick={[Function]}
- role="radio"
- tabIndex={0}
- >
- <div
- aria-checked={true}
- className="css-1h3kzqs-RadioLineItem eeb3g7x1"
- index={0}
- onClick={[Function]}
- role="radio"
- tabIndex={0}
- >
- <RadioLineButton>
- <div
- className="css-18yerb2-RadioLineButton eeb3g7x0"
- >
- <RadioLineButtonFill
- animate={true}
- disabled={true}
- >
- <Component
- animate={true}
- className="css-14bkqla-RadioLineButtonFill eeb3g7x2"
- disabled={true}
- >
- <div
- className="css-14bkqla-RadioLineButtonFill eeb3g7x2"
- />
- </Component>
- </RadioLineButtonFill>
- </div>
- </RadioLineButton>
- <RadioLineText
- disabled={true}
- >
- <Component
- className="css-fr9tlv-RadioLineText eeb3g7x3"
- disabled={true}
- >
- <div
- className="css-fr9tlv-RadioLineText eeb3g7x3"
- >
- Choice One
- </div>
- </Component>
- </RadioLineText>
- </div>
- </Component>
- </RadioLineItem>
- </div>
- </RadioGroup>
- `;
|