chore: update iOS simulators to 14th gen (#4316)

This commit is contained in:
Yaroslav Serhieiev
2024-01-02 11:56:43 +02:00
committed by GitHub
parent 6118dce030
commit 1052ae1ab0
9 changed files with 21 additions and 17 deletions
+1 -1
View File
@@ -1 +1 @@
lts/gallium lts/iron
+2 -2
View File
@@ -3,7 +3,7 @@ describe(':ios: Custom Keyboard', () => {
await device.reloadReactNative(); await device.reloadReactNative();
await element(by.text('Custom Keyboard')).tap(); await element(by.text('Custom Keyboard')).tap();
}); });
afterEach(async () => { afterEach(async () => {
await element(by.id('closeButton')).tap(); await element(by.id('closeButton')).tap();
}); });
@@ -17,6 +17,6 @@ describe(':ios: Custom Keyboard', () => {
it('should obscure elements at bottom of screen when visible', async () => { it('should obscure elements at bottom of screen when visible', async () => {
await expect(element(by.text('Obscured by keyboard'))).toBeVisible(); await expect(element(by.text('Obscured by keyboard'))).toBeVisible();
await element(by.id('textWithCustomInput')).tap(); await element(by.id('textWithCustomInput')).tap();
await expect(element(by.text('Obscured by keyboard'))).toBeNotVisible(); await expect(element(by.text('Obscured by keyboard'))).not.toBeVisible();
}); });
}); });
Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

+1 -1
View File
@@ -99,7 +99,7 @@ const config = {
type: 'ios.simulator', type: 'ios.simulator',
headless: Boolean(process.env.CI), headless: Boolean(process.env.CI),
device: { device: {
type: 'iPhone 12 Pro Max', type: 'iPhone 14 Pro Max',
}, },
}, },
@@ -26,10 +26,7 @@ export default class VisibilityExpectationScreen extends Component {
<SafeAreaView testID='VisibilityExpectationScreen' style={styles.screen}> <SafeAreaView testID='VisibilityExpectationScreen' style={styles.screen}>
<Text style={styles.header}>Half Visible Element</Text> <Text style={styles.header}>Half Visible Element</Text>
<Text style={styles.text}>Element should be only half-visible.</Text> <Text style={styles.text}>Element should be only half-visible.</Text>
<View style={styles.halfVisible, { left: shouldMoveElement ? "75%" : "50%" }} testID='halfVisible'> <View style={[styles.fullWidth, shouldMoveElement ? styles.quarterVisible : styles.halfVisible]} testID='halfVisible' />
<Text>Half Visible Element</Text>
</View>
<Text style={styles.header}>Move Element Button</Text> <Text style={styles.header}>Move Element Button</Text>
<Text style={styles.text}>Element should be 1/4 visible after button is pressed.</Text> <Text style={styles.text}>Element should be 1/4 visible after button is pressed.</Text>
<Button title={"Move That Element"} testID={"moveHalfVisible"} onPress={() => { this.setState({shouldMoveElement: true}) }} /> <Button title={"Move That Element"} testID={"moveHalfVisible"} onPress={() => { this.setState({shouldMoveElement: true}) }} />
@@ -41,7 +38,9 @@ export default class VisibilityExpectationScreen extends Component {
const styles = StyleSheet.create({ const styles = StyleSheet.create({
screen: { screen: {
flex: 1, flex: 1,
justifyContent: 'flex-start' justifyContent: 'flex-start',
borderColor: 'red',
borderWidth: 1,
}, },
header: { header: {
fontSize: 18, fontSize: 18,
@@ -55,10 +54,15 @@ const styles = StyleSheet.create({
marginVertical: 12, marginVertical: 12,
}, },
halfVisible: { halfVisible: {
position: 'relative', left: '50%',
backgroundColor: '#ccc',
textAlign: 'center',
lineHeight: 30,
height: 100
}, },
quarterVisible: {
left: '75%',
},
fullWidth: {
alignSelf: 'stretch',
backgroundColor: 'purple',
height: 30,
minWidth: 30,
}
}); });
+1 -1
View File
@@ -23,7 +23,7 @@
"simulator": { "simulator": {
"type": "ios.simulator", "type": "ios.simulator",
"device": { "device": {
"type": "iPhone 11 Pro" "type": "iPhone 14 Pro"
} }
} }
}, },
@@ -11,7 +11,7 @@
"ios.sim.release": { "ios.sim.release": {
"binaryPath": "../demo-react-native/ios/build/Build/Products/Release-iphonesimulator/example.app", "binaryPath": "../demo-react-native/ios/build/Build/Products/Release-iphonesimulator/example.app",
"type": "ios.simulator", "type": "ios.simulator",
"name": "iPhone 11 Pro" "name": "iPhone 14"
} }
} }
} }
+1 -1
View File
@@ -45,7 +45,7 @@ module.exports = {
type: "ios.simulator", type: "ios.simulator",
headless: Boolean(process.env.CI), headless: Boolean(process.env.CI),
device: { device: {
type: "iPhone 12 Pro" type: "iPhone 14 Pro"
} }
}, },
emulator: { emulator: {