Skip to content

Commit 1bc2603

Browse files
committed
test: - Revert unintended changes to the Styling docs.
Spotted when I saw the PR that would update the docs: #3691
1 parent 10a49f8 commit 1bc2603

3 files changed

+6
-2
lines changed

tests/Renderer/QueryResultsRenderer.test.QueryResultsRenderer_tests_fully_populated_task.approved.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
-->
44

55
<div>
6+
<div class="plugin-tasks-toolbar"><button test-icon="lucide-copy" test-tooltip="Copy results"></button></div>
67
<ul class="contains-task-list plugin-tasks-query-result">
78
<li
89
class="task-list-item plugin-tasks-list-item"

tests/Renderer/QueryResultsRenderer.test.QueryResultsRenderer_tests_fully_populated_task_-_short_mode.approved.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
-->
44

55
<div>
6+
<div class="plugin-tasks-toolbar"><button test-icon="lucide-copy" test-tooltip="Copy results"></button></div>
67
<ul class="contains-task-list plugin-tasks-query-result tasks-layout-short-mode">
78
<li
89
class="task-list-item plugin-tasks-list-item"

tests/Renderer/QueryResultsRenderer.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,15 @@ describe('QueryResultsRenderer tests', () => {
101101
});
102102

103103
it('fully populated task', async () => {
104+
// The approved file from this test is embedded in the user documentation.
104105
const allTasks = [TaskBuilder.createFullyPopulatedTask()];
105-
await verifyRenderedTasksHTML(allTasks, 'show urgency');
106+
await verifyRenderedTasksHTML(allTasks, 'show toolbar\nshow urgency');
106107
});
107108

108109
it('fully populated task - short mode', async () => {
110+
// The approved file from this test is embedded in the user documentation.
109111
const allTasks = [TaskBuilder.createFullyPopulatedTask()];
110-
await verifyRenderedTasksHTML(allTasks, 'show urgency\nshort mode');
112+
await verifyRenderedTasksHTML(allTasks, 'show toolbar\nshow urgency\nshort mode');
111113
});
112114

113115
it('fully populated task - hidden fields', async () => {

0 commit comments

Comments
 (0)