r101953 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r101952‎ | r101953 | r101954 >
Date:05:00, 4 November 2011
Author:jpostlethwaite
Status:deferred
Tags:fundraising 
Comment:
Updating unit tests.
Modified paths:
  • /trunk/extensions/DonationInterface/tests/macros/form.globalcollect.webitects_2_3step.htm (modified) (history)
  • /trunk/extensions/DonationInterface/tests/macros/form.payflowpro.american.express.htm (added) (history)
  • /trunk/extensions/DonationInterface/tests/macros/form.payflowpro.htm (modified) (history)
  • /trunk/extensions/DonationInterface/tests/macros/form.twostepamount.banktransfer.netherlands.fail.not.a.valid.combination.htm (modified) (history)
  • /trunk/extensions/DonationInterface/tests/macros/form.twostepamount.banktransfer.netherlands.htm (modified) (history)
  • /trunk/extensions/DonationInterface/tests/macros/form.twostepamount.directdebit.austria.htm (modified) (history)
  • /trunk/extensions/DonationInterface/tests/macros/form.twostepamount.directdebit.belgium.htm (modified) (history)
  • /trunk/extensions/DonationInterface/tests/macros/form.twostepamount.directdebit.italy.htm (modified) (history)
  • /trunk/extensions/DonationInterface/tests/macros/form.twostepamount.directdebit.netherlands.fail.invalid.accountnumber.length.htm (modified) (history)
  • /trunk/extensions/DonationInterface/tests/macros/form.twostepamount.realtimebanktransfer.enets.htm (modified) (history)
  • /trunk/extensions/DonationInterface/tests/macros/form.twostepamount.realtimebanktransfer.eps.824.htm (modified) (history)
  • /trunk/extensions/DonationInterface/tests/macros/form.twostepamount.realtimebanktransfer.ideal.771.htm (modified) (history)
  • /trunk/extensions/DonationInterface/tests/macros/form.twostepamount.realtimebanktransfer.nordea_sweden.htm (modified) (history)
  • /trunk/extensions/DonationInterface/tests/macros/suite-all-payment-gateways.htm (modified) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/tests/macros/suite-all-payment-gateways.htm
@@ -10,7 +10,8 @@
1111 <tr><td><b>Test Suite</b></td></tr>
1212 <tr><td><a href="form.globalcollect.webitects_2_3step.htm">form.globalcollect.default.us</a></td></tr>
1313 <tr><td><a href="form.globalcollect.webitects_2_3step.htm">form.globalcollect.webitects_2_3step</a></td></tr>
14 -<tr><td><a href="form.payflowpro.htm">form.payflowpro</a></td></tr>
 14+<tr><td><a href="form.payflowpro.american.express.htm">form.payflowpro</a></td></tr>
 15+<tr><td><a href="form.payflowpro.american.express.htm">form.payflowpro.american.express</a></td></tr>
1516 <tr><td><a href="form.twostepamount.banktransfer.netherlands.htm">form.twostepamount.banktransfer.netherlands</a></td></tr>
1617 <tr><td><a href="form.twostepamount.banktransfer.netherlands.fail.not.a.valid.combination.htm">form.twostepamount.banktransfer.netherlands.fail.not.a.valid.combination</a></td></tr>
1718 <tr><td><a href="form.twostepamount.banktransfer.netherlands.htm">form.twostepamount.banktransfer.spain</a></td></tr>
@@ -19,7 +20,6 @@
2021 <tr><td><a href="form.twostepamount.directdebit.italy.htm">form.twostepamount.directdebit.italy</a></td></tr>
2122 <tr><td><a href="form.twostepamount.directdebit.netherlands.fail.invalid.accountnumber.length.htm">form.twostepamount.directdebit.netherlands</a></td></tr>
2223 <tr><td><a href="form.twostepamount.directdebit.netherlands.fail.invalid.accountnumber.length.htm">form.twostepamount.directdebit.netherlands.fail.invalid.accountnumber.length</a></td></tr>
23 -<tr><td><a href="form.twostepamount.banktransfer.NL.htm">form.twostepamount.directdebit.spain</a></td></tr>
2424 <tr><td><a href="form.twostepamount.realtimebanktransfer.enets.htm">form.twostepamount.realtimebanktransfer.enets</a></td></tr>
2525 <tr><td><a href="form.twostepamount.realtimebanktransfer.eps.824.htm">form.twostepamount.realtimebanktransfer.eps.824</a></td></tr>
2626 <tr><td><a href="form.twostepamount.realtimebanktransfer.ideal.771.htm">form.twostepamount.realtimebanktransfer.ideal.771</a></td></tr>
Index: trunk/extensions/DonationInterface/tests/macros/form.twostepamount.directdebit.italy.htm
@@ -12,6 +12,21 @@
1313 <tr><td rowspan="1" colspan="3">form.twostepamount.realtimebanktransfer.enets</td></tr>
1414 </thead><tbody>
1515 <tr>
 16+ <td>clickAndWait</td>
 17+ <td>css=input.button-plain</td>
 18+ <td></td>
 19+</tr>
 20+<tr>
 21+ <td>verifyTextPresent</td>
 22+ <td>Thank you for your support.</td>
 23+ <td></td>
 24+</tr>
 25+<tr>
 26+ <td>assertTitle</td>
 27+ <td>Thank You/en - Wikimedia Foundation</td>
 28+ <td></td>
 29+</tr>
 30+<tr>
