Tests
This commit is contained in:
parent
ad744856f7
commit
b991d3a40b
|
|
@ -13,7 +13,8 @@ AppState appReducer(AppState state, dynamic action) {
|
||||||
if (action is UserLogout) {
|
if (action is UserLogout) {
|
||||||
return AppState().rebuild((b) => b
|
return AppState().rebuild((b) => b
|
||||||
..authState.replace(state.authState)
|
..authState.replace(state.authState)
|
||||||
..uiState.enableDarkMode = state.uiState.enableDarkMode
|
..uiState.enableDarkMode =
|
||||||
|
state.uiState.enableDarkMode || state.uiState.isTesting
|
||||||
..uiState.isTesting = state.uiState.isTesting);
|
..uiState.isTesting = state.uiState.isTesting);
|
||||||
} else if (action is LoadStateSuccess) {
|
} else if (action is LoadStateSuccess) {
|
||||||
return action.state.rebuild((b) => b
|
return action.state.rebuild((b) => b
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,9 @@ void main() {
|
||||||
print('Click back');
|
print('Click back');
|
||||||
await driver.tap(find.pageBack());
|
await driver.tap(find.pageBack());
|
||||||
await driver.waitFor(find.byTooltip(localization.newProduct));
|
await driver.waitFor(find.byTooltip(localization.newProduct));
|
||||||
|
} else {
|
||||||
|
print('Click cancel');
|
||||||
|
await driver.tap(find.text(localization.cancel));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue