r103409 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103408‎ | r103409 | r103410 >
Date:23:28, 16 November 2011
Author:jpostlethwaite
Status:deferred
Tags:
Comment:
Developing unit tests.
Modified paths:
  • /trunk/extensions/DonationInterface/tests/macros/form.twostepamount.directdebit.belgium.htm (modified) (history)
  • /trunk/extensions/DonationInterface/tests/macros/form.twostepamount.ewallets.webmoney.htm (added) (history)
  • /trunk/extensions/DonationInterface/tests/macros/form.twostepamount.onlinebanktransfer.australia.htm (added) (history)

Diff [purge]

Index: trunk/extensions/DonationInterface/tests/macros/form.twostepamount.ewallets.webmoney.htm
@@ -0,0 +1,66 @@
 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.twostepamount.realtimebanktransfer.enets</title>
 9+</head>
 10+<body>
 11+<table cellpadding="1" cellspacing="1" border="1">
 12+<thead>
 13+<tr><td rowspan="1" colspan="3">form.twostepamount.realtimebanktransfer.enets</td></tr>
 14+</thead><tbody>
 15+<tr>
 16+ <td>open</td>
 17+ <td>/index.php/Special:GlobalCollectGateway?form_name=TwoStepAmount&amp;payment_method=ew&amp;payment_submethod=ew_webmoney</td>
 18+ <td></td>
 19+</tr>
 20+<tr>
 21+ <td>click</td>
 22+ <td>//input[@name='amountRadio' and @value='250']</td>
 23+ <td></td>
 24+</tr>
 25+<tr>
 26+ <td>type</td>
 27+ <td>id=fname</td>
 28+ <td>Testy</td>
 29+</tr>
 30+<tr>
 31+ <td>type</td>
 32+ <td>id=lname</td>
 33+ <td>Testerton</td>
 34+</tr>
 35+<tr>
 36+ <td>type</td>
 37+ <td>id=zip</td>
 38+ <td>048941</td>
 39+</tr>
 40+<tr>
 41+ <td>type</td>
 42+ <td>id=street</td>
 43+ <td>149 New Montgomery</td>
 44+</tr>
 45+<tr>
 46+ <td>select</td>
 47+ <td>id=state</td>
 48+ <td>label=California</td>
 49+</tr>
 50+<tr>
 51+ <td>type</td>
 52+ <td>id=city</td>
 53+ <td>San Francisco</td>
 54+</tr>
 55+<tr>
 56+ <td>type</td>
 57+ <td>id=emailAdd</td>
 58+ <td>no-reply@wikimedia.org</td>
 59+</tr>
 60+<tr>
 61+ <td>clickAndWait</td>
 62+ <td>css=input.button-plain</td>
 63+ <td></td>
 64+</tr>
 65+</tbody></table>
 66+</body>
 67+</html>
Property changes on: trunk/extensions/DonationInterface/tests/macros/form.twostepamount.ewallets.webmoney.htm
___________________________________________________________________
Added: svn:eol-style
168 + native
Added: svn:mime-type
269 + text/html
Added: svn:keywords
370 + Author Date HeadURL Header Id Revision
Index: trunk/extensions/DonationInterface/tests/macros/form.twostepamount.directdebit.belgium.htm
@@ -68,11 +68,6 @@
6969 </tr>
7070 <tr>
7171 <td>type</td>
72 - <td>id=account_name</td>
73 - <td>Johnsen</td>
74 -</tr>
75 -<tr>
76 - <td>type</td>
7772 <td>id=authorization_id</td>
7873 <td>991234567890</td>
7974 </tr>
@@ -89,10 +84,20 @@
9085 <tr>
9186 <td>type</td>
9287 <td>id=account_number</td>
 88+ <td>3857685</td>
 89+</tr>
 90+<tr>
 91+ <td>type</td>
 92+ <td>id=account_number</td>
9393 <td>001385768571</td>
9494 </tr>
9595 <tr>
9696 <td>type</td>
 97+ <td>id=account_name</td>
 98+ <td>Johnsen</td>
 99+</tr>
 100+<tr>
 101+ <td>type</td>
