Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ server:
- levels: "info|warning|error"
output: "stdout"
sources:
- path: "{{ .StorageDir }}"
name: files
config:
defaultEnabled: true
defaultUserScope: "/"
- path: "/"
name: device
config:
Expand All @@ -23,6 +18,15 @@ server:
- folderPath: "/dev"
- folderPath: "/run"
- folderPath: "/var/cache"
- folderPath: "/opt/disk"
viewable: true
- folderPath: "/data"
viewable: true
- path: "{{ .StorageDir }}"
name: files
config:
defaultEnabled: true
defaultUserScope: "/"

auth:
tokenExpirationHours: 2
Expand Down
12 changes: 7 additions & 5 deletions web/e2e/specs/01-files.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { loginViaAuthelia } from '../helpers/auth'
const username = process.env.PLAYWRIGHT_USER!
const password = process.env.PLAYWRIGHT_PASSWORD!

test('browse read-only system source, create dir and file in writable source', async ({ page, baseURL }, info) => {
test('land on device source, create dir and file in writable source', async ({ page, baseURL }, info) => {
const stamp = Date.now()
const dir = `e2e-dir-${stamp}`
const file = `note-${stamp}.txt`
Expand All @@ -14,12 +14,14 @@ test('browse read-only system source, create dir and file in writable source', a
await loginViaAuthelia(page, baseURL!, username, password)

const acknowledge = page.locator('button[aria-label^="Acknowledge"]')
await acknowledge.waitFor({ state: 'visible' })
await shoot(page, info, '01-first-login-welcome')
await acknowledge.click()
await page.addLocatorHandler(acknowledge, async (button) => {
await shoot(page, info, '01-first-login-welcome')
await button.click()
}, { times: 1 })

await page.waitForURL((url) => url.pathname.startsWith('/files/device'))
await shoot(page, info, '02-logged-in')

await page.locator('a.source-button[aria-label="device"]').click()
await page.locator('a[aria-label="etc"]').waitFor({ state: 'visible' })
await shoot(page, info, '03-device-root')

Expand Down