<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto">Is there any way to configure TablePagination shows all rows on a single page?<br>
I mean something like this:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;TablePagination
  rowsPerPageOptions: [5, 10, 15, 'All'] // or [5, 10, 15, 0]
/&gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-v">TablePagination</span>
  <span class="pl-s1">rowsPerPageOptions</span>: <span class="pl-kos">[</span><span class="pl-c1">5</span><span class="pl-kos">,</span> <span class="pl-c1">10</span><span class="pl-kos">,</span> <span class="pl-c1">15</span><span class="pl-kos">,</span> <span class="pl-s">'All'</span><span class="pl-kos">]</span> <span class="pl-c">// or [5, 10, 15, 0]</span>
<span class="pl-c1">/</span><span class="pl-c1">&gt;</span></pre></div>
<p dir="auto">I've already tried to use '0' as a page size, but the 'next' and 'prev' buttons work incorrectly in this case.</p>
<p dir="auto">When testing a component that includes a , I can successfully simulate a click and verify that the component's state is set to open. However, when I then try to find the defined action buttons, I am unable to do so.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// Code

class CustomDialog extends Component {
  ....
    this.state = {
      open: false,
    };

  handleOpen = () =&gt; {
    this.setState({ open: true });
  };

  handleDelete =() =&gt; {
    ....
  };

  handleClose = () =&gt; {
    ....
  };

  render() {
    const actions = [
      &lt;FlatButton label=&quot;Cancel&quot; onClick={this.handleClose} /&gt;,
      &lt;FlatButton label=&quot;Delete&quot; onClick={this.handleDelete} /&gt;,
    ];

    return (
      &lt;span&gt;
        &lt;FlatButton label=&quot;Delete&quot; onClick={this.handleOpen} /&gt;
        &lt;Dialog
          actions={actions}
          open={this.state.open}
          onRequestClose={this.handleClose}
        &gt;
          Delete? This operation cannot be reversed.
        &lt;/Dialog&gt;
      &lt;/span&gt;
    );
  }
}

// Tests

      expect(mountedComponent).toHaveState('open', false); &lt;--PASS

      mountedComponent
        .find('FlatButton')
        .simulate('click');

      expect(mountedComponent).toHaveState('open', true); &lt;--PASS

        expect(mountedComponent
          .find('FlatButton')
          .find('[label=&quot;Cancel&quot;]')).toBePresent(); &lt;&lt;&lt; FAIL
"><pre class="notranslate"><code class="notranslate">// Code

class CustomDialog extends Component {
  ....
    this.state = {
      open: false,
    };

  handleOpen = () =&gt; {
    this.setState({ open: true });
  };

  handleDelete =() =&gt; {
    ....
  };

  handleClose = () =&gt; {
    ....
  };

  render() {
    const actions = [
      &lt;FlatButton label="Cancel" onClick={this.handleClose} /&gt;,
      &lt;FlatButton label="Delete" onClick={this.handleDelete} /&gt;,
    ];

    return (
      &lt;span&gt;
        &lt;FlatButton label="Delete" onClick={this.handleOpen} /&gt;
        &lt;Dialog
          actions={actions}
          open={this.state.open}
          onRequestClose={this.handleClose}
        &gt;
          Delete? This operation cannot be reversed.
        &lt;/Dialog&gt;
      &lt;/span&gt;
    );
  }
}

// Tests

      expect(mountedComponent).toHaveState('open', false); &lt;--PASS

      mountedComponent
        .find('FlatButton')
        .simulate('click');

      expect(mountedComponent).toHaveState('open', true); &lt;--PASS

        expect(mountedComponent
          .find('FlatButton')
          .find('[label="Cancel"]')).toBePresent(); &lt;&lt;&lt; FAIL

