feat: sites and authors integration into existing screens (& formated all frontend files kinda accidentally)
This commit is contained in:
1 parent
3d81d2c717
commit
6b8990c55e
239 files changed
+9194
-1354
No files matched your search
@@ -126,7 +126,10 @@ describe('Home banner for the owner, update available', () => {
|
||||
|
||||
it('shows again when latest changes to a newer version', async () => {
|
||||
localStorage.setItem(DISMISSED_VERSION_KEY, NEW_TAG)
|
||||
await mountHome({ role: 'owner', status: newerAvailable({ latest: 'v2.4.0-beta' }) })
|
||||
await mountHome({
|
||||
role: 'owner',
|
||||
status: newerAvailable({ latest: 'v2.4.0-beta' }),
|
||||
})
|
||||
|
||||
expect(banner()).not.toBeNull()
|
||||
expect(banner()!.textContent).toContain('Version 2.4.0-beta is available')
|
||||
@@ -163,7 +166,11 @@ describe('Settings sidebar pill and mobile dot', () => {
|
||||
})
|
||||
|
||||
it('shows the dot on the mobile menu icon', async () => {
|
||||
await mountHome({ role: 'owner', status: newerAvailable(), width: MOBILE_WIDTH })
|
||||
await mountHome({
|
||||
role: 'owner',
|
||||
status: newerAvailable(),
|
||||
width: MOBILE_WIDTH,
|
||||
})
|
||||
|
||||
expect(mobileDot()).not.toBeNull()
|
||||
expect(banner()).not.toBeNull()
|
||||
@@ -171,7 +178,11 @@ describe('Settings sidebar pill and mobile dot', () => {
|
||||
|
||||
it.each([
|
||||
{ name: 'an admin', role: 'admin' as const, status: newerAvailable() },
|
||||
{ name: 'an owner who is up to date', role: 'owner' as const, status: upToDate() },
|
||||
{
|
||||
name: 'an owner who is up to date',
|
||||
role: 'owner' as const,
|
||||
status: upToDate(),
|
||||
},
|
||||
])('shows no pill and no dot for $name', async ({ role, status }) => {
|
||||
await mountHome({ role, status })
|
||||
|
||||
|
||||
Reference in new issue
Block a user