Renamed the Error page in the Website library target as NotFound.

This commit is contained in:
2026-08-01 23:06:22 +02:00
parent b680ae0689
commit 2c571233bc
4 changed files with 44 additions and 44 deletions
@@ -0,0 +1,31 @@
import Elementary
import Foundation
import Testing
@testable import WebsiteLibrary
@Suite(
"NotFoundPage page",
.tags(.page)
)
struct NotFoundPageTests {
// MARK: Functional tests
@Test
func `renders its markup`() {
let html = NotFoundPage(
locale: .init(identifier: "en")
).render()
#expect(html.contains("<!DOCTYPE html>"))
#expect(html.contains(#"lang="en""#))
#expect(html.contains("Page Not Found"))
#expect(html.contains("Sorry, but the page you were trying to view does not exist."))
#expect(html.contains("/css/shared.css"))
#expect(html.contains("/css/error.css"))
#expect(html.contains("/js/error.js"))
#expect(html.contains("/js/shared.js"))
}
}