Skip to content

Commit aa942c0

Browse files
committed
fix(milestone): [milestone] 修复测试用例报错的问题
1 parent c874f5b commit aa942c0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

examples/sites/demos/pc/app/milestone/flag-before.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ test('旗子数据来源', async ({ page }) => {
1212
const flagAfterContents = [//, /test7使vui/, /test8/, /test6/]
1313
const flagBeforeContents = [/test1/, //, /test7使vui/, /test8/]
1414
const button = page.getByRole('button').filter({ hasText: '设置flag-before值为true' })
15-
const flagAfterLineColors = ['rgb(245, 34, 45)', 'rgb(245, 34, 45)', 'rgb(126, 211, 33)', 'rgb(25, 25, 25)']
16-
const flagBeforeLineColors = ['rgb(25, 25, 25)', 'rgb(245, 34, 45)', 'rgb(245, 34, 45)', 'rgb(126, 211, 33)']
15+
const flagAfterLineColors = ['rgb(245, 34, 45)', 'rgb(245, 34, 45)', 'rgb(126, 211, 33)', 'rgba(0, 0, 0, 0)']
16+
const flagBeforeLineColors = ['rgba(0, 0, 0, 0)', 'rgb(245, 34, 45)', 'rgb(245, 34, 45)', 'rgb(126, 211, 33)']
1717

1818
for (let i = 0; i < flagCount; i++) {
1919
const { x, y, width, height } = await flags.nth(i).boundingBox()

examples/sites/demos/pc/app/milestone/show-number.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ test('序号显示', async ({ page }) => {
2323
const iconStyles = [
2424
{
2525
'background-color': 'rgb(255, 255, 255)',
26-
'color': 'rgb(25, 25, 25)',
26+
'color': 'rgb(0, 0, 0)',
2727
'box-shadow': 'none'
2828
},
2929
{
3030
'background-color': 'rgb(255, 255, 255)',
31-
'color': 'rgb(25, 25, 25)',
31+
'color': 'rgb(0, 0, 0)',
3232
'box-shadow': 'none'
3333
},
3434
{

examples/sites/demos/pc/app/milestone/solid-style.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ test('实心显示', async ({ page }) => {
2323
const iconStyles = [
2424
{
2525
'background-color': 'rgb(255, 255, 255)',
26-
'color': 'rgb(25, 25, 25)',
26+
'color': 'rgb(0, 0, 0)',
2727
'box-shadow': 'none'
2828
},
2929
{
3030
'background-color': 'rgb(255, 255, 255)',
31-
'color': 'rgb(25, 25, 25)',
31+
'color': 'rgb(0, 0, 0)',
3232
'box-shadow': 'none'
3333
},
3434
{
@@ -98,6 +98,6 @@ test('实心显示', async ({ page }) => {
9898
await button.click()
9999

100100
for (let i = 0; i < 2; i++) {
101-
await expect(nodeIcons.nth(i)).toHaveCSS('background-color', 'rgb(25, 25, 25)')
101+
await expect(nodeIcons.nth(i)).toHaveCSS('background-color', 'rgba(0, 0, 0, 0)')
102102
}
103103
})

0 commit comments

Comments
 (0)