mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-01-31 11:03:11 +08:00
fix: update e2e testing
This commit is contained in:
@@ -323,7 +323,7 @@ test.describe("Status Page", () => {
|
||||
let rssContent = await rssResponse.text();
|
||||
|
||||
// Verify RSS feed uses status page title as fallback
|
||||
expect(rssContent).toContain(`<title><![CDATA[${statusPageTitle} RSS Feed]]></title>`);
|
||||
expect(rssContent).toContain(`<title>${statusPageTitle} RSS Feed</title>`);
|
||||
|
||||
// Verify RSS link uses the correct domain (not localhost hardcoded)
|
||||
expect(rssContent).toContain("<link>http://");
|
||||
@@ -347,7 +347,7 @@ test.describe("Status Page", () => {
|
||||
rssContent = await rssResponse.text();
|
||||
|
||||
// Verify RSS feed uses custom title
|
||||
expect(rssContent).toContain(`<title><![CDATA[${customRssTitle}]]></title>`);
|
||||
expect(rssContent).toContain(`<title>${customRssTitle}</title>`);
|
||||
|
||||
await testInfo.attach("rss-feed-custom-title.xml", {
|
||||
body: rssContent,
|
||||
|
||||
Reference in New Issue
Block a user