Bahn-X / swift-composable-navigator

An open source library for building deep-linkable SwiftUI applications with composition, testing and ergonomics in mind
MIT License
581 stars 25 forks source link

Add UI tests in Example app #21

Closed ohitsdaniel closed 3 years ago

ohitsdaniel commented 3 years ago

As ComposableNavigator heavily relies on SwiftUI to work as expected, we should add UI tests to the example app to check if all navigation actions work as expected.

Flows to cover:

--> Adding elements Root -> Push Root -> Sheet

Root -> Push -> Push Root -> Push -> Sheet

Root -> Sheet -> Push Root -> Sheet -> Sheet

--> Removing elements Root -> Push [Remove Push] Root

Root -> Sheet [Remove Sheet] Root

Root -> Push -> Push [Remove Push] Root -> Push

Root -> Push -> Sheet [Remove Sheet] Root -> Push

Root -> Sheet -> Push [Remove Push] Root -> Sheet

Root -> Sheet -> Sheet [Remove Sheet] Root -> Sheet

--> Replacing paths (that's a lot of permutations) Root -> Push Root -> Sheet Root -> Push -> Push Root -> Push -> Sheet Root -> Sheet -> Push Root -> Sheet -> Sheet [Replace path] Root -> Push Root -> Sheet Root -> Push -> Push Root -> Push -> Sheet Root -> Sheet -> Push Root -> Sheet -> Sheet