Skip to content

Commit d16c8ae

Browse files
Prep v1.111.0 e2e (#9494)
* Add e2e debug support for AA * Remove dup tap call * Update dev-env
1 parent c68e5e8 commit d16c8ae

File tree

6 files changed

+274
-317
lines changed

6 files changed

+274
-317
lines changed

__e2e__/flows/thread-muting.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ appId: xyz.blueskyweb.app
3131
id: "viewHeaderHomeFeedPrefsBtn"
3232
- tapOn:
3333
id: "replyBtn"
34-
- tapOn:
35-
id: "replyBtn"
3634
- inputText: "Reply 1"
3735
- tapOn:
3836
id: "composerPublishBtn"
@@ -71,8 +69,6 @@ appId: xyz.blueskyweb.app
7169
id: "profilePager-selector-1"
7270
- tapOn:
7371
id: "replyBtn"
74-
- tapOn:
75-
id: "replyBtn"
7672
- inputText: "Reply 2"
7773
- tapOn:
7874
id: "composerPublishBtn"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@
221221
"zod": "^3.20.2"
222222
},
223223
"devDependencies": {
224-
"@atproto/dev-env": "^0.3.181",
224+
"@atproto/dev-env": "^0.3.193",
225225
"@babel/core": "^7.26.0",
226226
"@babel/preset-env": "^7.26.0",
227227
"@babel/runtime": "^7.26.0",

src/ageAssurance/debug.ts

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import {
55
} from '@atproto/api'
66

77
import {type OtherRequiredData} from '#/ageAssurance/data'
8-
import {IS_DEV} from '#/env'
8+
import {IS_DEV, IS_E2E} from '#/env'
99
import {type Geolocation} from '#/geolocation'
1010

11-
export const enabled = IS_DEV && false
11+
export const enabled = (IS_DEV && false) || IS_E2E
1212

1313
export const geolocation: Geolocation | undefined = enabled
1414
? {
@@ -30,29 +30,9 @@ export const config: AppBskyAgeassuranceDefs.Config = {
3030
countryCode: 'AA',
3131
regionCode: undefined,
3232
rules: [
33-
{
34-
$type: ids.IfAccountNewerThan,
35-
date: '2025-12-01T00:00:00Z',
36-
access: 'none',
37-
},
38-
{
39-
$type: ids.IfAssuredOverAge,
40-
age: 18,
41-
access: 'full',
42-
},
43-
{
44-
$type: ids.IfAssuredOverAge,
45-
age: 16,
46-
access: 'safe',
47-
},
48-
{
49-
$type: ids.IfDeclaredUnderAge,
50-
age: 16,
51-
access: 'none',
52-
},
5333
{
5434
$type: ids.Default,
55-
access: 'safe',
35+
access: 'full',
5636
},
5737
],
5838
},
@@ -68,17 +48,17 @@ export const serverState: AppBskyAgeassuranceGetState.OutputSchema | undefined =
6848
serverStateEnabled
6949
? {
7050
state: {
71-
lastInitiatedAt: new Date(2023, 5, 1).toISOString(),
51+
lastInitiatedAt: new Date(2025, 1, 1).toISOString(),
7252
status: 'assured',
73-
access: 'safe',
53+
access: 'full',
7454
},
7555
metadata: {
76-
accountCreatedAt: new Date(2023, 11, 1).toISOString(),
56+
accountCreatedAt: new Date(2023, 1, 1).toISOString(),
7757
},
7858
}
7959
: undefined
8060

8161
export async function resolve<T>(data: T) {
82-
await new Promise(y => setTimeout(y, 2000)) // simulate network
62+
await new Promise(y => setTimeout(y, 500)) // simulate network
8363
return data
8464
}

src/env/common.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ export const IS_TESTFLIGHT = ENV === 'testflight'
3030
*/
3131
export const IS_DEV = __DEV__
3232

33+
/**
34+
* Indicates whether the app is running in a test environment
35+
*/
36+
export const IS_E2E = ENV === 'e2e'
37+
3338
/**
3439
* Indicates whether the app is `__DEV__` or TestFlight
3540
*/

src/geolocation/debug.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ export const deviceGeolocation: Geolocation = aaDebug.deviceGeolocation ?? {
1414
}
1515

1616
export async function resolve<T>(data: T) {
17-
await new Promise(y => setTimeout(y, 2000)) // simulate network
17+
await new Promise(y => setTimeout(y, 500)) // simulate network
1818
return data
1919
}

0 commit comments

Comments
 (0)