projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove obsolete loading animation
[Sone.git]
/
src
/
test
/
kotlin
/
net
/
pterodactylus
/
sone
/
web
/
EditProfilePageTest.kt
diff --git
a/src/test/kotlin/net/pterodactylus/sone/web/EditProfilePageTest.kt
b/src/test/kotlin/net/pterodactylus/sone/web/EditProfilePageTest.kt
index
0bdff69
..
0fb6cca
100644
(file)
--- a/
src/test/kotlin/net/pterodactylus/sone/web/EditProfilePageTest.kt
+++ b/
src/test/kotlin/net/pterodactylus/sone/web/EditProfilePageTest.kt
@@
-124,7
+124,7
@@
class EditProfilePageTest : WebPageTest() {
fun `post request with field value saves profile and redirects back to profile edit page`() {
val field = profile.addField("name")
field.value = "old"
fun `post request with field value saves profile and redirects back to profile edit page`() {
val field = profile.addField("name")
field.value = "old"
- verifySingleFieldCanBeChanged("field-${field.id}", "new") { profile.getFieldByName("name").value }
+ verifySingleFieldCanBeChanged("field-${field.id}", "new") { profile.getFieldByName("name")
!!
.value }
}
@Test
}
@Test
@@
-132,7
+132,7
@@
class EditProfilePageTest : WebPageTest() {
val field = profile.addField("name")
field.value = "old"
addHttpRequestHeader("Host", "www.te.st")
val field = profile.addField("name")
field.value = "old"
addHttpRequestHeader("Host", "www.te.st")
- verifySingleFieldCanBeChanged("field-${field.id}", "http://www.te.st/KSK@GPL.txt", "KSK@GPL.txt") { profile.getFieldByName("name").value }
+ verifySingleFieldCanBeChanged("field-${field.id}", "http://www.te.st/KSK@GPL.txt", "KSK@GPL.txt") { profile.getFieldByName("name")
!!
.value }
}
@Test
}
@Test
@@
-175,7
+175,7
@@
class EditProfilePageTest : WebPageTest() {
verify(currentSone).profile = profile
}
}
verify(currentSone).profile = profile
}
}
-
+
@Test
fun `moving an invalid field up redirects to the invalid page`() {
request("", POST)
@Test
fun `moving an invalid field up redirects to the invalid page`() {
request("", POST)