Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions __e2e__/flows/thread-muting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ appId: xyz.blueskyweb.app
id: "viewHeaderHomeFeedPrefsBtn"
- tapOn:
id: "replyBtn"
- tapOn:
id: "replyBtn"
- inputText: "Reply 1"
- tapOn:
id: "composerPublishBtn"
Expand Down Expand Up @@ -71,8 +69,6 @@ appId: xyz.blueskyweb.app
id: "profilePager-selector-1"
- tapOn:
id: "replyBtn"
- tapOn:
id: "replyBtn"
- inputText: "Reply 2"
- tapOn:
id: "composerPublishBtn"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
"zod": "^3.20.2"
},
"devDependencies": {
"@atproto/dev-env": "^0.3.181",
"@atproto/dev-env": "^0.3.193",
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.26.0",
"@babel/runtime": "^7.26.0",
Expand Down
34 changes: 7 additions & 27 deletions src/ageAssurance/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import {
} from '@atproto/api'

import {type OtherRequiredData} from '#/ageAssurance/data'
import {IS_DEV} from '#/env'
import {IS_DEV, IS_E2E} from '#/env'
import {type Geolocation} from '#/geolocation'

export const enabled = IS_DEV && false
export const enabled = (IS_DEV && false) || IS_E2E

export const geolocation: Geolocation | undefined = enabled
? {
Expand All @@ -30,29 +30,9 @@ export const config: AppBskyAgeassuranceDefs.Config = {
countryCode: 'AA',
regionCode: undefined,
rules: [
{
$type: ids.IfAccountNewerThan,
date: '2025-12-01T00:00:00Z',
access: 'none',
},
{
$type: ids.IfAssuredOverAge,
age: 18,
access: 'full',
},
{
$type: ids.IfAssuredOverAge,
age: 16,
access: 'safe',
},
{
$type: ids.IfDeclaredUnderAge,
age: 16,
access: 'none',
},
{
$type: ids.Default,
access: 'safe',
access: 'full',
},
],
},
Expand All @@ -68,17 +48,17 @@ export const serverState: AppBskyAgeassuranceGetState.OutputSchema | undefined =
serverStateEnabled
? {
state: {
lastInitiatedAt: new Date(2023, 5, 1).toISOString(),
lastInitiatedAt: new Date(2025, 1, 1).toISOString(),
status: 'assured',
access: 'safe',
access: 'full',
},
metadata: {
accountCreatedAt: new Date(2023, 11, 1).toISOString(),
accountCreatedAt: new Date(2023, 1, 1).toISOString(),
},
}
: undefined

export async function resolve<T>(data: T) {
await new Promise(y => setTimeout(y, 2000)) // simulate network
await new Promise(y => setTimeout(y, 500)) // simulate network
return data
}
5 changes: 5 additions & 0 deletions src/env/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ export const IS_TESTFLIGHT = ENV === 'testflight'
*/
export const IS_DEV = __DEV__

/**
* Indicates whether the app is running in a test environment
*/
export const IS_E2E = ENV === 'e2e'

/**
* Indicates whether the app is `__DEV__` or TestFlight
*/
Expand Down
2 changes: 1 addition & 1 deletion src/geolocation/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ export const deviceGeolocation: Geolocation = aaDebug.deviceGeolocation ?? {
}

export async function resolve<T>(data: T) {
await new Promise(y => setTimeout(y, 2000)) // simulate network
await new Promise(y => setTimeout(y, 500)) // simulate network
return data
}
Loading
Loading