fix(h5): add comma after brand name on splash and photo guide

This commit is contained in:
xsl
2026-10-13 20:29:40 +08:00
parent 6acc541cd8
commit fc711e3b1c
3 changed files with 8 additions and 7 deletions
+2 -1
View File
@@ -17,9 +17,10 @@ try {
assert.match(await brand.getAttribute('aria-label'), /^1'me/);
await page.waitForFunction(() => [...document.querySelectorAll('#s-splash .splash-slogan img')].every(i => i.complete && i.naturalWidth));
assert.equal(await page.locator('#s-splash .splash-slogan-brand').isVisible(), true);
assert.equal(await page.locator('#s-splash .splash-slogan-brand').textContent(), "1'me");
assert.equal(await page.locator('#s-splash .splash-slogan-brand').textContent(), "1'me,");
assert.equal(await page.locator('#s-splash .splash-slogan-brand').evaluate(el => getComputedStyle(el).fontWeight), '400');
for (const root of ['#s-splash', '#p-photoguide']) {
assert.equal(await page.locator(root + ' .splash-slogan-brand').textContent(), "1'me,");
const fonts = await page.locator(root + ' .splash-slogan').evaluate(el => {
return ['.splash-slogan-brand', '.splash-slogan-english'].map(selector => {
const s = getComputedStyle(el.querySelector(selector));