Commit 259acad0 authored by Robert Lyon's avatar Robert Lyon Committed by Aaron Wells

Updating selenium tests for social profile (Bug #1055206)

Change-Id: Ib56e690b09d5b8a8a70c99682dce6fc6c2951082
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
Signed-off-by: Aaron Wells's avatarAaron Wells <aaronw@catalyst.net.nz>
parent 89562254
......@@ -188,9 +188,24 @@
</tr>
<tr>
<td>waitForVisible</td>
<td>messaging_a</td>
<td>social_a</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>contact_a</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[@id=&quot;contact_a&quot; and @class=&quot;current-tab&quot;]</td>
<td></td>
</tr>
<tr>
<td>waitForText</td>
<td>//div[@id='email_list']/div[@class=&quot;unvalidated&quot;]</td>
<td>regexp:cri@catalyst.net.nz.*</td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
......@@ -198,12 +213,12 @@
</tr>
<tr>
<td>click</td>
<td>messaging_a</td>
<td>social_a</td>
<td></td>
</tr>
<tr>
<td>waitForVisible</td>
<td>//a[@id=&quot;messaging_a&quot; and @class=&quot;current-tab&quot;]</td>
<td>//a[@id=&quot;social_a&quot; and @class=&quot;current-tab&quot;]</td>
<td></td>
</tr>
<tr>
......@@ -213,57 +228,127 @@
</tr>
<tr>
<td>waitForElementPresent</td>
<td>profileform_icqnumber</td>
<td>link=New social media account</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>profileform_icqnumber</td>
<td>923854</td>
<td>click</td>
<td>link=New social media account</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>profileform_msnnumber</td>
<td>id=editprofileform_profiletype</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>id=editprofileform_profiletype</td>
<td>value=twitter</td>
</tr>
<tr>
<td>type</td>
<td>profileform_msnnumber</td>
<td>admin</td>
<td>id=editprofileform_profileurl</td>
<td>MaharaProject</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>profileform_aimscreenname</td>
<td>id=editprofileform_submit</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>profileform_aimscreenname</td>
<td>admin</td>
<td>click</td>
<td>id=editprofileform_submit</td>
<td></td>
</tr>
<tr>
<td>waitForNotValue</td>
<td>id=editprofileform_submit</td>
<td>regexp:Processing.*</td>
</tr>
<tr>
<td>setSpeed</td>
<td>1500</td>
<td></td>
</tr>
<tr>
<td>waitForVisible</td>
<td>footer-nav</td>
<td></td>
</tr>
<tr>
<td>waitForVisible</td>
<td>social_a</td>
<td></td>
</tr>
<tr>
<td>pause</td>
<td>1000</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>social_a</td>
<td></td>
</tr>
<tr>
<td>waitForVisible</td>
<td>//a[@id=&quot;social_a&quot; and @class=&quot;current-tab&quot;]</td>
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>//table[@id='socialprofilelist']/tbody/tr/td[2]</td>
<td>Twitter</td>
</tr>
<tr>
<td>assertAttribute</td>
<td>link=MaharaProject@href</td>
<td>https://twitter.com/MaharaProject</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>profileform_yahoochat</td>
<td>link=New social media account</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>link=New social media account</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>id=editprofileform_profiletype</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>id=editprofileform_profiletype</td>
<td>value=other</td>
</tr>
<tr>
<td>type</td>
<td>id=editprofileform_profiletype_other</td>
<td>Github</td>
</tr>
<tr>
<td>type</td>
<td>profileform_yahoochat</td>
<td>admin</td>
<td>id=editprofileform_profileurl</td>
<td>http://github.com/MaharaProjec</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>profileform_submit</td>
<td>id=editprofileform_submit</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>profileform_submit</td>
<td>id=editprofileform_submit</td>
<td></td>
</tr>
<tr>
<td>waitForNotValue</td>
<td>profileform_submit</td>
<td>id=editprofileform_submit</td>
<td>regexp:Processing.*</td>
</tr>
<tr>
......@@ -278,7 +363,7 @@
</tr>
<tr>
<td>waitForVisible</td>
<td>messaging_a</td>
<td>social_a</td>
<td></td>
</tr>
<tr>
......@@ -288,28 +373,43 @@
</tr>
<tr>
<td>click</td>
<td>messaging_a</td>
<td>social_a</td>
<td></td>
</tr>
<tr>
<td>waitForVisible</td>
<td>//a[@id=&quot;messaging_a&quot; and @class=&quot;current-tab&quot;]</td>
<td>//a[@id=&quot;social_a&quot; and @class=&quot;current-tab&quot;]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>contact_a</td>
<td>assertText</td>
<td>//table[@id='socialprofilelist']/tbody/tr/td[2]/span</td>
<td>Github</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>css=img[alt=&quot;Edit&quot;]</td>
<td></td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[@id=&quot;contact_a&quot; and @class=&quot;current-tab&quot;]</td>
<td>type</td>
<td>id=editprofileform_profileurl</td>
<td>http://github.com/MaharaProject</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>id=editprofileform_submit</td>
<td></td>
</tr>
<tr>
<td>waitForText</td>
<td>//div[@id='email_list']/div[@class=&quot;unvalidated&quot;]</td>
<td>regexp:cri@catalyst.net.nz.*</td>
<td>waitForVisible</td>
<td>//a[@id=&quot;social_a&quot; and @class=&quot;current-tab&quot;]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>http://github.com/MaharaProject</td>
<td></td>
</tr>
<tr>
<td>setSpeed</td>
......
......@@ -41,21 +41,6 @@
<td>profileform_preferredname</td>
<td></td>
</tr>
<tr>
<td>fireEvent</td>
<td>//a[@id=&quot;contact_a&quot;]</td>
<td>click</td>
</tr>
<tr>
<td>waitForElementPresent</td>
<td>//a[@id=&quot;contact_a&quot; and @class=&quot;current-tab&quot;]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//div[@id='email_list']/div[2]/a</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>profileform_officialwebsite</td>
......@@ -103,57 +88,57 @@
</tr>
<tr>
<td>type</td>
<td>profileform_icqnumber</td>
<td>profileform_occupation</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>profileform_msnnumber</td>
<td>profileform_industry</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>profileform_aimscreenname</td>
<td>clickAndWait</td>
<td>id=profileform_submit</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>profileform_yahoochat</td>
<td>click</td>
<td>profileform_submit</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>profileform_skypeusername</td>
<td>waitForTextNotPresent</td>
<td>Processing...</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>profileform_jabberusername</td>
<td>waitForTextPresent</td>
<td>Profile saved successfully</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>profileform_occupation</td>
<td>click</td>
<td>id=social_a</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>profileform_industry</td>
<td>clickAndWait</td>
<td>css=a[title=&quot;Delete&quot;] &gt; img[alt=&quot;Delete&quot;]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>profileform_submit</td>
<td>clickAndWait</td>
<td>id=deleteprofileform_submit</td>
<td></td>
</tr>
<tr>
<td>waitForTextNotPresent</td>
<td>Processing...</td>
<td>clickAndWait</td>
<td>css=a[title=&quot;Delete&quot;] &gt; img[alt=&quot;Delete&quot;]</td>
<td></td>
</tr>
<tr>
<td>waitForTextPresent</td>
<td>Profile saved successfully</td>
<td>clickAndWait</td>
<td>id=deleteprofileform_submit</td>
<td></td>
</tr>
</tbody></table>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment