test: prefer enUS (#8144)

This commit is contained in:
neverland
2021-02-12 20:06:11 +08:00
committed by GitHub
parent eaf01090cc
commit cb2c2b9b68
10 changed files with 67 additions and 66 deletions
@@ -12,14 +12,14 @@ exports[`should render AddressEdit correctly 1`] = `
<div class="van-cell van-field">
<div class="van-cell__title van-field__label">
<span>
姓名
Name
</span>
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<input type="text"
class="van-field__control"
placeholder="收货人姓名"
placeholder="Name"
>
</div>
</div>
@@ -27,14 +27,14 @@ exports[`should render AddressEdit correctly 1`] = `
<div class="van-cell van-field">
<div class="van-cell__title van-field__label">
<span>
电话
Phone
</span>
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<input type="tel"
class="van-field__control"
placeholder="收货人手机号"
placeholder="Phone"
>
</div>
</div>
@@ -45,7 +45,7 @@ exports[`should render AddressEdit correctly 1`] = `
>
<div class="van-cell__title van-field__label">
<span>
地区
Area
</span>
</div>
<div class="van-cell__value van-field__value">
@@ -53,7 +53,7 @@ exports[`should render AddressEdit correctly 1`] = `
<input type="text"
class="van-field__control"
readonly
placeholder="选择省 / 市 / 区"
placeholder="Area"
>
<div class="van-field__right-icon">
<i class="van-badge__wrapper van-icon van-icon-arrow">
@@ -65,14 +65,14 @@ exports[`should render AddressEdit correctly 1`] = `
<div class="van-cell van-field van-address-edit-detail">
<div class="van-cell__title van-field__label">
<span>
详细地址
Address
</span>
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<textarea rows="1"
class="van-field__control"
placeholder="街道门牌、楼层房间号等信息"
placeholder="Address"
>
</textarea>
</div>
@@ -85,7 +85,7 @@ exports[`should render AddressEdit correctly 1`] = `
>
<div class="van-button__content">
<span class="van-button__text">
保存
Save
</span>
</div>
</button>
@@ -99,14 +99,14 @@ exports[`should render AddressEdit with props correctly 1`] = `
<div class="van-cell van-field">
<div class="van-cell__title van-field__label">
<span>
姓名
Name
</span>
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<input type="text"
class="van-field__control"
placeholder="收货人姓名"
placeholder="Name"
>
</div>
</div>
@@ -114,14 +114,14 @@ exports[`should render AddressEdit with props correctly 1`] = `
<div class="van-cell van-field">
<div class="van-cell__title van-field__label">
<span>
电话
Phone
</span>
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<input type="tel"
class="van-field__control"
placeholder="收货人手机号"
placeholder="Phone"
>
</div>
</div>
@@ -132,7 +132,7 @@ exports[`should render AddressEdit with props correctly 1`] = `
>
<div class="van-cell__title van-field__label">
<span>
地区
Area
</span>
</div>
<div class="van-cell__value van-field__value">
@@ -140,7 +140,7 @@ exports[`should render AddressEdit with props correctly 1`] = `
<input type="text"
class="van-field__control"
readonly
placeholder="选择省 / 市 / 区"
placeholder="Area"
>
<div class="van-field__right-icon">
<i class="van-badge__wrapper van-icon van-icon-arrow">
@@ -152,14 +152,14 @@ exports[`should render AddressEdit with props correctly 1`] = `
<div class="van-cell van-field van-address-edit-detail">
<div class="van-cell__title van-field__label">
<span>
详细地址
Address
</span>
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<textarea rows="1"
class="van-field__control"
placeholder="街道门牌、楼层房间号等信息"
placeholder="Address"
>
</textarea>
</div>
@@ -168,14 +168,14 @@ exports[`should render AddressEdit with props correctly 1`] = `
<div class="van-cell van-field">
<div class="van-cell__title van-field__label">
<span>
邮政编码
Postal
</span>
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<input type="tel"
class="van-field__control"
placeholder="邮政编码"
placeholder="Postal"
>
</div>
</div>
@@ -184,7 +184,7 @@ exports[`should render AddressEdit with props correctly 1`] = `
<div class="van-cell van-cell--center van-address-edit__default">
<div class="van-cell__title">
<span>
设为默认收货地址
Set as the default address
</span>
</div>
<div role="switch"
@@ -202,7 +202,7 @@ exports[`should render AddressEdit with props correctly 1`] = `
>
<div class="van-button__content">
<span class="van-button__text">
保存
Save
</span>
</div>
</button>
@@ -214,19 +214,19 @@ exports[`should valid address detail and render error message correctly 1`] = `
<div class="van-cell van-field van-address-edit-detail">
<div class="van-cell__title van-field__label">
<span>
详细地址
Address
</span>
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<textarea rows="1"
class="van-field__control"
placeholder="街道门牌、楼层房间号等信息"
placeholder="Address"
>
</textarea>
</div>
<div class="van-field__error-message">
请填写详细地址
Address can not be empty
</div>
</div>
</div>
@@ -236,14 +236,14 @@ exports[`should valid address detail and render error message correctly 2`] = `
<div class="van-cell van-field van-address-edit-detail">
<div class="van-cell__title van-field__label">
<span>
详细地址
Address
</span>
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<textarea rows="1"
class="van-field__control"
placeholder="街道门牌、楼层房间号等信息"
placeholder="Address"
style="height: auto;"
>
</textarea>
@@ -259,7 +259,7 @@ exports[`should valid area code and render error message correctly 1`] = `
>
<div class="van-cell__title van-field__label">
<span>
地区
Area
</span>
</div>
<div class="van-cell__value van-field__value">
@@ -267,7 +267,7 @@ exports[`should valid area code and render error message correctly 1`] = `
<input type="text"
class="van-field__control"
readonly
placeholder="选择省 / 市 / 区"
placeholder="Area"
>
<div class="van-field__right-icon">
<i class="van-badge__wrapper van-icon van-icon-arrow">
@@ -275,7 +275,7 @@ exports[`should valid area code and render error message correctly 1`] = `
</div>
</div>
<div class="van-field__error-message">
请选择地区
Please select a receiving area
</div>
</div>
</div>
@@ -288,7 +288,7 @@ exports[`should valid area code and render error message correctly 2`] = `
>
<div class="van-cell__title van-field__label">
<span>
地区
Area
</span>
</div>
<div class="van-cell__value van-field__value">
@@ -296,7 +296,7 @@ exports[`should valid area code and render error message correctly 2`] = `
<input type="text"
class="van-field__control"
readonly
placeholder="选择省 / 市 / 区"
placeholder="Area"
>
<div class="van-field__right-icon">
<i class="van-badge__wrapper van-icon van-icon-arrow">
@@ -311,18 +311,18 @@ exports[`should valid name and render error message correctly 1`] = `
<div class="van-cell van-field">
<div class="van-cell__title van-field__label">
<span>
姓名
Name
</span>
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<input type="text"
class="van-field__control"
placeholder="收货人姓名"
placeholder="Name"
>
</div>
<div class="van-field__error-message">
请填写姓名
Please fill in the name
</div>
</div>
</div>
@@ -332,14 +332,14 @@ exports[`should valid name and render error message correctly 2`] = `
<div class="van-cell van-field">
<div class="van-cell__title van-field__label">
<span>
姓名
Name
</span>
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<input type="text"
class="van-field__control"
placeholder="收货人姓名"
placeholder="Name"
>
</div>
</div>
@@ -350,18 +350,18 @@ exports[`should valid postal code and render error message correctly 1`] = `
<div class="van-cell van-field">
<div class="van-cell__title van-field__label">
<span>
邮政编码
Postal
</span>
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<input type="tel"
class="van-field__control"
placeholder="邮政编码"
placeholder="Postal"
>
</div>
<div class="van-field__error-message">
邮政编码格式不正确
Wrong postal code
</div>
</div>
</div>
@@ -371,14 +371,14 @@ exports[`should valid postal code and render error message correctly 2`] = `
<div class="van-cell van-field">
<div class="van-cell__title van-field__label">
<span>
邮政编码
Postal
</span>
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<input type="tel"
class="van-field__control"
placeholder="邮政编码"
placeholder="Postal"
>
</div>
</div>
@@ -389,18 +389,18 @@ exports[`should valid tel and render error message correctly 1`] = `
<div class="van-cell van-field">
<div class="van-cell__title van-field__label">
<span>
电话
Phone
</span>
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<input type="tel"
class="van-field__control"
placeholder="收货人手机号"
placeholder="Phone"
>
</div>
<div class="van-field__error-message">
请输入正确的手机号
Malformed phone number
</div>
</div>
</div>
@@ -410,14 +410,14 @@ exports[`should valid tel and render error message correctly 2`] = `
<div class="van-cell van-field">
<div class="van-cell__title van-field__label">
<span>
电话
Phone
</span>
</div>
<div class="van-cell__value van-field__value">
<div class="van-field__body">
<input type="tel"
class="van-field__control"
placeholder="收货人手机号"
placeholder="Phone"
>
</div>
</div>