我正在Firebase测试实验室的虚拟设备(Pixel2)上运行Espresso Android测试,我需要知道此设备的地理坐标。我的测试失败,因为它们必须在位于国家领土(葡萄牙)的设备上运行,并且显示以下内容:“您的访问权限正在葡萄牙境外进行”。
我想知道是否通过命令
const termsSchema = Yup.object().shape({
termType: Yup.string().when('condition',{
is: true,then: Yup.string()
.required('Type is required'),}),});
const schema = Yup.object().shape({
condition: Yup.boolean()
.required('Error'),terms: Yup.array().of(termsSchema),});
运行测试时,有一种方法可以访问虚拟设备的位置和/或使其在位于国家领土(葡萄牙)的设备上运行。
谢谢, xptoGirl