feat: Initial clean release of CHM
一些检查失败了
automerge / automerge (push) Has been cancelled
react-native-android-build-apk / AssembleRelease (push) Has been cancelled
Build macOS M1 / Main (push) Has been cancelled
Joplin Continuous Integration / Main (macos-15-intel) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-11-vs2026-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-2025) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04-arm) (push) Has been cancelled
Joplin UI tests / Main (ubuntu-22.04) (push) Has been cancelled
Joplin UI tests / Main (windows-2025) (push) Has been cancelled
Joplin UI tests / Mobile (push) Has been cancelled
Close stale issues / ProcessStaleIssues (push) Has been cancelled
一些检查失败了
automerge / automerge (push) Has been cancelled
react-native-android-build-apk / AssembleRelease (push) Has been cancelled
Build macOS M1 / Main (push) Has been cancelled
Joplin Continuous Integration / Main (macos-15-intel) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / Main (ubuntu-22.04-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-11-vs2026-arm) (push) Has been cancelled
Joplin Continuous Integration / Main (windows-2025) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04) (push) Has been cancelled
Joplin Continuous Integration / ServerDockerImage (ubuntu-22.04-arm) (push) Has been cancelled
Joplin UI tests / Main (ubuntu-22.04) (push) Has been cancelled
Joplin UI tests / Main (windows-2025) (push) Has been cancelled
Joplin UI tests / Mobile (push) Has been cancelled
Close stale issues / ProcessStaleIssues (push) Has been cancelled
这个提交包含在:
@@ -0,0 +1,57 @@
|
||||
/* eslint-disable no-unused-vars */
|
||||
|
||||
// ====================== IMPORTANT ============================================
|
||||
// As of 2023-10-23 we should not use these tests anymore as they are too flaky.
|
||||
// To test the reducer we can use `reducer.test.js` or `app.reducer.test.ts`. If
|
||||
// it becomes too much of a burden to maintain these `feature_*` tests we may to
|
||||
// remove them.
|
||||
// ====================== IMPORTANT ============================================
|
||||
|
||||
const { setupDatabaseAndSynchronizer, switchClient, createNTestFolders, createNTestNotes, createNTestTags, TestApp } = require('@joplin/lib/testing/test-utils.js');
|
||||
const Setting = require('@joplin/lib/models/Setting').default;
|
||||
const Folder = require('@joplin/lib/models/Folder').default;
|
||||
const Note = require('@joplin/lib/models/Note').default;
|
||||
const Tag = require('@joplin/lib/models/Tag').default;
|
||||
const time = require('@joplin/lib/time').default;
|
||||
|
||||
let testApp = null;
|
||||
|
||||
describe('integration_NoteList', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
testApp = new TestApp();
|
||||
await testApp.start(['--no-welcome']);
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
if (testApp !== null) await testApp.destroy();
|
||||
testApp = null;
|
||||
});
|
||||
|
||||
// Reference: https://github.com/laurent22/joplin/issues/2709
|
||||
it('should leave a conflict note in the conflict folder when it modified', (async () => {
|
||||
const folder = await Folder.save({ title: 'test' });
|
||||
const note = await Note.save({ title: 'note 1', parent_id: folder.id, is_conflict: 1 });
|
||||
await testApp.wait();
|
||||
|
||||
testApp.dispatch({ type: 'FOLDER_SELECT', id: Folder.conflictFolderId() });
|
||||
await testApp.wait();
|
||||
|
||||
testApp.dispatch({ type: 'NOTE_SELECT', id: note.id });
|
||||
await testApp.wait();
|
||||
|
||||
// Check that the conflict folder is selected and that the conflict note is inside
|
||||
let state = testApp.store().getState();
|
||||
expect(state.selectedFolderId).toBe(Folder.conflictFolderId());
|
||||
expect(state.selectedNoteIds[0]).toBe(note.id);
|
||||
|
||||
await Note.save({ id: note.id, title: 'note 1 mod', is_conflict: 1 });
|
||||
await testApp.wait();
|
||||
|
||||
// Check that the conflict folder is still selected with the note still inside
|
||||
state = testApp.store().getState();
|
||||
expect(state.selectedFolderId).toBe(Folder.conflictFolderId());
|
||||
expect(state.selectedNoteIds[0]).toBe(note.id);
|
||||
}));
|
||||
|
||||
});
|
||||
在新工单中引用
屏蔽一个用户