aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/java
diff options
context:
space:
mode:
authormrfoxygmfr <mrfoxygmfr@sch9.ru>2025-05-01 10:24:37 +0300
committermrfoxygmfr <mrfoxygmfr@sch9.ru>2025-05-01 10:24:37 +0300
commit16bf1448e478a207584faf8fd979741b65094030 (patch)
treefcdd659ec46cfac902dfb0820c25f7e9420160b2 /src/test/java
parent32abde013d2f103ddefae167c2b459b1b024f395 (diff)
feat(test): add selenium for http tests
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/ru/mrfoxygmfr/warehouse_accounting/http/PartnersControllerTest.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/java/ru/mrfoxygmfr/warehouse_accounting/http/PartnersControllerTest.java b/src/test/java/ru/mrfoxygmfr/warehouse_accounting/http/PartnersControllerTest.java
new file mode 100644
index 0000000..0cb64bb
--- /dev/null
+++ b/src/test/java/ru/mrfoxygmfr/warehouse_accounting/http/PartnersControllerTest.java
@@ -0,0 +1,21 @@
+package ru.mrfoxygmfr.warehouse_accounting.http;
+
+import org.junit.jupiter.api.Test;
+import org.openqa.selenium.*;
+import org.openqa.selenium.chrome.ChromeDriver;
+
+import static org.junit.jupiter.api.Assertions.*;
+
+public class PartnersControllerTest {
+ private final String srcURL = "http://localhost:8080/";
+ private final String title = "Система складского учета";
+
+ @Test
+ void PartnersPageTest() {
+ ChromeDriver driver = new ChromeDriver();
+ driver.get(srcURL);
+ assertEquals(title, driver.getTitle());
+ driver.quit();
+ }
+}
+