import Elementary import Foundation import Testing @testable import WebsiteLibrary @Suite("ErrorPage page") struct ErrorPageTests { // MARK: Functional tests @Test func `renders its markup`() { let html = ErrorPage( locale: .init(identifier: "en") ).render() #expect(html.contains("")) #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/error.css")) } }