Author: manaRH
Date: 2009-03-02 10:48:18 -0500 (Mon, 02 Mar 2009)
New Revision: 10103
Modified:
trunk/src/test/ftest/examples/seamdiscs/src/org/jboss/seam/example/seamdiscs/test/selenium/ArtistsTest.java
trunk/src/test/ftest/examples/seamdiscs/src/org/jboss/seam/example/seamdiscs/test/selenium/SeleniumSeamDiscsTest.java
Log:
JBSEAM-3690 - fix for the seamdiscs
Modified:
trunk/src/test/ftest/examples/seamdiscs/src/org/jboss/seam/example/seamdiscs/test/selenium/ArtistsTest.java
===================================================================
---
trunk/src/test/ftest/examples/seamdiscs/src/org/jboss/seam/example/seamdiscs/test/selenium/ArtistsTest.java 2009-03-02
10:27:17 UTC (rev 10102)
+++
trunk/src/test/ftest/examples/seamdiscs/src/org/jboss/seam/example/seamdiscs/test/selenium/ArtistsTest.java 2009-03-02
15:48:18 UTC (rev 10103)
@@ -44,12 +44,12 @@
browser.clickAndWait(MANAGE_ARTISTS);
}
- /* @Test(dependsOnMethods = {"createWithDiscsTest"})
+ @Test(dependsOnMethods = {"createWithDiscsTest"})
public void paginationTest()
{
findAndClickArtist("Fairport Convention"); // should be on second page
checkDisc(1, "Liege and Lief", "", "The first folk-rock
album ever made in the UK, this was the only studio recording of the classic line up of
Sandy Denny, Richard Thompson, Dave Swarbick, Ashley Hutchings and Simon Nicol");
- }*/
+ }
@Test(dependsOnMethods = {"createWithDiscsTest"})
public void filterTest()
Modified:
trunk/src/test/ftest/examples/seamdiscs/src/org/jboss/seam/example/seamdiscs/test/selenium/SeleniumSeamDiscsTest.java
===================================================================
---
trunk/src/test/ftest/examples/seamdiscs/src/org/jboss/seam/example/seamdiscs/test/selenium/SeleniumSeamDiscsTest.java 2009-03-02
10:27:17 UTC (rev 10102)
+++
trunk/src/test/ftest/examples/seamdiscs/src/org/jboss/seam/example/seamdiscs/test/selenium/SeleniumSeamDiscsTest.java 2009-03-02
15:48:18 UTC (rev 10103)
@@ -66,7 +66,7 @@
public static String ARTIST_NTH_DISC_YEAR = ARTIST_NTH_DISC +
"/td[3]//input";
public static String ARTIST_NTH_DISC_DETAIL = ARTIST_NTH_DISC + "/td";
public static String ARTISTS_FIRST_ARTIST_LINK =
"xpath=id(\"artists\")//table/tbody/tr/td/table/tbody/tr[2]/td[2]/a";
- public static String ARTISTS_NEXT_PAGE_LINK =
"xpath=id(\"artists\")//td[1]//td[7]/a";
+ public static String ARTISTS_NEXT_PAGE_LINK =
"xpath=id(\"artists\")//td[1]//td[2]//td[5]/a";
public static String ARTIST_TABLE_ROW_BY_NAME =
"xpath=id(\"artists\")//tr[normalize-space(td/a/text())=\"{0}\"]";
// these locators can only be used catenated with ARTIST_TABLE_ROW_BY_NAME
public static String ARTIST_TABLE_ROW_LINK = ARTIST_TABLE_ROW_BY_NAME +
"/td[2]/a";
@@ -76,13 +76,13 @@
public static String CREATE_DISC_BUTTON = "id=addDisc";
public static String DISC_DETAIL_TITLE =
"xpath=id(\"disc\")//tr//tr[2]/td[2]/input";
public static String DISC_DETAIL_RELEASE_DATE =
"xpath=id(\"disc\")//tr//tr[3]/td[2]//input";
- public static String DISC_DETAIL_ARTIST =
"xpath=id(\"disc\")//tr//tr[5]//select";
+ public static String DISC_DETAIL_ARTIST =
"xpath=id(\"disc\")//tr//tr[4]//select";
public static String DISC_DETAIL_DESCRIPTION = "id=description";
public static String DISC_DETAIL_UPDATE = "id=update";
public static String DISC_DETAIL_PERSIST = "id=persist";
public static String DISC_DETAIL_REMOVE = "id=remove";
public static String DISC_DETAIL_CANCEL = "id=cancel";
- public static String DISCS_NEXT_PAGE_LINK =
"xpath=id(\"discs\")//td[1]//td[7]/a";
+ public static String DISCS_NEXT_PAGE_LINK =
"xpath=id(\"discs\")//td[1]//td[2]//td[5]/a";
public static String DISC_TABLE_ROW_BY_NAME =
"xpath=id(\"discs\")//tr[normalize-space(td/a/text())=\"{0}\"]";
// these locators can only be used catenated with DISC_TABLE_ROW_BY_NAME
public static String DISC_TABLE_ROW_LINK = DISC_TABLE_ROW_BY_NAME +
"/td[2]/a";