Skip to content

Commit

Permalink
test(cascader): fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
shenjunjian committed Sep 21, 2024
1 parent 3ea7651 commit d7649c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,4 @@ test('多选选择任意一级选项', async ({ page }) => {
await page.getByText('指南 /安装指南 /开发 /引入组件').click()
await page.getByRole('menuitem', { name: '开发' }).locator('span').nth(1).click()
await page.getByRole('menuitem', { name: '安装' }).click()
const kaifa = page.getByRole('menuitem', { name: '开发' }).locator('span').nth(1)
const anzhuang = page.getByRole('menuitem', { name: '安装' }).locator('span').nth(1)
await expect(kaifa).toHaveCSS('background-color', 'rgb(94, 124, 224)')
await expect(anzhuang).toHaveCSS('background-color', 'rgb(94, 124, 224)')
})
3 changes: 1 addition & 2 deletions examples/sites/demos/pc/app/cascader/size.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ test('size', async ({ page }) => {

await expect(page.locator('.tiny-cascader.tiny-cascader--mini input')).toHaveCSS('height', '24px')

await expect(page.locator('.tiny-cascader.tiny-cascader--small input')).toHaveCSS('height', '32px')
await expect(page.locator('.tiny-cascader.tiny-cascader--small input')).toHaveCSS('height', '28px')

await expect(page.locator('.tiny-cascader.tiny-cascader--medium input')).toHaveCSS('height', '40px')

})

0 comments on commit d7649c2

Please sign in to comment.