1631 <td>open</td>
1732 <td>/index.php/Special:GlobalCollectGateway?form_name=TwoStepAmount&amp;payment_method=dd&amp;payment_submethod=dd_it&amp;country=IT</td>
1833 <td></td>
Index: trunk/extensions/DonationInterface/tests/macros/form.globalcollect.webitects_2_3step.htm
@@ -18,15 +18,10 @@
1919 </tr>
2020 <tr>
2121 <td>click</td>
22 - <td>id=input_amount_other</td>
 22+ <td>id=amountRadio6</td>
2323 <td></td>
2424 </tr>
2525 <tr>
26 - <td>type</td>
27 - <td>id=other-amount</td>
28 - <td>1</td>
29 -</tr>
30 -<tr>
3126 <td>click</td>
3227 <td>id=cc</td>
3328 <td></td>
@@ -42,11 +37,6 @@
4338 <td>Testerton</td>
4439 </tr>
4540 <tr>
46 - <td>select</td>
47 - <td>id=country</td>
48 - <td>label=United States</td>
49 -</tr>
50 -<tr>
5141 <td>type</td>
5242 <td>id=street</td>
5343 <td>123 G Street</td>
@@ -59,7 +49,7 @@
6050 <tr>
6151 <td>select</td>
6252 <td>id=state</td>
63 - <td>label=California</td>
 53+ <td>label=CA</td>
6454 </tr>
6555 <tr>
6656 <td>type</td>
@@ -78,10 +68,50 @@
7969 </tr>
8070 <tr>
8171 <td>click</td>
 72+ <td>id=paymentContinueBtn</td>
 73+ <td></td>
 74+</tr>
 75+<tr>
 76+ <td>click</td>
 77+ <td>id=paymentContinueBtn</td>
 78+ <td></td>
 79+</tr>
 80+<tr>
 81+ <td>click</td>
 82+ <td>id=cc-visa</td>
 83+ <td></td>
 84+</tr>
 85+<tr>
 86+ <td>click</td>
8287 <td>css=img[alt=&quot;Visa&quot;]</td>
8388 <td></td>
8489 </tr>
8590 <tr>
 91+ <td>click</td>
 92+ <td>id=paymentContinueBtn</td>
 93+ <td></td>
 94+</tr>
 95+<tr>
 96+ <td>click</td>
 97+ <td>id=paymentContinueBtn</td>
 98+ <td></td>
 99+</tr>
 100+<tr>
 101+ <td>click</td>
 102+ <td>id=paymentContinueBtn</td>
 103+ <td></td>
 104+</tr>
 105+<tr>
 106+ <td>click</td>
 107+ <td>id=expertContentHeading</td>
 108+ <td></td>
 109+</tr>
 110+<tr>
 111+ <td>click</td>
 112+ <td>id=exceptionDialogButton</td>
 113+ <td></td>
 114+</tr>
 115+<tr>
86116 <td>type</td>
87117 <td>id=F1009</td>
88118 <td>4263982640269299</td>
Index: trunk/extensions/DonationInterface/tests/macros/form.twostepamount.directdebit.belgium.htm
@@ -81,6 +81,21 @@
8282 <td>id=direct_debit_text</td>
8383 <td>123</td>
8484 </tr>
 85+<tr>
 86+ <td>clickAndWait</td>
 87+ <td>css=input.button-plain</td>
 88+ <td></td>
 89+</tr>
 90+<tr>
 91+ <td>verifyTextPresent</td>
 92+ <td>Thank you for your support.</td>
 93+ <td></td>
 94+</tr>
 95+<tr>
 96+ <td>assertTitle</td>
 97+ <td>Thank You/en - Wikimedia Foundation</td>
 98+ <td></td>
 99+</tr>
