super-productivity/e2e/src/sync/webdav-basic.e2e.ts
2025-07-18 20:05:20 +02:00

32 lines
978 B
TypeScript

import { NBrowser } from '../../n-browser-interface';
module.exports = {
'@tags': ['sync', 'webdav'],
before: (browser: NBrowser) => browser.loadAppAndClickAwayWelcomeDialog(),
after: (browser: NBrowser) => browser.end(),
'should configure WebDAV sync with Last-Modified support': async (
browser: NBrowser,
) => {
await browser
.navigateTo('http://localhost:4200')
// Configure WebDAV sync
.setupWebdavSync({
baseUrl: 'http://localhost:2345/',
username: 'alice',
password: 'alice',
syncFolderPath: '/super-productivity-test',
})
// Create a test task
.addTask('Test task for WebDAV Last-Modified sync')
.pause(500)
// Trigger sync
.triggerSync()
// Verify sync completed
.pause(3000)
// .noError()
.assert.not.elementPresent('.sync-btn mat-icon.spin')
.assert.textContains('.sync-btn mat-icon:nth-of-type(2)', 'check')
.end();
},
};