Skip to content

Commit fc92b1f

Browse files
authored
AT4.4 and AT4.5 (#217)
* AT4.4 and AT4.5 * AT4.4 and AT4.5 * added floor to id * remove test form suite --------- Co-authored-by: SaraH6734 <SaraH6734@users.noreply.github.com>
1 parent 6b4cba6 commit fc92b1f

5 files changed

Lines changed: 102 additions & 0 deletions

File tree

.maestro/US4/AT4viewIndoorPOI.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
appId: host.exp.exponent
2+
---
3+
- runFlow:
4+
when:
5+
notVisible:
6+
id: "building-selection"
7+
file: ../openLink.yaml
8+
- tapOn: "Search building"
9+
- inputText: "Vanier"
10+
- tapOn:
11+
id: "end-result-VL"
12+
- assertVisible:
13+
id: "rooms-action-button"
14+
- tapOn:
15+
id: "rooms-action-button"
16+
- tapOn:
17+
id: "SettingsButton"
18+
- assertVisible:
19+
id: "poi-settings-checkbox-bathrooms"
20+
- tapOn:
21+
id: "poi-settings-checkbox-bathrooms"
22+
- assertVisible:
23+
id: "poi-settings-checkbox-stairs"
24+
- tapOn:
25+
id: "poi-settings-checkbox-stairs"
26+
- tapOn:
27+
point: "50%,30%"
28+
- assertVisible:
29+
id: "bathroom-highlight-VL1_poi_1"
30+
- assertVisible:
31+
id: "bathroom-highlight-VL1_poi_2"
32+
- assertVisible:
33+
id: "bathroom-highlight-VL1_poi_3"
34+
- assertVisible:
35+
id: "bathroom-highlight-VL1_poi_4"
36+
- assertVisible:
37+
id: "stair-highlight-VL_F1_stair_landing_14"
38+
- assertVisible:
39+
id: "stair-highlight-VL_F1_stair_landing_15"
40+
- assertVisible:
41+
id: "stair-highlight-VL_F1_stair_landing_16"
42+
- assertVisible:
43+
id: "stair-highlight-VL_F1_stair_landing_19"
44+
- assertVisible:
45+
id: "stair-highlight-VL_F1_stair_landing_23"
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
appId: host.exp.exponent
2+
---
3+
- runFlow:
4+
when:
5+
notVisible:
6+
id: "building-selection"
7+
file: ../openLink.yaml
8+
- tapOn: "Search building"
9+
- inputText: "Vanier"
10+
- tapOn:
11+
id: "end-result-VL"
12+
- assertVisible:
13+
id: "rooms-action-button"
14+
- tapOn:
15+
id: "rooms-action-button"
16+
- tapOn:
17+
id: "indoor-start-room-input"
18+
- inputText: "VL 101.1"
19+
- tapOn:
20+
id: "indoor-end-room-input"
21+
- inputText: "VL 202.1"
22+
- assertVisible:
23+
id: "indoor-create-path-button"
24+
- tapOn:
25+
id: "indoor-create-path-button"
26+
- assertVisible:
27+
id: "active-outline-VL_101_1-VL_F1_hallway_waypoint_34-1"
28+
- tapOn:
29+
id: "indoor-clear-end-room"
30+
- tapOn:
31+
id: "indoor-end-room-input"
32+
- inputText: "VL 202.30"
33+
- assertVisible:
34+
id: "indoor-create-path-button"
35+
- tapOn:
36+
id: "indoor-create-path-button"
37+
- assertVisible:
38+
id: "active-outline-VL_101_1-VL_F1_hallway_waypoint_34-1"
39+
- tapOn:
40+
id: "next-button"
41+
- assertVisible:
42+
id: "active-outline-VL_F1_hallway_waypoint_34-VL_F1_hallway_waypoint_33-1"
43+
- tapOn:
44+
id: "indoor-clear-start-room"
45+
- tapOn:
46+
id: "indoor-start-room-input"
47+
- inputText: "VL 101.3"
48+
- assertVisible:
49+
id: "indoor-create-path-button"
50+
- tapOn:
51+
id: "indoor-create-path-button"
52+
- assertVisible:
53+
id: "active-outline-VL_101_3-VL_F1_hallway_waypoint_30-1"

components/map/building-floor.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ function renderActiveEdgeOutline({
194194
return (
195195
<Line
196196
key={`active-outline-${current.id}-${next.id}-${floor}`}
197+
testID={`active-outline-${current.id}-${next.id}-${floor}`}
197198
x1={current.x}
198199
y1={current.y}
199200
x2={next.x}

components/map/indoor-map-settings.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export default function MapSettings({
6969
<>
7070
<View style={styles.container}>
7171
<TouchableOpacity
72+
testID="SettingsButton"
7273
style={styles.fab}
7374
onPress={() => setOpen((prev) => !prev)}
7475
activeOpacity={0.8}
@@ -118,6 +119,7 @@ export default function MapSettings({
118119
key={item.key}
119120
style={styles.checkboxRow}
120121
onPress={() => togglePOI(item.key as keyof typeof poiFilters)}
122+
testID={`poi-settings-checkbox-${item.key}`}
121123
>
122124
<Image
123125
source={item.iconSource}

components/map/indoor-navigation-controls.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export default function IndoorNavigationControls({
5050
style={[styles.sideButton, !nextCommand.canExecute && styles.disabled]}
5151
testID="next-button"
5252
onPress={nextCommand.execute}
53+
testID="next-button"
5354
disabled={!nextCommand.canExecute}
5455
>
5556
<Text style={styles.sideText}>{nextCommand.label}</Text>

0 commit comments

Comments
 (0)