-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from vitalyiegorov/maestro-e2e
test: added first maestro tests and selectors, fixed timer issues
- Loading branch information
Showing
115 changed files
with
1,228 additions
and
130 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = { | ||
ignore: '(dist|build|public|report)/|index.ts|_layout.tsx|.web.tsx?', | ||
ignore: '(dist|build|public|report)/|index.ts|_layout.tsx|.web.tsx?|selectors.ts', | ||
error: true | ||
}; |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+5.2 KB
.yarn/cache/css-shorthand-properties-npm-1.1.1-38b8b5d6a7-014b48e9fd.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+375 KB
.yarn/cache/devtools-protocol-npm-0.0.1120988-82183397aa-68eb7aa6a2.zip
Binary file not shown.
Binary file added
BIN
+384 KB
.yarn/cache/devtools-protocol-npm-0.0.1149535-5ad3f8d0de-00d13052fb.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+49.7 KB
.yarn/cache/loglevel-plugin-prefix-npm-0.8.4-612472140b-5fe0632fa0.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+266 KB
.yarn/cache/query-selector-shadow-dom-npm-1.0.1-9670bfb4f4-8ab1cdd5e1.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
import { Text } from 'react-native'; | ||
import { SafeAreaView } from 'react-native-safe-area-context'; | ||
|
||
import { BlackButton, Donation, Header, PageHeader, useAppDispatch } from '../../src/@generic'; | ||
import { gameResumeAction } from '../../src/game/store/game.actions'; | ||
import { BlackButton, Donation, Header, PageHeader } from '../../src/@generic'; | ||
import { useResumeGame } from '../../src/game'; | ||
|
||
import { PauseScreenStyles as styles } from './pause-screen.styles'; | ||
export default function PauseScreen() { | ||
const dispatch = useAppDispatch(); | ||
|
||
const handleResume = () => void dispatch(gameResumeAction()); | ||
export default function PauseScreen() { | ||
const handleResume = useResumeGame(); | ||
|
||
return ( | ||
<SafeAreaView style={styles.container}> | ||
<PageHeader title="Game paused" /> | ||
<Header text="Game paused" /> | ||
<Text style={styles.text} /> | ||
<Donation type="paused" /> | ||
<BlackButton href="game" onPress={handleResume} text="Resume" /> | ||
<BlackButton onPress={handleResume} text="Resume" /> | ||
</SafeAreaView> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#file: noinspection YAMLSchemaValidation | ||
appId: com.vitalyiegorov.suuudokuuu | ||
name: Gameplay | ||
env: | ||
# TODO: Load app with specific puzzle | ||
PUZZLE: 123 | ||
--- | ||
|
||
- runFlow: ./templates/start-game.template.yaml | ||
# Check cell selection and deselection | ||
- assertNotVisible: | ||
id: "CellSelectors.Active" | ||
- tapOn: | ||
id: "CellSelectors.Root" | ||
index: 12 | ||
retryTapIfNoChange: false | ||
- assertVisible: | ||
id: "CellSelectors.Active" | ||
|
||
# TODO: Can we assert highlighted cells count? | ||
- assertVisible: | ||
id: "CellSelectors.Highlighted" | ||
|
||
- tapOn: | ||
id: "CellSelectors.Active" | ||
retryTapIfNoChange: false | ||
- assertNotVisible: | ||
id: "CellSelectors.Active" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#file: noinspection YAMLSchemaValidation | ||
appId: com.vitalyiegorov.suuudokuuu | ||
name: Start a new game | ||
env: | ||
# TODO: Load app with specific puzzle | ||
PUZZLE: 123 | ||
|
||
--- | ||
|
||
- launchApp | ||
- tapOn: "Start new" | ||
- tapOn: "Newbie" | ||
- assertVisible: "0 / 3" | ||
- assertVisible: | ||
below: "Score" | ||
text: "0" | ||
- assertVisible: | ||
id: "CellSelectors.Root" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
src/game/components/available-values-item/available-value-item.selectors.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export enum AvailableValueItemSelectors { | ||
Root = 'AvailableValueItemSelectors.Root', | ||
Button = 'AvailableValueItemSelectors.Button' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export enum FieldCellSelectors { | ||
Root = 'CellSelectors.Root', | ||
Active = 'CellSelectors.Active', | ||
ActiveValue = 'CellSelectors.ActiveValue', | ||
Highlighted = 'CellSelectors.Highlighted' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.