2026-06-28 05:07:19 +00:00
|
|
|
import Elementary
|
|
|
|
|
import Testing
|
|
|
|
|
|
|
|
|
|
@testable import WebsiteCore
|
|
|
|
|
|
|
|
|
|
@Suite("ErrorPage page")
|
|
|
|
|
struct ErrorPageTests {
|
|
|
|
|
|
|
|
|
|
// MARK: Functional tests
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
func `renders its markup`() {
|
|
|
|
|
let html = ErrorPage().render()
|
|
|
|
|
|
|
|
|
|
#expect(html.contains("<!DOCTYPE html>"))
|
|
|
|
|
#expect(html.contains("Page Not Found"))
|
|
|
|
|
#expect(html.contains("does not exist"))
|
2026-06-28 14:18:04 +00:00
|
|
|
#expect(html.contains("/css/error.css"))
|
2026-06-28 05:07:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|