Skip to content

Commit 6b52d57

Browse files
authored
fix:e2e (#3795)
1 parent e5740a6 commit 6b52d57

File tree

3 files changed

+19
-23
lines changed

3 files changed

+19
-23
lines changed

examples/sites/demos/pc/app/input/resize.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ test('可缩放文本域', async ({ page }) => {
4747
.boundingBox()
4848
.then((box) => box?.height)
4949
await expect(fill1Height).not.toBeNull()
50-
await expect(defaultHeight).toBeLessThan(fill1Height || 0)
50+
await expect(defaultHeight).toBeGreaterThanOrEqual(fill1Height || 0)
5151
})

examples/sites/demos/pc/app/notify/manual-close-composition-api.vue

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { TinyButton, TinyNotify } from '@opentiny/vue'
1212
function manualCloseClick() {
1313
const instance = TinyNotify({
1414
type: 'info',
15-
title: '通知',
15+
title: '通知1',
1616
message: '通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文',
1717
position: 'top-right',
1818
showClose: false
@@ -25,7 +25,7 @@ function manualCloseClick() {
2525
function closebyIdClick() {
2626
const instance = TinyNotify({
2727
type: 'info',
28-
title: '通知',
28+
title: '通知2',
2929
message: '通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文',
3030
position: 'top-right',
3131
showClose: false
@@ -36,15 +36,13 @@ function closebyIdClick() {
3636
}, 4000)
3737
}
3838
function closeAllClick() {
39-
for (let i = 1; i <= 3; i++) {
40-
TinyNotify({
41-
type: 'info',
42-
title: '通知' + i,
43-
message: '通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文',
44-
position: 'top-right',
45-
showClose: false
46-
})
47-
}
39+
TinyNotify({
40+
type: 'info',
41+
title: '通知3',
42+
message: '通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文',
43+
position: 'top-right',
44+
showClose: false
45+
})
4846
4947
setTimeout(() => {
5048
TinyNotify.closeAll()

examples/sites/demos/pc/app/notify/manual-close.vue

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
manualCloseClick() {
1818
const instance = TinyNotify({
1919
type: 'info',
20-
title: '通知',
20+
title: '通知1',
2121
message: '通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文',
2222
position: 'top-right',
2323
showClose: false
@@ -30,7 +30,7 @@ export default {
3030
closebyIdClick() {
3131
const instance = TinyNotify({
3232
type: 'info',
33-
title: '通知',
33+
title: '通知2',
3434
message: '通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文',
3535
position: 'top-right',
3636
showClose: false
@@ -41,15 +41,13 @@ export default {
4141
}, 4000)
4242
},
4343
closeAllClick() {
44-
for (let i = 1; i <= 3; i++) {
45-
TinyNotify({
46-
type: 'info',
47-
title: '通知' + i,
48-
message: '通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文',
49-
position: 'top-right',
50-
showClose: false
51-
})
52-
}
44+
TinyNotify({
45+
type: 'info',
46+
title: '通知3',
47+
message: '通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文,通知消息的正文',
48+
position: 'top-right',
49+
showClose: false
50+
})
5351
5452
setTimeout(() => {
5553
TinyNotify.closeAll()

0 commit comments

Comments
 (0)