aboutsummaryrefslogtreecommitdiff
path: root/app/src/test/kotlin/com/pitchedapps
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2018-09-27 20:49:45 -0400
committerAllan Wang <me@allanwang.ca>2018-09-27 20:49:45 -0400
commit857fe0a28ccb5b8f7f3caef4ecd477596fe2468c (patch)
tree2ab785f2c5856cee890e8fa1aa2312341a047c86 /app/src/test/kotlin/com/pitchedapps
parent2bc366f8f4501a93d773c8a6d8ad103d05cce08d (diff)
downloadfrost-857fe0a28ccb5b8f7f3caef4ecd477596fe2468c.tar.gz
frost-857fe0a28ccb5b8f7f3caef4ecd477596fe2468c.tar.bz2
frost-857fe0a28ccb5b8f7f3caef4ecd477596fe2468c.zip
Add tests and move header hider to css
Diffstat (limited to 'app/src/test/kotlin/com/pitchedapps')
-rw-r--r--app/src/test/kotlin/com/pitchedapps/frost/facebook/FbDomTest.kt26
1 files changed, 26 insertions, 0 deletions
diff --git a/app/src/test/kotlin/com/pitchedapps/frost/facebook/FbDomTest.kt b/app/src/test/kotlin/com/pitchedapps/frost/facebook/FbDomTest.kt
new file mode 100644
index 00000000..ce748907
--- /dev/null
+++ b/app/src/test/kotlin/com/pitchedapps/frost/facebook/FbDomTest.kt
@@ -0,0 +1,26 @@
+package com.pitchedapps.frost.facebook
+
+import com.pitchedapps.frost.internal.authDependent
+import com.pitchedapps.frost.internal.testJsoup
+import org.junit.BeforeClass
+import org.junit.Test
+import kotlin.test.assertNotNull
+
+class FbDomTest {
+
+ companion object {
+ @BeforeClass
+ @JvmStatic
+ fun before() {
+ authDependent()
+ }
+ }
+
+ @Test
+ fun checkHeaders() {
+ val doc = testJsoup(FB_URL_BASE)
+ assertNotNull(doc.getElementById("header"))
+ assertNotNull(doc.getElementById("mJewelNav"))
+ }
+
+} \ No newline at end of file