Skip to content

Commit f57b836

Browse files
committed
fix: e2e
1 parent df59c4d commit f57b836

File tree

8 files changed

+35
-8
lines changed

8 files changed

+35
-8
lines changed

e2e/fallback/basic.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import { getText, url } from '../helper'
66
page.on('console', msg => {
77
if (msg.type() === 'warning') {
88
const text = msg.text()
9-
if (!text.match(/^\[intlify\] Legacy API mode has been/)) {
9+
if (
10+
!text.match(/^\[intlify\] Legacy API mode has been/) &&
11+
!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)
12+
) {
1013
warnings.push(msg.text())
1114
}
1215
}

e2e/fallback/default-format.spec.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@ import { getText, url } from '../helper'
55
beforeAll(async () => {
66
page.on('console', msg => {
77
if (msg.type() === 'warning') {
8-
warnings.push(msg.text())
8+
const text = msg.text()
9+
if (
10+
!text.match(/^\[intlify\] Legacy API mode has been/) &&
11+
!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)
12+
) {
13+
warnings.push(msg.text())
14+
}
915
}
1016
})
1117
await page.goto(url(`/examples/${pattern}/fallback/default-format.html`))

e2e/fallback/format.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import { getText, url } from '../helper'
66
page.on('console', msg => {
77
if (msg.type() === 'warning') {
88
const text = msg.text()
9-
if (!text.match(/^\[intlify\] Legacy API mode has been/)) {
9+
if (
10+
!text.match(/^\[intlify\] Legacy API mode has been/) &&
11+
!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)
12+
) {
1013
warnings.push(msg.text())
1114
}
1215
}

e2e/fallback/option.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import { getText, url } from '../helper'
66
page.on('console', msg => {
77
if (msg.type() === 'warning') {
88
const text = msg.text()
9-
if (!text.match(/^\[intlify\] Legacy API mode has been/)) {
9+
if (
10+
!text.match(/^\[intlify\] Legacy API mode has been/) &&
11+
!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)
12+
) {
1013
warnings.push(msg.text())
1114
}
1215
}

e2e/fallback/suppress.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import { getText, url } from '../helper'
66
page.on('console', msg => {
77
if (msg.type() === 'warning') {
88
const text = msg.text()
9-
if (!text.match(/^\[intlify\] Legacy API mode has been/)) {
9+
if (
10+
!text.match(/^\[intlify\] Legacy API mode has been/) &&
11+
!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)
12+
) {
1013
warnings.push(msg.text())
1114
}
1215
}

e2e/missing/handler.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import { getText, url } from '../helper'
66
page.on('console', msg => {
77
if (msg.type() === 'warning') {
88
const text = msg.text()
9-
if (!text.match(/^\[intlify\] Legacy API mode has been/)) {
9+
if (
10+
!text.match(/^\[intlify\] Legacy API mode has been/) &&
11+
!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)
12+
) {
1013
warnings.push(msg.text())
1114
}
1215
}

e2e/missing/option.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import { getText, url } from '../helper'
66
page.on('console', msg => {
77
if (msg.type() === 'warning') {
88
const text = msg.text()
9-
if (!text.match(/^\[intlify\] Legacy API mode has been/)) {
9+
if (
10+
!text.match(/^\[intlify\] Legacy API mode has been/) &&
11+
!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)
12+
) {
1013
warnings.push(msg.text())
1114
}
1215
}

e2e/missing/suppress.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import { getText, url } from '../helper'
66
page.on('console', msg => {
77
if (msg.type() === 'warning') {
88
const text = msg.text()
9-
if (!text.match(/^\[intlify\] Legacy API mode has been/)) {
9+
if (
10+
!text.match(/^\[intlify\] Legacy API mode has been/) &&
11+
!text.match(/^\[intlify\] 'v-t' has been deprecated in v11/)
12+
) {
1013
warnings.push(msg.text())
1114
}
1215
}

0 commit comments

Comments
 (0)