Add tests for plume webserver (#513)
* begin setup front-end test environment with selenium * run migrations before tests * use https for tests
This commit is contained in:
+1
-4
@@ -43,10 +43,7 @@ pub fn create(
|
||||
#[post("/~/<blog>/<slug>/like", rank = 2)]
|
||||
pub fn create_auth(blog: String, slug: String, i18n: I18n) -> Flash<Redirect> {
|
||||
utils::requires_login(
|
||||
&i18n!(
|
||||
i18n.catalog,
|
||||
"To like a post, you need to be logged in"
|
||||
),
|
||||
&i18n!(i18n.catalog, "To like a post, you need to be logged in"),
|
||||
uri!(create: blog = blog, slug = slug),
|
||||
)
|
||||
}
|
||||
|
||||
@@ -43,10 +43,7 @@ pub fn create(
|
||||
#[post("/~/<blog>/<slug>/reshare", rank = 1)]
|
||||
pub fn create_auth(blog: String, slug: String, i18n: I18n) -> Flash<Redirect> {
|
||||
utils::requires_login(
|
||||
&i18n!(
|
||||
i18n.catalog,
|
||||
"To reshare a post, you need to be logged in"
|
||||
),
|
||||
&i18n!(i18n.catalog, "To reshare a post, you need to be logged in"),
|
||||
uri!(create: blog = blog, slug = slug),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user