Browse Source

chore: test fixes (#741)

master
Henning Hall 1 year ago
committed by GitHub
parent
commit
5b3817ec3f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 21 additions and 1 deletions
  1. +5
    -0
      .github/workflows/test-android-e2e.yml
  2. +1
    -0
      .maestro/maximum-date.yml
  3. +1
    -0
      .maestro/timezone-offset-in-minutes-daylight-saving.yml
  4. +1
    -0
      .maestro/timezone-offset-in-minutes.yml
  5. +7
    -0
      .maestro/utils/change-minimum-date.yml
  6. +6
    -1
      examples/Rn071/src/CustomPropValue.js

+ 5
- 0
.github/workflows/test-android-e2e.yml View File

@ -2,6 +2,11 @@ name: Test Android e2e
on: on:
workflow_call: workflow_call:
inputs:
test-tags:
type: string
required: false
default: 'android'
workflow_dispatch: workflow_dispatch:
inputs: inputs:
test-tags: test-tags:

+ 1
- 0
.maestro/maximum-date.yml View File

@ -61,6 +61,7 @@ tags:
- assertVisible: '2000-01-01 00:00:00' - assertVisible: '2000-01-01 00:00:00'
########## describe: overshooting max date ########## describe: overshooting max date
- runFlow: utils/reset.yml
### test: overshooting day wheel should reset to maximum date ### test: overshooting day wheel should reset to maximum date
- runFlow: - runFlow:

+ 1
- 0
.maestro/timezone-offset-in-minutes-daylight-saving.yml View File

@ -1,6 +1,7 @@
appId: com.rn071 appId: com.rn071
tags: tags:
- android - android
- timezoneOffsetInMinutes
--- ---
########## describe: DAYLIGHT SAVING ########## describe: DAYLIGHT SAVING
- runFlow: - runFlow:

+ 1
- 0
.maestro/timezone-offset-in-minutes.yml View File

@ -1,6 +1,7 @@
appId: com.rn071 appId: com.rn071
tags: tags:
- android - android
- timezoneOffsetInMinutes
--- ---
- runFlow: - runFlow:
file: utils/set-timezone.yml file: utils/set-timezone.yml

+ 7
- 0
.maestro/utils/change-minimum-date.yml View File

@ -0,0 +1,7 @@
appId: com.rn071
---
- runFlow:
file: change-prop.yml
env:
PROP: minimumDate
VALUE: ${VALUE}

+ 6
- 1
examples/Rn071/src/CustomPropValue.js View File

@ -33,7 +33,12 @@ export default function CustomPropValue(props) {
</View> </View>
<TouchableOpacity <TouchableOpacity
testID={"changeProp"} testID={"changeProp"}
onPress={() => props.changeProp({ propName, propValue: getPropValue() })}
onPress={() => {
props.changeProp({ propName, propValue: getPropValue() })
setPropName('');
setPropValue('');
}
}
><Text style={{ color: "blue" }}>Change</Text></TouchableOpacity> ><Text style={{ color: "blue" }}>Change</Text></TouchableOpacity>
<View style={{width: 20}}/> <View style={{width: 20}}/>
<TouchableOpacity <TouchableOpacity

Loading…
Cancel
Save