</code></pre></div>
<p dir="auto">I haven't done a sandbox because Dialog works fine for me in the browser, it's only when testing that the issues arise.<br>
I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</p>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>0.19.4</td>
</tr>
<tr>
<td>React</td>
<td>16.0.0</td>
</tr>
<tr>
<td>enzyme</td>
<td>3.1.0</td>
</tr>
</tbody>
</table>
<p dir="auto">And finally, here is my <code class="notranslate">mountedComponent.debug()</code> output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;AreaDeleteDialog className=&quot;delete&quot; id=&quot;Hollywood&quot; handleAreaDelete={[Function]}&gt;
  &lt;span&gt;
    &lt;FlatButton label=&quot;Delete&quot; onClick={[Function]} disabled={false} fullWidth={false} labelStyle={{...}} labelPosition=&quot;after&quot; onKeyboardFocus={[Function]} onMouseEnter={[Function]} onMouseLeave={[Function]} onTouchStart={[Function]} primary={false} secondary={false}&gt;
      &lt;EnhancedButton onClick={[Function]} onKeyboardFocus={[Function]} onMouseEnter={[Function]} onMouseLeave={[Function]} onTouchStart={[Function]} disabled={false} focusRippleColor=&quot;#999999&quot; focusRippleOpacity={0.3} style={{...}} touchRippleColor=&quot;#999999&quot; touchRippleOpacity={0.3} containerElement=&quot;button&quot; onBlur={[Function]} onFocus={[Function]} onKeyDown={[Function]} onKeyUp={[Function]} tabIndex={0} type=&quot;button&quot;&gt;
        &lt;button onMouseEnter={[Function]} onMouseLeave={[Function]} onTouchStart={[Function]} style={{...}} disabled={false} onBlur={[Function]} onFocus={[Function]} onKeyUp={[Function]} onKeyDown={[Function]} onClick={[Function]} tabIndex={0} type=&quot;button&quot;&gt;
          &lt;TouchRipple centerRipple={[undefined]} color=&quot;#999999&quot; opacity={0.3} abortOnScroll={true}&gt;
            &lt;div onMouseUp={[Function]} onMouseDown={[Function]} onMouseLeave={[Function]} onTouchStart={[Function]} onTouchEnd={[Function]}&gt;
              &lt;FlatButtonLabel label=&quot;Delete&quot; style={{...}}&gt;
                &lt;span style={{...}}&gt;
                  Delete
                &lt;/span&gt;
              &lt;/FlatButtonLabel&gt;
            &lt;/div&gt;
          &lt;/TouchRipple&gt;
        &lt;/button&gt;
      &lt;/EnhancedButton&gt;
    &lt;/FlatButton&gt;
    &lt;Dialog actions={{...}} open={true} onRequestClose={[Function]} autoDetectWindowHeight={true} autoScrollBodyContent={false} modal={false} repositionOnUpdate={true}&gt;
      &lt;RenderToLayer render={[Function]} open={true} useLayerForClickAway={false} /&gt;
    &lt;/Dialog&gt;
  &lt;/span&gt;
&lt;/AreaDeleteDialog&gt;'"><pre class="notranslate"><code class="notranslate">&lt;AreaDeleteDialog className="delete" id="Hollywood" handleAreaDelete={[Function]}&gt;
  &lt;span&gt;
    &lt;FlatButton label="Delete" onClick={[Function]} disabled={false} fullWidth={false} labelStyle={{...}} labelPosition="after" onKeyboardFocus={[Function]} onMouseEnter={[Function]} onMouseLeave={[Function]} onTouchStart={[Function]} primary={false} secondary={false}&gt;
      &lt;EnhancedButton onClick={[Function]} onKeyboardFocus={[Function]} onMouseEnter={[Function]} onMouseLeave={[Function]} onTouchStart={[Function]} disabled={false} focusRippleColor="#999999" focusRippleOpacity={0.3} style={{...}} touchRippleColor="#999999" touchRippleOpacity={0.3} containerElement="button" onBlur={[Function]} onFocus={[Function]} onKeyDown={[Function]} onKeyUp={[Function]} tabIndex={0} type="button"&gt;
        &lt;button onMouseEnter={[Function]} onMouseLeave={[Function]} onTouchStart={[Function]} style={{...}} disabled={false} onBlur={[Function]} onFocus={[Function]} onKeyUp={[Function]} onKeyDown={[Function]} onClick={[Function]} tabIndex={0} type="button"&gt;
          &lt;TouchRipple centerRipple={[undefined]} color="#999999" opacity={0.3} abortOnScroll={true}&gt;
            &lt;div onMouseUp={[Function]} onMouseDown={[Function]} onMouseLeave={[Function]} onTouchStart={[Function]} onTouchEnd={[Function]}&gt;
              &lt;FlatButtonLabel label="Delete" style={{...}}&gt;
                &lt;span style={{...}}&gt;
                  Delete
                &lt;/span&gt;
              &lt;/FlatButtonLabel&gt;
            &lt;/div&gt;
          &lt;/TouchRipple&gt;
        &lt;/button&gt;
      &lt;/EnhancedButton&gt;
    &lt;/FlatButton&gt;
    &lt;Dialog actions={{...}} open={true} onRequestClose={[Function]} autoDetectWindowHeight={true} autoScrollBodyContent={false} modal={false} repositionOnUpdate={true}&gt;
      &lt;RenderToLayer render={[Function]} open={true} useLayerForClickAway={false} /&gt;
    &lt;/Dialog&gt;
  &lt;/span&gt;
&lt;/AreaDeleteDialog&gt;'
</code></pre></div>