App: / leads to the back office; lannadesk.com is the website now
lannadesk.com is Lanna Desk's own static website (B4L/lannadesk-web, cnx-network-clan PR #163, deployed), and this app is app.lannadesk.com. The landing page the app served at `/` goes (templates/landing.html, static/landing.css): `/` now redirects to the back office, /desk. The logo files in static/brand/ stay, the website copies them. The public URL in README, PLAN, config.rs, the agreement PDF's comment and the release notes is app.lannadesk.com. Checks: fmt, clippy, 109 unit and 57 integration tests (`/` leads to /desk, signed in or not).
This commit is contained in:
1 parent
eafe918bcc
commit
39980694f6
11 files changed
+29
-397
No files matched your search
+3
-13
@@ -47,20 +47,10 @@ async fn the_gate_sends_people_to_the_login(pool: PgPool) {
|
||||
"{t}"
|
||||
);
|
||||
assert!(t.contains("Sign out of id.cnx.network"), "{t}");
|
||||
// the public page is open; the back office behind it is not
|
||||
// `/` leads to the back office, which asks for the sign-in; the public
|
||||
// website is lannadesk.com, a site of its own
|
||||
let r = app.get("/").await;
|
||||
assert_eq!(r.status, StatusCode::OK);
|
||||
let t = r.text();
|
||||
assert!(
|
||||
t.contains("Lanna Desk") && t.contains("mailto:contact@lannadesk.com"),
|
||||
"{t}"
|
||||
);
|
||||
assert!(
|
||||
t.contains("href=\"/desk\" id=\"staff\">Staff sign-in"),
|
||||
"{t}"
|
||||
);
|
||||
assert!(!t.contains("Deadlines") && !t.contains("MUSTERMANN"), "{t}");
|
||||
assert_eq!(app.get("/static/landing.css").await.status, StatusCode::OK);
|
||||
assert_eq!(r.location(), "/desk");
|
||||
assert_eq!(
|
||||
app.get("/static/brand/lannadesk-logo-dark.svg")
|
||||
.await
|
||||
|
||||
Reference in new issue
Block a user