mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2026-05-10 22:31:05 -07:00
fix(e2e): more file cycles in smoke test for sustained-load measurement
Single create/modify/delete only captures first-launch watcher latency (6.4s), but main test watcher degrades 3-10× under multi-scenario load. Add second file cycle to measure performance after sustained watcher use.
This commit is contained in:
parent
fb0a2711f7
commit
e0af582103
1 changed files with 21 additions and 4 deletions
|
|
@ -29,18 +29,35 @@ Feature: TidGi Application Launch
|
|||
When I click on a "default wiki workspace button" element with selector "div[data-testid^='workspace-']:has-text('wiki')"
|
||||
Then the browser view should be loaded and visible
|
||||
And I wait for SSE and watch-fs to be ready
|
||||
# Stress-test the watcher with actual file operations
|
||||
# This exercises the full watch-fs pipeline: detect → load → sync
|
||||
# Stress-test the watcher with repeated file operations
|
||||
# Running multiple create/modify/delete cycles captures watcher
|
||||
# performance degradation that occurs in the full test suite
|
||||
When I create file "{tmpDir}/wiki/tiddlers/CalibrationProbe.tid" with content:
|
||||
"""
|
||||
created: 20250226070000000
|
||||
modified: 20250226070000000
|
||||
title: CalibrationProbe
|
||||
|
||||
Probe content for calibration measurement
|
||||
Initial probe content
|
||||
"""
|
||||
Then I wait for tiddler "CalibrationProbe" to be added by watch-fs
|
||||
When I modify file "{tmpDir}/wiki/tiddlers/CalibrationProbe.tid" to contain "Modified probe content"
|
||||
When I modify file "{tmpDir}/wiki/tiddlers/CalibrationProbe.tid" to contain "Modified probe content v1"
|
||||
Then I wait for tiddler "CalibrationProbe" to be updated by watch-fs
|
||||
When I modify file "{tmpDir}/wiki/tiddlers/CalibrationProbe.tid" to contain "Modified probe content v2"
|
||||
Then I wait for tiddler "CalibrationProbe" to be updated by watch-fs
|
||||
When I delete file "{tmpDir}/wiki/tiddlers/CalibrationProbe.tid"
|
||||
Then I wait for tiddler "CalibrationProbe" to be deleted by watch-fs
|
||||
# Second file cycle — measures performance under sustained watcher load
|
||||
When I create file "{tmpDir}/wiki/tiddlers/CalibrationProbe2.tid" with content:
|
||||
"""
|
||||
created: 20250226070000000
|
||||
modified: 20250226070000000
|
||||
title: CalibrationProbe2
|
||||
|
||||
Second probe content
|
||||
"""
|
||||
Then I wait for tiddler "CalibrationProbe2" to be added by watch-fs
|
||||
When I modify file "{tmpDir}/wiki/tiddlers/CalibrationProbe2.tid" to contain "Modified probe2 content"
|
||||
Then I wait for tiddler "CalibrationProbe2" to be updated by watch-fs
|
||||
When I delete file "{tmpDir}/wiki/tiddlers/CalibrationProbe2.tid"
|
||||
Then I wait for tiddler "CalibrationProbe2" to be deleted by watch-fs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue