Skip to content
Snippets Groups Projects
Commit e38d72a6 authored by Manuel Leduc's avatar Manuel Leduc
Browse files

[Misc] Update since annotations on xwiki-platform-livedata-test

Minor formatting fix in addition.
parent 6fc53913
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,7 @@
*
* @version $Id$
* @since 13.4RC1
* @since 12.10.9
*/
@UITest
class AllITs
......@@ -36,5 +37,5 @@ class AllITs
@DisplayName("Live Data Tests")
class NestedLiveDataIT extends LiveDataIT
{
}
}
}
......@@ -189,6 +189,9 @@ void livedataLivetableTableLayout(TestUtils testUtils, TestReference testReferen
containsInAnyOrder(FOOTNOTES_PROPERTY_NOT_VIEWABLE, FOOTNOTE_COMPUTED_TITLE));
}
/**
* @since 12.10.9
*/
@Test
@Order(2)
void livedataLivetableTableLayoutResultPage(TestUtils testUtils, TestReference testReference) throws Exception
......
......@@ -46,6 +46,7 @@ public class LiveDataElement extends BaseElement
* Default constructor. Initializes a Live Data page object by its id.
*
* @param id the live data id
* @since 12.10.9
*/
public LiveDataElement(String id)
{
......@@ -55,6 +56,7 @@ public LiveDataElement(String id)
/**
* @return a table layout page object for the live data
* @since 12.10.9
*/
public TableLayoutElement getTableLayout()
{
......
......@@ -140,6 +140,7 @@ public void describeTo(Description description)
* Default constructor. Initializes a live data table layout page object.
*
* @param liveDataId the live data id
* @since 12.10.9
*/
public TableLayoutElement(String liveDataId)
{
......@@ -153,6 +154,7 @@ public TableLayoutElement(String liveDataId)
* @param columnLabel a column label (for instance {@code Title})
* @param value the value to be found in the column
* @see #assertRow(String, Matcher)
* @since 12.10.9
*/
public void assertRow(String columnLabel, String value)
{
......@@ -167,6 +169,7 @@ public void assertRow(String columnLabel, String value)
* @see #assertRow(String, String)
* @since 13.5RC1
* @since 13.4.1
* @since 12.10.9
*/
public void assertRow(String columnLabel, Matcher<Iterable<? super WebElement>> matcher)
{
......@@ -190,6 +193,7 @@ public void assertCellWithLink(String columnName, String text, String link)
* content, see {@link #waitUntilReady(boolean)}.
*
* @see #waitUntilReady(boolean)
* @since 12.10.9
*/
public void waitUntilReady()
{
......@@ -202,6 +206,7 @@ public void waitUntilReady()
* @param expectRows when {@code true} waits for rows to be displayed and loaded, when {@code false} continue
* without waiting for the content
* @see #waitUntilReady()
* @since 12.10.9
*/
public void waitUntilReady(boolean expectRows)
{
......@@ -330,6 +335,7 @@ public void filterColumn(String columnLabel, String content, boolean wait)
/**
* @return the number of rows currently displayed in the live data
* @since 12.10.9
*/
public int countRows()
{
......@@ -422,6 +428,7 @@ public WebElement findElementInRow(int rowNumber, By by)
* @return a matcher instance
* @since 13.5RC1
* @since 13.4.1
* @since 12.10.9
*/
public Matcher<WebElement> getWebElementTextMatcher(String value)
{
......@@ -443,7 +450,7 @@ public Matcher<WebElement> getWebElementTextMatcher(String value)
public Matcher<WebElement> getWebElementCellWithLinkMatcher(String text, String link)
{
return new CellWithLinkMatcher(text, link);
}
}
/**
* Returns the column index of the given column. The indexes start at {@code 1}, corresponding to the leftest
......@@ -531,8 +538,8 @@ private List<WebElement> getCellsByColumnIndex(int columnIndex)
/**
* Does the steps for the edition of a cell, until the {@code newValue} is set on the requested field. Then call an
* {@code userAction} (for instance a click outside of the cell, or pressing escape). The {@code userAction} is
* expected to switch the Live Data back to the view mode (i.e., not cells are edited). Finally,
* waits for the result of the user action to be completed before continuing.
* expected to switch the Live Data back to the view mode (i.e., not cells are edited). Finally, waits for the
* result of the user action to be completed before continuing.
*
* @param columnLabel the label of the column
* @param rowNumber the number of the row to update (the first line is number 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment