Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Add first UI test #151

Closed
wants to merge 3 commits into from
Closed

test: Add first UI test #151

wants to merge 3 commits into from

Conversation

fabriziodemaria
Copy link
Member

@fabriziodemaria fabriziodemaria commented Jul 3, 2024

  • Fetches the expected variant from backend, updates the text on screen with the expected value "Yellow"

Comment on lines +19 to +25
func testGetFlagValue() {
let app = XCUIApplication()
let button = app.buttons["flag_button"]
button.tap()
let flag = app.staticTexts["flag_text"]
XCTAssertEqual(flag.label, "Yellow")
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The actual test logic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant