mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
[web] Group audit log link in settings (#27390)
* [web] Group audit log link in settings Adds a link to access the `/manage/groups/:subscription_id/audit-logs` endpoint * [web] Add `group-audit-logs` split test for gradual rollout GitOrigin-RevId: 60d6c9917ca54ff5e228996e7454a901f0f3b9ca
This commit is contained in:
+17
-10
@@ -97,6 +97,10 @@ describe('<ManagedGroupSubscriptions />', function () {
|
||||
value: managedGroupSubscriptions,
|
||||
},
|
||||
{ name: 'ol-usersEmail', value: 'admin@example.com' },
|
||||
{
|
||||
name: 'ol-splitTestVariants',
|
||||
value: { 'group-audit-logs': 'active' },
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
@@ -124,28 +128,31 @@ describe('<ManagedGroupSubscriptions />', function () {
|
||||
expect(links[2].getAttribute('href')).to.equal(
|
||||
'/manage/groups/bcd567/managers'
|
||||
)
|
||||
expect(links[3].getAttribute('href')).to.equal('/metrics/groups/bcd567')
|
||||
expect(links[5].getAttribute('href')).to.equal(
|
||||
expect(links[3].getAttribute('href')).to.equal(
|
||||
'/manage/groups/bcd567/audit-logs'
|
||||
)
|
||||
expect(links[4].getAttribute('href')).to.equal('/metrics/groups/bcd567')
|
||||
expect(links[6].getAttribute('href')).to.equal(
|
||||
'/manage/groups/def456/members'
|
||||
)
|
||||
expect(links[6].getAttribute('href')).to.equal(
|
||||
expect(links[7].getAttribute('href')).to.equal(
|
||||
'/manage/groups/def456/managers'
|
||||
)
|
||||
expect(links[7].getAttribute('href')).to.equal('/metrics/groups/def456')
|
||||
expect(links[9].getAttribute('href')).to.equal(
|
||||
expect(links[9].getAttribute('href')).to.equal('/metrics/groups/def456')
|
||||
expect(links[11].getAttribute('href')).to.equal(
|
||||
'/manage/groups/group2abc/members'
|
||||
)
|
||||
expect(links[10].getAttribute('href')).to.equal(
|
||||
expect(links[12].getAttribute('href')).to.equal(
|
||||
'/manage/groups/group2abc/managers'
|
||||
)
|
||||
expect(links[11].getAttribute('href')).to.equal('/metrics/groups/group2abc')
|
||||
expect(links[13].getAttribute('href')).to.equal(
|
||||
expect(links[14].getAttribute('href')).to.equal('/metrics/groups/group2abc')
|
||||
expect(links[16].getAttribute('href')).to.equal(
|
||||
'/manage/groups/group123abc/members'
|
||||
)
|
||||
expect(links[14].getAttribute('href')).to.equal(
|
||||
expect(links[17].getAttribute('href')).to.equal(
|
||||
'/manage/groups/group123abc/managers'
|
||||
)
|
||||
expect(links[15].getAttribute('href')).to.equal(
|
||||
expect(links[19].getAttribute('href')).to.equal(
|
||||
'/metrics/groups/group123abc'
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user