85100 </tbody></table>
86101 </body>
87102 </html>
Index: trunk/extensions/DonationInterface/tests/macros/form.twostepamount.realtimebanktransfer.eps.824.htm
@@ -56,6 +56,16 @@
5757 <td>//input[@name='amountRadio' and @value='20']</td>
5858 <td></td>
5959 </tr>
 60+<tr>
 61+ <td>clickAndWait</td>
 62+ <td>css=input.button-plain</td>
 63+ <td></td>
 64+</tr>
 65+<tr>
 66+ <td>verifyText</td>
 67+ <td>css=p.payment_error_message.payment_error_message_general</td>
 68+ <td>There was an error processing your transaction. Please try again later.</td>
 69+</tr>
6070 </tbody></table>
6171 </body>
6272 </html>
Index: trunk/extensions/DonationInterface/tests/macros/form.payflowpro.htm
@@ -17,10 +17,85 @@
1818 <td></td>
1919 </tr>
2020 <tr>
 21+ <td>type</td>
 22+ <td>id=fname</td>
 23+ <td>Testy</td>
 24+</tr>
 25+<tr>
 26+ <td>type</td>
 27+ <td>id=lname</td>
 28+ <td>Testerton</td>
 29+</tr>
 30+<tr>
 31+ <td>type</td>
 32+ <td>id=emailAdd</td>
 33+ <td>no-reply@wikimedia.org</td>
 34+</tr>
 35+<tr>
 36+ <td>type</td>
 37+ <td>id=amount</td>
 38+ <td>100</td>
 39+</tr>
 40+<tr>
 41+ <td>type</td>
 42+ <td>id=card_num</td>
 43+ <td>378282246310005</td>
 44+</tr>
 45+<tr>
 46+ <td>type</td>
 47+ <td>id=cvv</td>
 48+ <td>123</td>
 49+</tr>
 50+<tr>
 51+ <td>select</td>
 52+ <td>id=year</td>
 53+ <td>label=2020</td>
 54+</tr>
 55+<tr>
 56+ <td>type</td>
 57+ <td>id=street</td>
 58+ <td>123 Test Street</td>
 59+</tr>
 60+<tr>
 61+ <td>type</td>
 62+ <td>id=city</td>
 63+ <td>D</td>
 64+</tr>
 65+<tr>
 66+ <td>type</td>
 67+ <td>id=street</td>
 68+ <td>123 G Street</td>
 69+</tr>
 70+<tr>
 71+ <td>type</td>
 72+ <td>id=city</td>
 73+ <td>Davis</td>
 74+</tr>
 75+<tr>
 76+ <td>select</td>
 77+ <td>id=state</td>
 78+ <td>label=California</td>
 79+</tr>
 80+<tr>
 81+ <td>type</td>
 82+ <td>id=zip</td>
 83+ <td>95616</td>
 84+</tr>
 85+<tr>
 86+ <td>select</td>
 87+ <td>id=country</td>
 88+ <td>label=United States</td>
 89+</tr>
 90+<tr>
2191 <td>clickAndWait</td>
2292 <td>css=input.button-plain</td>
2393 <td></td>
2494 </tr>
 95+<tr>
 96+ <td>verifyText</td>
 97+ <td>css=p.creditcard-error-msg</td>
 98+ <td>communication is difficult with the test server</td>
 99+</tr>
25100 </tbody></table>
26101 </body>
27102 </html>
Index: trunk/extensions/DonationInterface/tests/macros/form.twostepamount.directdebit.netherlands.fail.invalid.accountnumber.length.htm
@@ -86,6 +86,16 @@
8787 <td>id=direct_debit_text</td>
8888 <td>123</td>
8989 </tr>
 90+<tr>
 91+ <td>clickAndWait</td>
 92+ <td>css=input.button-plain</td>
 93+ <td></td>
 94+</tr>
 95+<tr>
 96+ <td>verifyText</td>
 97+ <td>css=p.payment_error_message.payment_error_message_general</td>
 98+ <td>There was an error processing your transaction. Please try again later.</td>
 99+</tr>
