r102034 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r102033‎ | r102034 | r102035 >
Date:19:50, 4 November 2011
Author:jpostlethwaite
Status:deferred
Tags:fundraising 
Comment:
Updated selenium unit tests.
Modified paths:
  • /trunk/extensions/DonationInterface/tests/macros/form.globalcollect.webitects_2_3step.htm (modified) (history)
  • /trunk/extensions/DonationInterface/tests/macros/form.twostepamount.banktransfer.netherlands.htm (modified) (history)
  • /trunk/extensions/DonationInterface/tests/macros/form.twostepamount.banktransfer.spain.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
@@ -14,7 +14,7 @@
1515 <tr><td><a href="form.payflowpro.american.express.htm">form.payflowpro.american.express</a></td></tr>
1616 <tr><td><a href="form.twostepamount.banktransfer.netherlands.htm">form.twostepamount.banktransfer.netherlands</a></td></tr>
1717 <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>
18 -<tr><td><a href="form.twostepamount.banktransfer.netherlands.htm">form.twostepamount.banktransfer.spain</a></td></tr>
 18+<tr><td><a href="form.twostepamount.banktransfer.spain.htm">form.twostepamount.banktransfer.spain</a></td></tr>
1919 <tr><td><a href="form.twostepamount.directdebit.austria.htm">form.twostepamount.directdebit.austria</a></td></tr>
2020 <tr><td><a href="form.twostepamount.directdebit.belgium.htm">form.twostepamount.directdebit.belgium</a></td></tr>
2121 <tr><td><a href="form.twostepamount.directdebit.italy.htm">form.twostepamount.directdebit.italy</a></td></tr>
Index: trunk/extensions/DonationInterface/tests/macros/form.globalcollect.webitects_2_3step.htm
@@ -13,20 +13,10 @@
1414 </thead><tbody>
1515 <tr>
1616 <td>open</td>
17 - <td>/index.php/Special:GlobalCollectGateway?form_name=RapidHtml&amp;ffname=webitects_2_3step&amp;country=US</td>
 17+ <td>/index.php/Special:GlobalCollectGateway</td>
1818 <td></td>
1919 </tr>
2020 <tr>
21 - <td>click</td>
22 - <td>id=amountRadio6</td>
23 - <td></td>
24 -</tr>
25 -<tr>
26 - <td>click</td>
27 - <td>id=cc</td>
28 - <td></td>
29 -</tr>
30 -<tr>
3121 <td>type</td>
3222 <td>id=fname</td>
3323 <td>Testy</td>
@@ -49,7 +39,7 @@
5040 <tr>
5141 <td>select</td>
5242 <td>id=state</td>
53 - <td>label=CA</td>
 43+ <td>label=California</td>
5444 </tr>
5545 <tr>
5646 <td>type</td>
@@ -62,23 +52,43 @@
6353 <td>no-reply@wikimedia.org</td>
6454 </tr>
6555 <tr>
66 - <td>click</td>
67 - <td>id=cc-visa</td>
68 - <td></td>
 56+ <td>type</td>
 57+ <td>id=card_num</td>
 58+ <td>4263982640269299</td>
6959 </tr>
7060 <tr>
71 - <td>click</td>
72 - <td>id=paymentContinueBtn</td>
73 - <td></td>
 61+ <td>type</td>
 62+ <td>id=cvv</td>
 63+ <td>123</td>
7464 </tr>
7565 <tr>
76 - <td>click</td>
77 - <td>id=expertContentHeading</td>
 66+ <td>select</td>
 67+ <td>id=expiration</td>
 68+ <td>label=2 (February)</td>
 69+</tr>
 70+<tr>
 71+ <td>select</td>
 72+ <td>id=year</td>
 73+ <td>label=2012</td>
 74+</tr>
 75+<tr>
 76+ <td>select</td>
 77+ <td>id=country</td>
 78+ <td>label=United States</td>
 79+</tr>
 80+<tr>
 81+ <td>type</td>
 82+ <td>id=amount</td>
 83+ <td>50.00</td>
 84+</tr>
 85+<tr>
 86+ <td>clickAndWait</td>
 87+ <td>css=input.button-plain</td>
7888 <td></td>
7989 </tr>
8090 <tr>
81 - <td>click</td>
82 - <td>id=exceptionDialogButton</td>
 91+ <td>selectFrame</td>
 92+ <td>globalcollectframe</td>
8393 <td></td>
8494 </tr>
8595 <tr>
@@ -101,6 +111,11 @@
102112 <td>id=F1136</td>
103113 <td>123</td>
104114 </tr>
 115+<tr>
 116+ <td>clickAndWait</td>
 117+ <td>id=btnSubmit</td>
 118+ <td></td>
 119+</tr>
105120 </tbody></table>
106121 </body>
107122 </html>
Index: trunk/extensions/DonationInterface/tests/macros/form.twostepamount.banktransfer.netherlands.htm
@@ -67,7 +67,22 @@
6868 <td></td>
6969 </tr>
7070 <tr>
 71+ <td>selectWindow</td>
 72+ <td>null</td>
 73+ <td></td>
 74+</tr>
 75+<tr>
7176 <td>verifyTextPresent</td>
 77+ <td>Bank transfer information</td>
 78+ <td></td>
 79+</tr>
 80+<tr>
 81+ <td>clickAndWait</td>
 82+ <td>link=Finished</td>
 83+ <td></td>
 84+</tr>
 85+<tr>
 86+ <td>verifyTextPresent</td>
7287 <td>Thank you for your support.</td>
7388 <td></td>
7489 </tr>
@@ -76,6 +91,51 @@
7792 <td>Thank You/en - Wikimedia Foundation</td>
7893 <td></td>
7994 </tr>
 95+<tr>
 96+ <td>verifyTextPresent</td>
 97+ <td>Account holder</td>
 98+ <td></td>
 99+</tr>
 100+<tr>
 101+ <td>verifyText</td>
 102+ <td>css=th</td>
 103+ <td>Account holder</td>
 104+</tr>
 105+<tr>
 106+ <td>verifyTextPresent</td>
 107+ <td>Bank name</td>
 108+ <td></td>
 109+</tr>
 110+<tr>
 111+ <td>verifyTextPresent</td>
 112+ <td>Bank account number</td>
 113+ <td></td>
 114+</tr>
 115+<tr>
 116+ <td>verifyTextPresent</td>
 117+ <td>City</td>
 118+ <td></td>
 119+</tr>
 120+<tr>
 121+ <td>verifyTextPresent</td>
 122+ <td>Country description</td>
 123+ <td></td>
 124+</tr>
 125+<tr>
 126+ <td>verifyTextPresent</td>
 127+ <td>IBAN</td>
 128+ <td></td>
 129+</tr>
 130+<tr>
 131+ <td>verifyTextPresent</td>
 132+ <td>Payment reference</td>
 133+ <td></td>
 134+</tr>
 135+<tr>
 136+ <td>verifyTextPresent</td>
 137+ <td>Swift code</td>
 138+ <td></td>
 139+</tr>
80140 </tbody></table>
81141 </body>
82142 </html>
Index: trunk/extensions/DonationInterface/tests/macros/form.twostepamount.banktransfer.spain.htm
@@ -29,7 +29,7 @@
3030 <tr>
3131 <td>select</td>
3232 <td>id=country</td>
33 - <td>label=Spain</td>
 33+ <td>label=Netherlands</td>
3434 </tr>
3535 <tr>
3636 <td>type</td>
@@ -59,8 +59,78 @@
6060 <tr>
6161 <td>select</td>
6262 <td>id=input_currency_code</td>
63 - <td>label=EUR: Euro</td>
 63+ <td>label=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>Bank transfer information</td>
 73+ <td></td>
 74+</tr>
 75+<tr>
 76+ <td>verifyTextPresent</td>
 77+ <td>Account holder</td>
 78+ <td></td>
 79+</tr>
 80+<tr>
 81+ <td>verifyText</td>
 82+ <td>css=th</td>
 83+ <td>Account holder</td>
 84+</tr>
 85+<tr>
 86+ <td>verifyTextPresent</td>
 87+ <td>Bank name</td>
 88+ <td></td>
 89+</tr>
 90+<tr>
 91+ <td>verifyTextPresent</td>
 92+ <td>Bank account number</td>
 93+ <td></td>
 94+</tr>
 95+<tr>
 96+ <td>verifyTextPresent</td>
 97+ <td>City</td>
 98+ <td></td>
 99+</tr>
 100+<tr>
 101+ <td>verifyTextPresent</td>
 102+ <td>Country description</td>
 103+ <td></td>
 104+</tr>
 105+<tr>
 106+ <td>verifyTextPresent</td>
 107+ <td>IBAN</td>
 108+ <td></td>
 109+</tr>
 110+<tr>
 111+ <td>verifyTextPresent</td>
 112+ <td>Payment reference</td>
 113+ <td></td>
 114+</tr>
 115+<tr>
 116+ <td>verifyTextPresent</td>
 117+ <td>Swift code</td>
 118+ <td></td>
 119+</tr>
 120+<tr>
 121+ <td>clickAndWait</td>
 122+ <td>link=Finished</td>
 123+ <td></td>
 124+</tr>
 125+<tr>
 126+ <td>verifyTextPresent</td>
 127+ <td>Thank you for your support.</td>
 128+ <td></td>
 129+</tr>
 130+<tr>
 131+ <td>assertTitle</td>
 132+ <td>Thank You/en - Wikimedia Foundation</td>
 133+ <td></td>
 134+</tr>
65135 </tbody></table>
66136 </body>
67137 </html>

Status & tagging log