fix(h5): rename guest entry button to 游客登陆
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@
|
||||
<img class="login-brand" src="assets/img/ui-20261009/brand-login.png" alt="1’me 以我">
|
||||
<div class="login-bottom">
|
||||
<button class="login-button login-wechat" data-action="login-wechat"><img src="assets/img/ui-20261009/icon-wechat.png" alt="">微信登录</button>
|
||||
<button class="login-button login-browser" data-action="guest-experience"><img src="assets/img/ui-20261009/icon-guest.png" alt="">免登录体验</button>
|
||||
<button class="login-button login-browser" data-action="guest-experience"><img src="assets/img/ui-20261009/icon-guest.png" alt="">游客登陆</button>
|
||||
<label class="login-consent"><input type="checkbox" id="login-consent"><span>同意<button type="button" data-action="open-policy">用户协议、隐私政策和儿童保护政策</button></span></label>
|
||||
<p class="login-message" id="login-message" role="status">正在检查登录状态…</p>
|
||||
</div>
|
||||
|
||||
@@ -46,7 +46,7 @@ try {
|
||||
await page.goto(base); await page.waitForLoadState('networkidle');
|
||||
assert.equal(await page.title(), "1'me肌肤状态检测");
|
||||
assert.equal(await page.locator('meta[property="og:title"]').getAttribute('content'), "1'me肌肤状态检测");
|
||||
assert.equal((await page.locator('[data-action="guest-experience"]').textContent()).trim(), '免登录体验');
|
||||
assert.equal((await page.locator('[data-action="guest-experience"]').textContent()).trim(), '游客登陆');
|
||||
assert(!requests.some(p => /scan-(base|face)|\.woff2$|faceapi/.test(p)), 'no heavy/scanning entry requests');
|
||||
await page.click('[data-action="guest-experience"]');
|
||||
await page.waitForSelector('#s-splash.active');
|
||||
|
||||
@@ -63,6 +63,7 @@ try {
|
||||
}
|
||||
if (artifacts) { fs.mkdirSync(artifacts, { recursive: true }); await screenshot('guest-entry'); }
|
||||
assert.equal(await page.locator('#login-consent').isChecked(), false);
|
||||
assert.equal((await page.locator('[data-action="guest-experience"]').textContent()).trim(), '游客登陆');
|
||||
await page.click('[data-action="guest-experience"]');
|
||||
await page.waitForSelector('#s-splash.active');
|
||||
assert.equal(await page.locator('#p-login-success.show').count(), 0, 'guest entry never shows login success');
|
||||
|
||||
Reference in New Issue
Block a user