Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: e2e tests for kanban

Ilian Sapundshievb7cebf4f6f0b
diff --git a/tests/e2e/perspective-kanban.helpers.js b/tests/e2e/perspective-kanban.helpers.js
index 9a268be14..0d0e102bc 100644
--- a/tests/e2e/perspective-kanban.helpers.js
+++ b/tests/e2e/perspective-kanban.helpers.js
@@ -17,6 +17,10 @@ export async function createColumn(columnName) {
export async function createMdCard(cardName, column = 'empty_folder') {
await clickOn('[data-tid=createCard_' + column + ']');
+ // The new-file dialog now opens on the template tile grid; pick the Markdown
+ // template to reach the editable name/content form (produces an .md file).
+ await clickOn('[data-tid=newFileTemplateTile_templateMd]');
+ await expectElementExist('[data-tid=newEntryDialogInputTID]', true, 5000);
await typeInputValue('[data-tid=newEntryDialogInputTID] input', cardName, 0);
const newValue = await global.client.locator('[data-tid=newEntryDialogInputTID] input').inputValue();
//console.log('newValue:'+dataTidFormat(newValue));