From 0cd1f6e6bee478436c537785c37dbe4204bdb04d Mon Sep 17 00:00:00 2001 From: BryceLTaylor Date: Fri, 23 Oct 2020 14:00:11 -0400 Subject: [PATCH] Add class to searchbar for automated tests --- src/components/navigation/www/navigation.jsx | 1 + test/integration/navbar.test.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/navigation/www/navigation.jsx b/src/components/navigation/www/navigation.jsx index 39e69c242..0f25c79da 100644 --- a/src/components/navigation/www/navigation.jsx +++ b/src/components/navigation/www/navigation.jsx @@ -135,6 +135,7 @@ class Navigation extends React.Component { /> { }); test('Search Bar', async () => { - let searchBar = await findByXpath('//input[@id="frc-q-1088"]'); + let searchBar = await findByXpath('//div[contains(@class, "search-input")]/div/input'); await searchBar.sendKeys('cat'); await driver.sleep(500); // without it sends an empty string on submit await searchBar.submit();