Skip to content

Commit 02b7135

Browse files
test(ui): find scheduled scan e2e row in In Progress tab (#11385)
1 parent 7425135 commit 02b7135

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

ui/tests/scans/scans-page.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,13 @@ export class ScansPage extends BasePage {
171171
// 1. The provider exists in the table (by account ID/UID)
172172
// 2. The scan name field contains "scheduled scan"
173173

174-
// Scheduled scans live in the Scheduled tab; /scans defaults to Completed,
175-
// which would show an empty-state card (no table) in a fresh environment.
176-
await this.gotoTab("scheduled");
174+
// Adding a provider first creates a scheduled-trigger scan in the
175+
// AVAILABLE state (the immediate first run), which the tabbed view lists
176+
// under "In Progress" — not "Scheduled" (that tab only shows state=scheduled,
177+
// a later run created asynchronously). /scans defaults to Completed, which
178+
// would show an empty-state card (no table) in a fresh environment, so
179+
// navigate to the active tab where this row actually appears.
180+
await this.gotoTab("active");
177181
await this.verifyPageLoaded();
178182

179183
// Find a row that contains the account ID (provider UID in Provider column)

0 commit comments

Comments
 (0)