aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/users/users.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-27 10:15:55 +0200
committerChocobozzz <me@florianbigard.com>2021-08-27 10:15:55 +0200
commit8f581725651c4b2c213d75fc028e306bbf239d3e (patch)
tree8deb842327c2a227d8e302d9a84bd9f8f9f7affa /server/tests/api/users/users.ts
parent1ff15061b31245df4248e47228d0a90b07ab3f01 (diff)
downloadPeerTube-8f581725651c4b2c213d75fc028e306bbf239d3e.tar.gz
PeerTube-8f581725651c4b2c213d75fc028e306bbf239d3e.tar.zst
PeerTube-8f581725651c4b2c213d75fc028e306bbf239d3e.zip
Allow accounts to skip account setup modal
Diffstat (limited to 'server/tests/api/users/users.ts')
-rw-r--r--server/tests/api/users/users.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/tests/api/users/users.ts b/server/tests/api/users/users.ts
index 318ff832a..085d9d870 100644
--- a/server/tests/api/users/users.ts
+++ b/server/tests/api/users/users.ts
@@ -597,6 +597,7 @@ describe('Test users', function () {
597 expect(user.account.description).to.equal('my super description updated') 597 expect(user.account.description).to.equal('my super description updated')
598 expect(user.noWelcomeModal).to.be.false 598 expect(user.noWelcomeModal).to.be.false
599 expect(user.noInstanceConfigWarningModal).to.be.false 599 expect(user.noInstanceConfigWarningModal).to.be.false
600 expect(user.noAccountSetupWarningModal).to.be.false
600 }) 601 })
601 602
602 it('Should be able to update my theme', async function () { 603 it('Should be able to update my theme', async function () {
@@ -612,12 +613,14 @@ describe('Test users', function () {
612 await server.users.updateMe({ 613 await server.users.updateMe({
613 token: userToken, 614 token: userToken,
614 noInstanceConfigWarningModal: true, 615 noInstanceConfigWarningModal: true,
615 noWelcomeModal: true 616 noWelcomeModal: true,
617 noAccountSetupWarningModal: true
616 }) 618 })
617 619
618 const user = await server.users.getMyInfo({ token: userToken }) 620 const user = await server.users.getMyInfo({ token: userToken })
619 expect(user.noWelcomeModal).to.be.true 621 expect(user.noWelcomeModal).to.be.true
620 expect(user.noInstanceConfigWarningModal).to.be.true 622 expect(user.noInstanceConfigWarningModal).to.be.true
623 expect(user.noAccountSetupWarningModal).to.be.true
621 }) 624 })
622 }) 625 })
623 626