2026-06-28 05:07:19 +00:00
|
|
|
import Elementary
|
|
|
|
|
import Testing
|
|
|
|
|
|
|
|
|
|
@testable import WebsiteCore
|
|
|
|
|
|
|
|
|
|
@Suite("IndexPage page")
|
|
|
|
|
struct IndexPageTests {
|
|
|
|
|
|
|
|
|
|
// MARK: Functional tests
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
func `renders its markup`() {
|
|
|
|
|
let html = IndexPage().render()
|
|
|
|
|
|
|
|
|
|
#expect(html.contains("<!DOCTYPE html>"))
|
2026-06-28 14:18:04 +00:00
|
|
|
#expect(html.contains("/css/style.css"))
|
|
|
|
|
#expect(html.contains("/favicon.ico"))
|
|
|
|
|
#expect(html.contains("/icon.svg"))
|
|
|
|
|
#expect(html.contains("/icon.png"))
|
|
|
|
|
#expect(html.contains("/site.webmanifest"))
|
2026-06-28 05:07:19 +00:00
|
|
|
#expect(html.contains("Hello world!"))
|
2026-06-28 14:18:04 +00:00
|
|
|
#expect(html.contains("/js/app.js"))
|
2026-06-28 05:07:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|