Skip to content

Commit

Permalink
Merge pull request obsidian-tasks-group#3064 from obsidian-tasks-grou…
Browse files Browse the repository at this point in the history
…p/more-date-picker-fixes-still

vault: Add smoke tests for date picker and date context menu
  • Loading branch information
claremacrae authored Sep 5, 2024
2 parents b663a42 + 9ca835a commit 8eaff15
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: Tasks-Demo-VerifyCommit-Build${{ github.run_number }}-Run${{ github.run_attempt }}
include-hidden-files: true
path: |
resources/sample_vaults/Tasks-Demo
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Smoke Testing the Tasks Plugin

*[[#Remaining tests|Jump to the tests...]]*

## Introduction

- **Intended audience of this note**
Expand Down Expand Up @@ -117,6 +119,34 @@ heading includes Rendering of Task Blocks

---

### Edit dates in Rendered Task Blocks

> [!Example]
>
> - [ ] #task Sample task: I have all the supported date types ➕ 2024-09-01 🛫 2024-09-02 ⏳ 2024-09-03 📅 2024-09-04 ❌ 2024-09-05 ✅ 2024-09-06
- View this file in **Reading mode**...
- On the task line above:
- [ ] #task **left**-click on a date value, and use the date picker to select and save a different date. Check that the date is updated.
- [ ] #task **left**-click on a date value, and click outside the date picker, to confirm that the picker closes.
- [ ] #task **right**-click on a date value, and use the context menu to select and save a different date. Check that the date is updated.
- [ ] #task **right**-click on a date value, and click outside the context menu, to confirm that the menu closes.
- In the tasks search block below:
- [ ] #task **left**-click on a date value, and use the date picker to select and save a different date. Check that the date is updated.
- [ ] #task **left**-click on a date value, and click outside the date picker, to confirm that the picker closes.
- [ ] #task **right**-click on a date value, and use the context menu to select and save a different date. Check that the date is updated.
- [ ] #task **right**-click on a date value, and click outside the context menu, to confirm that the menu closes.
- [ ] #task **check**: Checked all above steps for **editing dates** worked

```tasks
path includes {{query.file.path}}
description includes I have all the supported date types
hide backlink
hide postpone button
```

---

### Create or edit Task modal

- This text should copied in to the task Description, after following steps below
Expand All @@ -125,10 +155,12 @@ heading includes Rendering of Task Blocks
2. **Check** that the text in the list item is copied in to the Description field
3. Type some values in to the fields
4. In one of the date fields, type `tm` (including the space afterwards) and **Check** it is expanded in to `tomorrow`
5. Hit Return or click **Apply**
6. **Check** that the list item above is converted in to a task
7. **Check** that values you entered in the modal have been copied in to the list item above
8. **Check** that the `#task` tag has been added to the start of the task
5. In one of the date fields, left-click the calendar button, and use the context menu to select and save a date. Check that the date is saved.
6. In one of the date fields, left-click the calendar button, and click outside the date picker, to confirm that the picker closes and the modal is still usable.
7. Hit Return or click **Apply**
8. **Check** that the list item above is converted in to a task
9. **Check** that values you entered in the modal have been copied in to the list item above
10. **Check** that the `#task` tag has been added to the start of the task
- [ ] #task **check**: Checked all above steps for **creating a task via the modal** worked

---
Expand Down

0 comments on commit 8eaff15

Please sign in to comment.