title: TestCafe - How to check if the value is greater than or equal in the assertion
body: <p>I would like to check the value which appears in below selector if it is greater than or equal to 1</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;span class="badge badge-pill badge-white"&gt; 0 &lt;/span&gt;
  </code></pre>
  
  <p>(In steps, the value "0" should change into "1" or "2"..)</p>
  
  <p>I defined this selector in common.js</p>
  
  <pre class="lang-js prettyprint-override"><code>this.pill = Selector('[class*=badge-white]');
  </code></pre>
  
  <p>and wrote the following assertion:</p>
  
  <pre class="lang-js prettyprint-override"><code>await t.expect((common.pill).innerText).gte(1);
  </code></pre>
  
  <p>I received the following error: " AssertionError: expected '1' to be a number or a date'. I do not know how to convert ((common.pill).innerText) to number? I tried sth like this:</p>
  
  <pre class="lang-js prettyprint-override"><code>await t.expect(Number((common.pill).innerText)).gte(1);
  </code></pre>
  
  <p>But it does not work.
  When I check if the value is deep equal eg."3"i write:</p>
  
  <pre class="lang-js prettyprint-override"><code>await t.expect((common.pill).innerText).eql('3');
  </code></pre>
  
  <p>And it works.
  Could anybody help me how to check value greater than or equal?
  I studied it thoroughly but I can't find a solution <a href="https://devexpress.github.io/testcafe/documentation/guides/basic-guides/assert.html" rel="nofollow noreferrer">https://devexpress.github.io/testcafe/documentation/guides/basic-guides/assert.html</a> :(</p>
  
  <p>I found a solution when created const </p>
  
  <pre class="lang-js prettyprint-override"><code>const number = await common.pill.innerText;
  
  await t.expect(Number(number)).gte(1);
  </code></pre>
  
  <p>It works!!!!!!!!!!!!!!!!!!</p>
  
  <p>so my question is why below code did not work </p>
  
  <pre class="lang-js prettyprint-override"><code>await t.expect(Number((common.pill).innerText)).gte(1);
  </code></pre>