Files
ccn/Services/Website/Tests/Library/Cases/Internal/Pages/ErrorPageTests.swift
T

26 lines
602 B
Swift
Raw Normal View History

import Elementary
import Foundation
import Testing
@testable import WebsiteCore
@Suite("ErrorPage page")
struct ErrorPageTests {
// MARK: Functional tests
@Test
func `renders its markup`() {
let html = ErrorPage(
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."))
2026-06-28 14:18:04 +00:00
#expect(html.contains("/css/error.css"))
}
}