Skip to content

Commit

Permalink
Release 1.90 prep (#4988)
Browse files Browse the repository at this point in the history
* Stop creating a mod-authority in e2e due to upstream conflict

* Dont require 3 interests when none come back

* Fix e2e login

* intl extract
  • Loading branch information
pfrazee authored Aug 23, 2024
1 parent fc5cc18 commit def9dda
Show file tree
Hide file tree
Showing 20 changed files with 21,355 additions and 13,901 deletions.
51 changes: 26 additions & 25 deletions jest/test-pds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,32 +79,33 @@ export async function createServer(
plc: {port: port2},
})

// DISABLED - looks like dev-env added this and now it conflicts
// add the test mod authority
const agent = new BskyAgent({service: pdsUrl})
const res = await agent.api.com.atproto.server.createAccount({
email: '[email protected]',
handle: 'mod-authority.test',
password: 'hunter2',
})
agent.api.setHeader('Authorization', `Bearer ${res.data.accessJwt}`)
await agent.api.app.bsky.actor.profile.create(
{repo: res.data.did},
{
displayName: 'Dev-env Moderation',
description: `The pretend version of mod.bsky.app`,
},
)

await agent.api.app.bsky.labeler.service.create(
{repo: res.data.did, rkey: 'self'},
{
policies: {
labelValues: ['!hide', '!warn'],
labelValueDefinitions: [],
},
createdAt: new Date().toISOString(),
},
)
// const agent = new BskyAgent({service: pdsUrl})
// const res = await agent.api.com.atproto.server.createAccount({
// email: '[email protected]',
// handle: 'mod-authority.test',
// password: 'hunter2',
// })
// agent.api.setHeader('Authorization', `Bearer ${res.data.accessJwt}`)
// await agent.api.app.bsky.actor.profile.create(
// {repo: res.data.did},
// {
// displayName: 'Dev-env Moderation',
// description: `The pretend version of mod.bsky.app`,
// },
// )

// await agent.api.app.bsky.labeler.service.create(
// {repo: res.data.did, rkey: 'self'},
// {
// policies: {
// labelValues: ['!hide', '!warn'],
// labelValueDefinitions: [],
// },
// createdAt: new Date().toISOString(),
// },
// )

const pic = fs.readFileSync(
path.join(__dirname, '..', 'assets', 'default-avatar.png'),
Expand Down
Loading

0 comments on commit def9dda

Please sign in to comment.