Release 1.90 prep (#4988)
* Stop creating a mod-authority in e2e due to upstream conflict * Dont require 3 interests when none come back * Fix e2e login * intl extractzio/stable
parent
fc5cc189b5
commit
def9dda29c
|
@ -79,32 +79,33 @@ export async function createServer(
|
||||||
plc: {port: port2},
|
plc: {port: port2},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// DISABLED - looks like dev-env added this and now it conflicts
|
||||||
// add the test mod authority
|
// add the test mod authority
|
||||||
const agent = new BskyAgent({service: pdsUrl})
|
// const agent = new BskyAgent({service: pdsUrl})
|
||||||
const res = await agent.api.com.atproto.server.createAccount({
|
// const res = await agent.api.com.atproto.server.createAccount({
|
||||||
email: 'mod-authority@test.com',
|
// email: 'mod-authority@test.com',
|
||||||
handle: 'mod-authority.test',
|
// handle: 'mod-authority.test',
|
||||||
password: 'hunter2',
|
// password: 'hunter2',
|
||||||
})
|
// })
|
||||||
agent.api.setHeader('Authorization', `Bearer ${res.data.accessJwt}`)
|
// agent.api.setHeader('Authorization', `Bearer ${res.data.accessJwt}`)
|
||||||
await agent.api.app.bsky.actor.profile.create(
|
// await agent.api.app.bsky.actor.profile.create(
|
||||||
{repo: res.data.did},
|
// {repo: res.data.did},
|
||||||
{
|
// {
|
||||||
displayName: 'Dev-env Moderation',
|
// displayName: 'Dev-env Moderation',
|
||||||
description: `The pretend version of mod.bsky.app`,
|
// description: `The pretend version of mod.bsky.app`,
|
||||||
},
|
// },
|
||||||
)
|
// )
|
||||||
|
|
||||||
await agent.api.app.bsky.labeler.service.create(
|
// await agent.api.app.bsky.labeler.service.create(
|
||||||
{repo: res.data.did, rkey: 'self'},
|
// {repo: res.data.did, rkey: 'self'},
|
||||||
{
|
// {
|
||||||
policies: {
|
// policies: {
|
||||||
labelValues: ['!hide', '!warn'],
|
// labelValues: ['!hide', '!warn'],
|
||||||
labelValueDefinitions: [],
|
// labelValueDefinitions: [],
|
||||||
},
|
// },
|
||||||
createdAt: new Date().toISOString(),
|
// createdAt: new Date().toISOString(),
|
||||||
},
|
// },
|
||||||
)
|
// )
|
||||||
|
|
||||||
const pic = fs.readFileSync(
|
const pic = fs.readFileSync(
|
||||||
path.join(__dirname, '..', 'assets', 'default-avatar.png'),
|
path.join(__dirname, '..', 'assets', 'default-avatar.png'),
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -143,7 +143,8 @@ export function StepInterests() {
|
||||||
track('OnboardingV2:StepInterests:Start')
|
track('OnboardingV2:StepInterests:Start')
|
||||||
}, [track])
|
}, [track])
|
||||||
|
|
||||||
const isMinimumInterestsEnabled = gate('onboarding_minimum_interests')
|
const isMinimumInterestsEnabled =
|
||||||
|
gate('onboarding_minimum_interests') && data?.interests.length !== 0
|
||||||
const meetsMinimumRequirement = isMinimumInterestsEnabled
|
const meetsMinimumRequirement = isMinimumInterestsEnabled
|
||||||
? interests.length >= MIN_INTERESTS
|
? interests.length >= MIN_INTERESTS
|
||||||
: true
|
: true
|
||||||
|
|
|
@ -33,6 +33,7 @@ export function TestCtrls() {
|
||||||
},
|
},
|
||||||
'LoginForm',
|
'LoginForm',
|
||||||
)
|
)
|
||||||
|
setShowLoggedOut(false)
|
||||||
}
|
}
|
||||||
const onPressSignInBob = async () => {
|
const onPressSignInBob = async () => {
|
||||||
await login(
|
await login(
|
||||||
|
@ -43,6 +44,7 @@ export function TestCtrls() {
|
||||||
},
|
},
|
||||||
'LoginForm',
|
'LoginForm',
|
||||||
)
|
)
|
||||||
|
setShowLoggedOut(false)
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<View style={{position: 'absolute', top: 100, right: 0, zIndex: 100}}>
|
<View style={{position: 'absolute', top: 100, right: 0, zIndex: 100}}>
|
||||||
|
|
Loading…
Reference in New Issue