90100 </tbody></table>
91101 </body>
92102 </html>
Index: trunk/extensions/DonationInterface/tests/macros/form.twostepamount.banktransfer.netherlands.fail.not.a.valid.combination.htm
@@ -61,6 +61,16 @@
6262 <td>id=input_currency_code</td>
6363 <td>label=USD: U.S. dollar</td>
6464 </tr>
 65+<tr>
 66+ <td>clickAndWait</td>
 67+ <td>css=input.button-plain</td>
 68+ <td></td>
 69+</tr>
 70+<tr>
 71+ <td>verifyText</td>
 72+ <td>css=p.payment_error_message.payment_error_message_general</td>
 73+ <td>There was an error processing your transaction. Please try again later.</td>
 74+</tr>
6575 </tbody></table>
6676 </body>
6777 </html>
Index: trunk/extensions/DonationInterface/tests/macros/form.twostepamount.realtimebanktransfer.nordea_sweden.htm
@@ -42,21 +42,31 @@
4343 <td>Amsterdam</td>
4444 </tr>
4545 <tr>
46 - <td>select</td>
47 - <td>id=state</td>
48 - <td>label=Outside the U.S.</td>
49 -</tr>
50 -<tr>
5146 <td>type</td>
5247 <td>id=emailAdd</td>
5348 <td>no-reply@wikimedia.org</td>
5449 </tr>
5550 <tr>
56 - <td>type</td>
57 - <td>id=amount</td>
58 - <td>1</td>
 51+ <td>click</td>
 52+ <td>//input[@name='amountRadio' and @value='250']</td>
 53+ <td></td>
5954 </tr>
6055 <tr>
 56+ <td>click</td>
 57+ <td>//table[@id='amount-radio']/tbody/tr[2]/td[3]/label</td>
 58+ <td></td>
 59+</tr>
 60+<tr>
 61+ <td>clickAndWait</td>
 62+ <td>css=input.button-plain</td>
 63+ <td></td>
 64+</tr>
 65+<tr>
 66+ <td>verifyText</td>
 67+ <td>css=p.payment_error_message.payment_error_message_general</td>
 68+ <td>There was an error processing your transaction. Please try again later.</td>
 69+</tr>
 70+<tr>
6171 <td>select</td>
6272 <td>id=input_currency_code</td>
6373 <td>label=EUR: Euro</td>
Index: trunk/extensions/DonationInterface/tests/macros/form.payflowpro.american.express.htm
@@ -0,0 +1,101 @@
 2+<?xml version="1.0" encoding="UTF-8"?>
 3+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 4+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 5+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
 6+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 7+<link rel="selenium.base" href="http://wikimedia-fundraising-1.17.localhost.wikimedia.org/" />
 8+<title>form.payflowpro</title>
 9+</head>
 10+<body>
 11+<table cellpadding="1" cellspacing="1" border="1">
 12+<thead>
 13+<tr><td rowspan="1" colspan="3">form.payflowpro</td></tr>
 14+</thead><tbody>
 15+<tr>
 16+ <td>open</td>
 17+ <td>/index.php/Special:PayflowProGateway</td>
 18+ <td></td>
 19+</tr>
 20+<tr>
 21+ <td>type</td>
 22+ <td>id=fname</td>
 23+ <td>Testy</td>
 24+</tr>
 25+<tr>
 26+ <td>type</td>
 27+ <td>id=lname</td>
 28+ <td>Testerton</td>
 29+</tr>
 30+<tr>
 31+ <td>type</td>
 32+ <td>id=emailAdd</td>
 33+ <td>no-reply@wikimedia.org</td>
 34+</tr>
 35+<tr>
 36+ <td>type</td>
 37+ <td>id=amount</td>
 38+ <td>100</td>
 39+</tr>
 40+<tr>
 41+ <td>type</td>
 42+ <td>id=card_num</td>
 43+ <td>378282246310005</td>
 44+</tr>
 45+<tr>
 46+ <td>type</td>
 47+ <td>id=cvv</td>
 48+ <td>123</td>
 49+</tr>
 50+<tr>
 51+ <td>select</td>
 52+ <td>id=year</td>
 53+ <td>label=2020</td>
 54+</tr>
 55+<tr>
 56+ <td>type</td>
 57+ <td>id=street</td>
 58+ <td>123 Test Street</td>
 59+</tr>
 60+<tr>
 61+ <td>type</td>
 62+ <td>id=city</td>
 63+ <td>D</td>
 64+</tr>
 65+<tr>
 66+ <td>type</td>
 67+ <td>id=street</td>
 68+ <td>123 G Street</td>
 69+</tr>
 70+<tr>
 71+ <td>type</td>
 72+ <td>id=city</td>
 73+ <td>Davis</td>
 74+</tr>
 75+<tr>
 76+ <td>select</td>
 77+ <td>id=state</td>
 78+ <td>label=California</td>
 79+</tr>
 80+<tr>
 81+ <td>type</td>
 82+ <td>id=zip</td>
 83+ <td>95616</td>
 84+</tr>
 85+<tr>
 86+ <td>select</td>
 87+ <td>id=country</td>
 88+ <td>label=United States</td>
 89+</tr>
 90+<tr>
 91+ <td>clickAndWait</td>
 92+ <td>css=input.button-plain</td>
 93+ <td></td>
 94+</tr>
 95+<tr>
 96+ <td>verifyTextPresent</td>
 97+ <td>Your credit card could not be validated.</td>
 98+ <td></td>
 99+</tr>
 100+</tbody></table>
 101+</body>
 102+</html>
