kin: auto-commit after pipeline
This commit is contained in:
parent
18a184bd5c
commit
cfa294fd05
2 changed files with 277 additions and 2 deletions
|
|
@ -121,10 +121,12 @@ async function mountAndOpenAddTaskModal() {
|
|||
return wrapper
|
||||
}
|
||||
|
||||
/** Добавляет файлы в pendingFiles через внутреннее состояние <script setup> */
|
||||
/** Добавляет файлы в pendingFiles через внутреннее состояние <script setup>.
|
||||
* В Vue 3 setupState автоматически разворачивает refs, поэтому доступ без .value */
|
||||
function pushPendingFiles(wrapper: ReturnType<typeof mount>, files: File[]) {
|
||||
const setupState = (wrapper.vm as any).$.setupState
|
||||
setupState.pendingFiles.value.push(...files)
|
||||
// setupState unwraps refs — pendingFiles это уже массив, не ref
|
||||
setupState.pendingFiles.push(...files)
|
||||
}
|
||||
|
||||
beforeEach(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue