import TestCase from '../../TestCase'; import Iframe from '../../Iframe'; const React = window.React; export default class ReorderedInputsTestCase extends React.Component { state = {count: 0}; componentDidMount() { this.interval = setInterval(() => { this.setState({count: this.state.count + 1}); }, 2000); } componentWillUnmount() { clearInterval(this.interval); } renderInputs() { const inputs = [ , , ]; if (this.state.count % 2 === 0) { inputs.reverse(); } return inputs; } render() { return (
  • The two inputs below swap positions every two seconds
  • Select the text in either of them
  • Wait for the swap to occur
  • The selection you made should be maintained
    ); } }