Commit 1b513ca
committed
fix(e2e): Fix flaky EditArticle test by waiting for Update button visibility
The test was failing intermittently because it checked button enabled state
before the article data finished loading. In some cases, the form still
showed "Publish Article" (new mode) instead of "Update Article" (edit mode).
Fix: Wait for "Update Article" button to be VISIBLE before modifying the
title. This confirms the slug is loaded and we're in edit mode. Then wait
for ENABLED state after form modifications.
Fixes timeout in EditArticle_AuthorCanModify E2E test.1 parent cfbd2d5 commit 1b513ca
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
88 | 93 | | |
89 | 94 | | |
90 | 95 | | |
91 | 96 | | |
92 | | - | |
93 | | - | |
94 | | - | |
| 97 | + | |
| 98 | + | |
95 | 99 | | |
96 | 100 | | |
97 | 101 | | |
| |||
0 commit comments