anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: phac-nml/irida
Issue: ClientsControllerTest failing after hotfix

## Describe the bug
`ClientsControllerTest.testGetAjaxClientList` is failing due to the hotfix lower casing the search terms coming in to the new ant tables.

## Steps to reproduce the problem
What were you doing when you encountered the problem?
1. ran `mvn test`
2. `ClientsControllerTest.testGetAjaxClientList` failed
3. 

## Expected behaviour
`ClientsControllerTest.testGetAjaxClientList` pass


## Additional context
It's a null pointer due to the change to ant design on the clients table.  It looks like no search term is being sent to the tablerequest.

Changed files:
src/test/java/ca/corefacility/bioinformatics/irida/ria/integration/pages/analysis/AnalysesUserPage.java
src/main/java/ca/corefacility/bioinformatics/irida/ria/web/models/tables/TableRequest.java

diff --git a/src/main/java/ca/corefacility/bioinformatics/irida/ria/web/models/tables/TableRequest.java b/src/main/java/ca/corefacility/bioinformatics/irida/ria/web/models/tables/TableRequest.java
index 37382b124d..4e7aafa2d9 100644
--- a/src/main/java/ca/corefacility/bioinformatics/irida/ria/web/models/tables/TableRequest.java
+++ b/src/main/java/ca/corefacility/bioinformatics/irida/ria/web/models/tables/TableRequest.java
@@ -40,18 +40,25 @@ public class TableRequest {
 	}
 
 	public String getSearch() {
-		return search.trim();
+		return search;
 	}
 
+	/**
+	 * Set the search term for the TableRequest.  This method will trim any leading and trailing whitespace.
+	 *
+	 * @param search The search term for the request
+	 */
 	public void setSearch(String search) {
-		this.search = search;
+		if (search != null) {
+			this.search = search.trim();
+		} else {
+			search = null;
+		}
 	}
 
 	/**
-	 * Since we he need an actual {@link Sort} object and cannot pass this from
-	 * the client, we create one from the information fathered from the client
-	 * Direction of sort
-	 * Column (attribute) of sort
+	 * Since we he need an actual {@link Sort} object and cannot pass this from the client, we create one from the
+	 * information fathered from the client Direction of sort Column (attribute) of sort
 	 *
 	 * @return {@link Sort}
 	 */
diff --git a/src/test/java/ca/corefacility/bioinformatics/irida/ria/integration/pages/analysis/AnalysesUserPage.java b/src/test/java/ca/corefacility/bioinformatics/irida/ria/integration/pages/analysis/AnalysesUserPage.java
index 45a50d379c..256a593fd5 100644
--- a/src/test/java/ca/corefacility/bioinformatics/irida/ria/integration/pages/analysis/AnalysesUserPage.java
+++ b/src/test/java/ca/corefacility/bioinformatics/irida/ria/integration/pages/analysis/AnalysesUserPage.java
@@ -58,6 +58,7 @@ public class AnalysesUserPage extends AbstractPage {
 		waitForElementToBeClickable(nameFilterSubmit);
 		nameFilterInput.sendKeys(name);
 		nameFilterSubmit.click();
+		waitForElementInvisible(By.className("t-name-filter"));
 	}
 
 	public void clearNameFilter() {