97102 <td>id=bank_name</td>
98103 <td>Johnsen</td>
99104 </tr>
Index: trunk/extensions/DonationInterface/tests/macros/form.twostepamount.onlinebanktransfer.australia.htm
@@ -0,0 +1,146 @@
 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.twostepamount.banktransfer</title>
 9+</head>
 10+<body>
 11+<table cellpadding="1" cellspacing="1" border="1">
 12+<thead>
 13+<tr><td rowspan="1" colspan="3">form.twostepamount.banktransfer</td></tr>
 14+</thead><tbody>
 15+<tr>
 16+ <td>open</td>
 17+ <td>/index.php/Special:GlobalCollectGateway?form_name=TwoStepAmount&amp;payment_method=obt&amp;payment_submethod=bpay</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=zip</td>
 33+ <td>123</td>
 34+</tr>
 35+<tr>
 36+ <td>select</td>
 37+ <td>id=country</td>
 38+ <td>label=Australia</td>
 39+</tr>
 40+<tr>
 41+ <td>type</td>
 42+ <td>id=street</td>
 43+ <td>123 Happy Street</td>
 44+</tr>
 45+<tr>
 46+ <td>select</td>
 47+ <td>id=state</td>
 48+ <td>label=Outside the U.S.</td>
 49+</tr>
 50+<tr>
 51+ <td>type</td>
 52+ <td>id=city</td>
 53+ <td>Sydney</td>
 54+</tr>
 55+<tr>
 56+ <td>type</td>
 57+ <td>id=emailAdd</td>
 58+ <td>no-reply@wikimedia.org</td>
 59+</tr>
 60+<tr>
 61+ <td>click</td>
 62+ <td>id=input_amount_other</td>
 63+ <td></td>
 64+</tr>
 65+<tr>
 66+ <td>type</td>
 67+ <td>id=other-amount</td>
 68+ <td>1</td>
 69+</tr>
 70+<tr>
 71+ <td>select</td>
 72+ <td>id=input_currency_code</td>
 73+ <td>label=Australian dollar</td>
 74+</tr>
 75+<tr>
 76+ <td>clickAndWait</td>
 77+ <td>css=input.button-plain</td>
 78+ <td></td>
 79+</tr>
 80+<tr>
 81+ <td>verifyTextPresent</td>
 82+ <td>Bank transfer information</td>
 83+ <td></td>
 84+</tr>
 85+<tr>
 86+ <td>verifyTextPresent</td>
 87+ <td>Account holder</td>
 88+ <td></td>
 89+</tr>
 90+<tr>
 91+ <td>verifyText</td>
 92+ <td>css=th</td>
 93+ <td>Account holder</td>
 94+</tr>
 95+<tr>
 96+ <td>verifyTextPresent</td>
 97+ <td>Bank name</td>
 98+ <td></td>
 99+</tr>
 100+<tr>
 101+ <td>verifyTextPresent</td>
 102+ <td>Bank account number</td>
 103+ <td></td>
 104+</tr>
 105+<tr>
 106+ <td>verifyTextPresent</td>
 107+ <td>City</td>
 108+ <td></td>
 109+</tr>
 110+<tr>
 111+ <td>verifyTextPresent</td>
 112+ <td>Country description</td>
 113+ <td></td>
 114+</tr>
 115+<tr>
 116+ <td>verifyTextPresent</td>
 117+ <td>IBAN</td>
 118+ <td></td>
 119+</tr>
 120+<tr>
 121+ <td>verifyTextPresent</td>
 122+ <td>Payment reference</td>
 123+ <td></td>
 124+</tr>
 125+<tr>
 126+ <td>verifyTextPresent</td>
 127+ <td>Swift code</td>
 128+ <td></td>
 129+</tr>
 130+<tr>
 131+ <td>clickAndWait</td>
 132+ <td>link=Finished</td>
 133+ <td></td>
 134+</tr>
 135+<tr>
 136+ <td>verifyTextPresent</td>
 137+ <td>Thank you for your support.</td>
 138+ <td></td>
 139+</tr>
 140+<tr>
 141+ <td>assertTitle</td>
 142+ <td>Thank You/en - Wikimedia Foundation</td>
 143+ <td></td>
 144+</tr>
 145+</tbody></table>
 146+</body>
 147+</html>
Property changes on: trunk/extensions/DonationInterface/tests/macros/form.twostepamount.onlinebanktransfer.australia.htm
___________________________________________________________________
Added: svn:eol-style
1148 + native
Added: svn:mime-type
2149 + text/html
Added: svn:keywords
3150 + Author Date HeadURL Header Id Revision

Status & tagging log