Property changes on: trunk/extensions/DonationInterface/tests/macros/form.payflowpro.american.express.htm
___________________________________________________________________
Added: svn:eol-style
1103 + native
Added: svn:mime-type
2104 + text/html
Added: svn:keywords
3105 + Author Date HeadURL Header Id Revision
Index: trunk/extensions/DonationInterface/tests/macros/form.twostepamount.realtimebanktransfer.enets.htm
@@ -51,6 +51,21 @@
5252 <td>id=emailAdd</td>
5353 <td>no-reply@wikimedia.org</td>
5454 </tr>
 55+<tr>
 56+ <td>clickAndWait</td>
 57+ <td>css=input.button-plain</td>
 58+ <td></td>
 59+</tr>
 60+<tr>
 61+ <td>verifyTextPresent</td>
 62+ <td>GLOBAL COLLECT B.V.</td>
 63+ <td></td>
 64+</tr>
 65+<tr>
 66+ <td>verifyTextPresent</td>
 67+ <td>SGD 250.00</td>
 68+ <td></td>
 69+</tr>
5570 </tbody></table>
5671 </body>
5772 </html>
Index: trunk/extensions/DonationInterface/tests/macros/form.twostepamount.banktransfer.netherlands.htm
@@ -61,6 +61,21 @@
6262 <td>id=input_currency_code</td>
6363 <td>label=EUR: Euro</td>
6464 </tr>
 65+<tr>
 66+ <td>clickAndWait</td>
 67+ <td>css=input.button-plain</td>
 68+ <td></td>
 69+</tr>
 70+<tr>
 71+ <td>verifyTextPresent</td>
 72+ <td>Thank you for your support.</td>
 73+ <td></td>
 74+</tr>
 75+<tr>
 76+ <td>assertTitle</td>
 77+ <td>Thank You/en - Wikimedia Foundation</td>
 78+ <td></td>
 79+</tr>
6580 </tbody></table>
6681 </body>
6782 </html>
Index: trunk/extensions/DonationInterface/tests/macros/form.twostepamount.directdebit.austria.htm
@@ -86,6 +86,21 @@
8787 <td>id=direct_debit_text</td>
8888 <td>123</td>
8989 </tr>
 90+<tr>
 91+ <td>clickAndWait</td>
 92+ <td>css=input.button-plain</td>
 93+ <td></td>
 94+</tr>
 95+<tr>
 96+ <td>verifyTextPresent</td>
 97+ <td>Thank you for your support.</td>
 98+ <td></td>
 99+</tr>
 100+<tr>
 101+ <td>assertTitle</td>
 102+ <td>Thank You/en - Wikimedia Foundation</td>
 103+ <td></td>
 104+</tr>
90105 </tbody></table>
91106 </body>
92107 </html>
Index: trunk/extensions/DonationInterface/tests/macros/form.twostepamount.realtimebanktransfer.ideal.771.htm
@@ -56,6 +56,16 @@
5757 <td>//input[@name='amountRadio' and @value='20']</td>
5858 <td></td>
5959 </tr>
 60+<tr>
 61+ <td>clickAndWait</td>
 62+ <td>css=input.button-plain</td>
 63+ <td></td>
 64+</tr>
 65+<tr>
 66+ <td>verifyText</td>
 67+ <td>css=p.payment_error_message.payment_error_message_general</td>
 68+ <td>There was an error processing your transaction. Please try again later.</td>
 69+</tr>
6070 </tbody></table>
6171 </body>
6272 </html>

Status & tagging log