Uploaded image for project: 'ZTL'
  1. ZTL
  2. ZTL-26

Wrong order in generated TestCafe assertions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • None
    • Core
    • None

      Steps to Reproduce

      verifyEquals("anyMessage", jq(".z-messagebox .z-label").text())
      

      Current Result

      1) AssertionError: expected 'anyMessage' to deeply equal '1'

      + expected - actual

      -'anyMessage'
      +'1'

      await t.expect((('anyMessage') + '').replace(' ', ' ')).eql(((await ClientFunction(() => jq('.z-messagebox .z-label').text().replace(/\s/g,' '))()) + '').replace(' ', ' '));
      

      Expected Result

      t.expect(await ClientFunction(() => jq('.z-messagebox .z-label').text().replace(/\s/g,' '))()).eql('anyMessage')
      

      Debug Information

      verifyEquals(expected, actual)
      expected, then actual

      https://devexpress.github.io/testcafe/documentation/reference/test-api/testcontroller/expect/eql.html

      t.expect(actual).eql(expected, message, options)
      actual, then expected

      Workaround

      N/A

            DevChu DevChu
            rudyhuang rudyhuang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: