2016-07-07 23 views
0

我們使用Calabash進行功能測試,並截取了我們的反應本機應用程序,但我們遇到了屏幕截圖問題。當在React Native應用程序中出現邊框時,Calabash需要醜陋的屏幕截圖

當一個部件具有邊框,屏幕截圖被弄亂了:

例如,與index.ios.js如:

import React from 'react'; 
import { AppRegistry, View } from 'react-native'; 

AppRegistry.registerComponent('App',() =>() => (
    <View style={{flex: 1, backgroundColor: 'blue', justifyContent: 'center', alignItems: 'center'}}> 
    <View style={{height: 100, width: 200, backgroundColor: 'red', borderColor: 'green', borderWidth: 10}}> 
    </View> 
    </View> 
)); 

這是模擬器的顯示:

On Simulator

這是所採用的截圖(例如在calabash-ios console之後運行screenshot):

On screenshot

沒有borderWidth,它的作品!

我們在RN 0.26.2,使用葫蘆黃瓜0.19.2。

任何幫助將超級讚賞! 謝謝!

回答

0

通過更新calabash-server通過calabash-ios download解決:)

相關問題