Skip to content

Commit 5ec12e2

Browse files
committed
test(seo): match the visible date attribute case-insensitively
1 parent d6e1969 commit 5ec12e2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎apps/sim/scripts/test-landing-seo-e2e.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,10 @@ async function run() {
198198
const webPage = jsonLdNodes(body).find((node) => node['@type'] === 'WebPage')
199199
assert.equal(webPage?.dateModified, integration.updatedAt)
200200
assert(
201-
body.includes(`dateTime="${integration.updatedAt}"`),
201+
// HTML attribute names are case-insensitive; React emits `dateTime`, parsers fold it.
202+
body
203+
.toLowerCase()
204+
.includes(`datetime="${integration.updatedAt}"`),
202205
'Visible last-updated date differs'
203206
)
204207
})

0 commit comments

Comments
 (0)