From f18dc6fe57711078c772d631cd19b4ccbc7cfbd6 Mon Sep 17 00:00:00 2001
From: wuyiping0628 <1106773985@qq.com>
Date: Mon, 10 Mar 2025 00:04:34 -0700
Subject: [PATCH 2/2] fix(theme): [card,qr-code,skeleton] add dark theme
---
examples/sites/demos/pc/app/qr-code/basic-usage.spec.ts | 2 +-
examples/sites/demos/pc/app/qr-code/icon.spec.ts | 4 ++--
examples/sites/demos/pc/app/qr-code/level.spec.ts | 2 +-
examples/sites/demos/pc/app/qr-code/style.spec.ts | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/examples/sites/demos/pc/app/qr-code/basic-usage.spec.ts b/examples/sites/demos/pc/app/qr-code/basic-usage.spec.ts
index 69f67795bf..50b58bdcf2 100644
--- a/examples/sites/demos/pc/app/qr-code/basic-usage.spec.ts
+++ b/examples/sites/demos/pc/app/qr-code/basic-usage.spec.ts
@@ -4,6 +4,6 @@ test('基本用法', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('qr-code#basic-usage')
- const canvas = page.locator('.tiny-qr-code-container canvas')
+ const canvas = page.locator('.tiny-qr-code canvas')
await expect(canvas).toBeVisible()
})
diff --git a/examples/sites/demos/pc/app/qr-code/icon.spec.ts b/examples/sites/demos/pc/app/qr-code/icon.spec.ts
index 8bc04280fe..06c9c1bd68 100644
--- a/examples/sites/demos/pc/app/qr-code/icon.spec.ts
+++ b/examples/sites/demos/pc/app/qr-code/icon.spec.ts
@@ -4,8 +4,8 @@ test('自定义 icon', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('qr-code#icon')
- const canvas = page.locator('.tiny-qr-code-container canvas')
- const canvasImg = page.locator('.tiny-qr-code-container .mask-icon img')
+ const canvas = page.locator('.tiny-qr-code canvas')
+ const canvasImg = page.locator('.tiny-qr-code .mask-icon img')
await expect(canvas).toBeVisible()
await expect(canvasImg).toBeVisible()
})
diff --git a/examples/sites/demos/pc/app/qr-code/level.spec.ts b/examples/sites/demos/pc/app/qr-code/level.spec.ts
index 73df979f2c..4a4fdf731a 100644
--- a/examples/sites/demos/pc/app/qr-code/level.spec.ts
+++ b/examples/sites/demos/pc/app/qr-code/level.spec.ts
@@ -4,7 +4,7 @@ test('二维码纠错等级', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('qr-code#level')
- const canvas = page.locator('.tiny-qr-code-container canvas')
+ const canvas = page.locator('.tiny-qr-code canvas')
await expect(canvas).toBeVisible()
const button = page.locator('.tiny-radio-button--small')
diff --git a/examples/sites/demos/pc/app/qr-code/style.spec.ts b/examples/sites/demos/pc/app/qr-code/style.spec.ts
index e2e1563547..05055e5332 100644
--- a/examples/sites/demos/pc/app/qr-code/style.spec.ts
+++ b/examples/sites/demos/pc/app/qr-code/style.spec.ts
@@ -4,6 +4,6 @@ test('自定义样式', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('qr-code#style')
- const canvas = page.locator('.tiny-qr-code-container canvas')
+ const canvas = page.locator('.tiny-qr-code canvas')
await expect(canvas).toBeVisible()
})