You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add UI tests for components screen (to ensure it remains empty)
Update of course CHANGELOG, documentation if needed, etc.
Keep updated the ShowcaseUITestPlan
Other details
Previous tests defined for fake components can be used (not as is and improved of course).
For each tokens groupe, define an XCTestCase file and add as many test functions as tokens and theme combinations. For example, create a OUDSTokensElevationUITests file with 9 x 3 test functions (3 thèmes, 9 tokens).
import OUDSComponents
import OUDSThemesOrange
import OUDSThemesSosh
import OUDSThemesInverse
import SwiftUI
import XCTest
/// Class to make UI tests on the fake component `OUDSFormsTextInput` using the/// [swift-snapshot-testing](https://github.com/pointfreeco/swift-snapshot-testing) library.finalclassOUDSFormsTextInputUITests:XCTestCase{// MARK: - WrapperprivatestructTestFormsTextInput:View{@Stateprivatevarvalue:String=""varbody:someView{OUDSFormsTextInput(label:"Some label", hint:"Some hint", placeholder:"Add text here", value: $value)}}// MARK: - Testsfunc testOUDSFormsTextInput_OrangeTheme(){Snapshot.assert(TestFormsTextInput().environment(\.theme,OrangeTheme()), testName:"\(#function)OrangeTheme")}func testOUDSFormsTextInput_SoshTheme(){Snapshot.assert(TestFormsTextInput().environment(\.theme,SoshTheme()), testName:"\(#function)SoshTheme")}func testOUDSFormsTextInput_InverseTheme(){Snapshot.assert(TestFormsTextInput().environment(\.theme,InverseTheme()), testName:"\(#function)InverseTheme")}}
The text was updated successfully, but these errors were encountered:
Description
The demo applicaiton now exposes tokens and renders them.
However lot of UI tests are missing and should be added for eack token section.
The swift-snpashot-testing must be used.
Definition of Done
Other details
Previous tests defined for fake components can be used (not as is and improved of course).
For each tokens groupe, define an
XCTestCase
file and add as many test functions as tokens and theme combinations. For example, create aOUDSTokensElevationUITests
file with 9 x 3 test functions (3 thèmes, 9 tokens).The text was updated successfully, but these errors were encountered: