[Tests] Add Qt GUI tests to Overview and ReceiveCoin Page #11365

pull anditto wants to merge 1 commits into bitcoin:master from anditto:Adding-Qt-tests changing 1 files +71 −2
  1. anditto commented at 6:39 AM on September 19, 2017: contributor

    I've added some Qt wallet tests based on #9974, namely the input & buttons on ReceiveCoin.

  2. fanquake added the label Tests on Sep 19, 2017
  3. anditto force-pushed on Sep 19, 2017
  4. in src/qt/test/wallettests.cpp:215 in 2f9b71f21c outdated
     210 | +    QLineEdit* labelInput = receiveCoinsDialog.findChild<QLineEdit*>("reqLabel");
     211 | +    labelInput->setText("TEST_LABEL_1");
     212 | +
     213 | +    // Amount input
     214 | +    BitcoinAmountField* amountInput = receiveCoinsDialog.findChild<BitcoinAmountField*>("reqAmount");
     215 | +    CAmount testAmount = 1.0;
    


    kallewoof commented at 8:51 AM on September 19, 2017:

    CAmounts are not floats; just use 1. Since you're not using it elsewhere you may want to just do setValue(1) below.

  5. in src/qt/test/wallettests.cpp:233 in 2f9b71f21c outdated
     228 | +            QString paymentText = rlist->toPlainText();
     229 | +            QStringList paymentTextList = paymentText.split('\n');
     230 | +            QCOMPARE(paymentTextList.at(0), QString("Payment information"));
     231 | +            QVERIFY(paymentTextList.at(1).indexOf(QString("URI: bitcoin:")) != -1);
     232 | +            QVERIFY(paymentTextList.at(2).indexOf(QString("Address:")) != -1);
     233 | +            QCOMPARE(paymentTextList.at(3), QString("Amount: 0.00000001 BTC"));
    


    kallewoof commented at 8:53 AM on September 19, 2017:

    You may wanna use CURRENCY_UNIT instead of hard-coded BTC here. It's defined in policy/feerate.h.

  6. kallewoof commented at 8:54 AM on September 19, 2017: member

    utACK 2f9b71f21cd9a56d80b4517b8dab68c7160dc75e with some nits

  7. [Tests] Add Qt GUI tests to Overview and ReceiveCoin Page 634e38ca71
  8. anditto force-pushed on Sep 19, 2017
  9. MarcoFalke merged this on Oct 2, 2017
  10. MarcoFalke closed this on Oct 2, 2017

  11. MarcoFalke referenced this in commit f199b8a33d on Oct 2, 2017
  12. MarcoFalke commented at 7:24 PM on October 2, 2017: member

    utACK 634e38ca7

  13. anditto deleted the branch on Oct 10, 2017
  14. PastaPastaPasta referenced this in commit d3c59cfea4 on Jan 17, 2020
  15. PastaPastaPasta referenced this in commit 2c244c2cd3 on Jan 22, 2020
  16. PastaPastaPasta referenced this in commit 41678a382d on Jan 22, 2020
  17. PastaPastaPasta referenced this in commit 715426b41b on Jan 29, 2020
  18. PastaPastaPasta referenced this in commit 6e829d96fe on Jan 29, 2020
  19. PastaPastaPasta referenced this in commit 27a4f30f5f on Jan 31, 2020
  20. PastaPastaPasta referenced this in commit 6d8738eb9e on Jan 31, 2020
  21. ckti referenced this in commit bae751ab06 on Mar 28, 2021
  22. gades referenced this in commit ba241e9bfb on Jun 30, 2021
  23. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me