Try again (last one worked!) without the screenshot & highlight, just the better selector everywhere

This commit is contained in:
2023-05-08 10:25:18 -05:00
parent ce6aa31cfb
commit e4d6ba79ed

View File

@ -29,7 +29,6 @@ import com.kingsrook.qqq.materialdashboard.lib.javalin.CapturedContext;
import com.kingsrook.qqq.materialdashboard.lib.javalin.QSeleniumJavalin; import com.kingsrook.qqq.materialdashboard.lib.javalin.QSeleniumJavalin;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
import org.openqa.selenium.By; import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import static com.kingsrook.qqq.materialdashboard.tests.QueryScreenTest.addQueryFilterInput; import static com.kingsrook.qqq.materialdashboard.tests.QueryScreenTest.addQueryFilterInput;
import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.assertTrue;
@ -159,12 +158,7 @@ public class SavedFiltersTest extends QBaseSeleniumTest
////////////////////////////// //////////////////////////////
// click into a view screen // // click into a view screen //
////////////////////////////// //////////////////////////////
qSeleniumLib.takeScreenshotToFile("before-johnny-click");
WebElement webElement = qSeleniumLib.waitForSelectorContaining("DIV.MuiDataGrid-cell", "jdoe@kingsrook.com");
qSeleniumLib.highlightElement(webElement);
qSeleniumLib.takeScreenshotToFile("after-johnny-highlight");
qSeleniumLib.waitForSelectorContaining("DIV.MuiDataGrid-cell", "jdoe@kingsrook.com").click(); qSeleniumLib.waitForSelectorContaining("DIV.MuiDataGrid-cell", "jdoe@kingsrook.com").click();
qSeleniumLib.takeScreenshotToFile("after-johnny-click");
qSeleniumLib.waitForSelectorContaining("H5", "Viewing Person: John Doe"); qSeleniumLib.waitForSelectorContaining("H5", "Viewing Person: John Doe");
///////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////