mirror of
https://codeberg.org/secana/Forji.git
synced 2026-06-16 05:13:55 -07:00
test: assert filter summary is hidden by default and shown for a non-default scope
This commit is contained in:
parent
3aaaa68f96
commit
f11db75036
2 changed files with 8 additions and 8 deletions
|
|
@ -37,17 +37,17 @@ final class IssueUITests: ForgejoReadOnlyUITestBase {
|
|||
// Wait for list to load
|
||||
XCTAssertTrue(app.cells.firstMatch.waitForExistence(timeout: 10), "Issues should load")
|
||||
|
||||
// Default filter summary should show "Open" (default scope is All involvement)
|
||||
// In the default state (Open + All involvement) the summary is hidden.
|
||||
let filterSummary = app.staticTexts["filter-summary"]
|
||||
XCTAssertTrue(filterSummary.waitForExistence(timeout: 5))
|
||||
XCTAssertEqual(filterSummary.label, "Open")
|
||||
XCTAssertFalse(filterSummary.exists, "Filter summary should be hidden in the default state")
|
||||
|
||||
let filterMenuButton = app.buttons["filter-menu-button"]
|
||||
|
||||
// Tap "Assigned to you" via filter menu
|
||||
// Selecting a non-default scope reveals the summary.
|
||||
filterMenuButton.tap()
|
||||
app.buttons["Assigned to you"].tap()
|
||||
sleep(2)
|
||||
XCTAssertTrue(filterSummary.waitForExistence(timeout: 5))
|
||||
XCTAssertTrue(filterSummary.label.contains("Assigned to you"))
|
||||
|
||||
// Tap "Mentioned" via filter menu
|
||||
|
|
|
|||
|
|
@ -111,17 +111,17 @@ final class PullRequestUITests: ForgejoReadOnlyUITestBase {
|
|||
// Reset filters to defaults (previous test may have changed them)
|
||||
resetOverviewFilters()
|
||||
|
||||
// Default filter summary should show "Open" (default scope is All involvement)
|
||||
// In the default state (Open + All involvement) the summary is hidden.
|
||||
let filterSummary = app.staticTexts["filter-summary"]
|
||||
XCTAssertTrue(filterSummary.waitForExistence(timeout: 5))
|
||||
XCTAssertEqual(filterSummary.label, "Open")
|
||||
XCTAssertFalse(filterSummary.exists, "Filter summary should be hidden in the default state")
|
||||
|
||||
let filterMenuButton = app.buttons["filter-menu-button"]
|
||||
|
||||
// Tap "Assigned to you" via filter menu
|
||||
// Selecting a non-default scope reveals the summary.
|
||||
filterMenuButton.tap()
|
||||
app.buttons["Assigned to you"].tap()
|
||||
sleep(2)
|
||||
XCTAssertTrue(filterSummary.waitForExistence(timeout: 5))
|
||||
XCTAssertTrue(filterSummary.label.contains("Assigned to you"))
|
||||
|
||||
// Tap "Mentioned" via filter menu
|
||||
|
|
|
|||
Loading…
Reference in a new issue