mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-20 12:36:53 +00:00
Fix the tour outro thing by keepign the li around
This commit is contained in:
2 files changed
+15
-17
No files matched your search
@@ -728,15 +728,15 @@ describe('AppFrameComponent', () => {
|
||||
settingsService.set(SETTINGS_KEYS.WHATS_NEW_LAST_SEEN_VERSION, '3.4.2')
|
||||
fixture.detectChanges()
|
||||
|
||||
expect(
|
||||
fixture.debugElement.query(
|
||||
By.css('button[aria-label="See what\'s new in this version"]')
|
||||
)
|
||||
).toBeTruthy()
|
||||
const docsItem = fixture.debugElement
|
||||
.query(By.css('a[href="https://docs.paperless-ngx.com"].nav-anchor'))
|
||||
.nativeElement.closest('li')
|
||||
expect(docsItem.classList).toContain('d-md-none')
|
||||
const whatsNew = fixture.debugElement.query(
|
||||
By.css('button[aria-label="See what\'s new in this version"]')
|
||||
).nativeElement
|
||||
const docs = fixture.debugElement.query(
|
||||
By.css('a[href="https://docs.paperless-ngx.com"].nav-anchor')
|
||||
).nativeElement
|
||||
expect(docs.classList).toContain('d-md-none')
|
||||
// both share one li so the tour anchor points at whichever is shown
|
||||
expect(whatsNew.closest('li')).toBe(docs.closest('li'))
|
||||
})
|
||||
|
||||
it('should show tasks badge for needs-attention tasks', () => {
|
||||
|
||||
Reference in new issue
Block a user