-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f961a0
commit 3f12c05
Showing
27 changed files
with
360 additions
and
223 deletions.
There are no files selected for viewing
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
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
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,12 @@ | ||
### Prerequisites for running e2e tests | ||
Install the `maestro` e2e tool on your system. | ||
Clean the db with `npm run reset-db` in project root. | ||
|
||
For Android, have the Android Studio set up and start the app in an emulator in `./native` with `ANDROID_HOME=PATH_TO_ANDROID_SDK npm run expo -- start -a`. | ||
|
||
Of course, if testing edge functions, start them too. | ||
|
||
### Running the tests | ||
Run with `maestro test flow_name.yaml` | ||
|
||
The interactive `maestro studio` can be very helpful. |
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,67 @@ | ||
appId: app.invtrack.invtrack | ||
--- | ||
# Dodaj inwentaryzację | ||
- tapOn: | ||
id: "addNewStock" | ||
- tapOn: | ||
id: "toggleIsDelivery" | ||
- assertVisible: "Inwentaryzacja" | ||
- tapOn: "Nazwa" | ||
- inputText: "Inw 1" | ||
- tapOn: "Dodaj" | ||
|
||
# Dodaj produkty | ||
- scrollUntilVisible: | ||
element: | ||
text: "Podstawowe" | ||
- tapOn: "Podstawowe" | ||
- scrollUntilVisible: | ||
element: | ||
text: "Dodatki" | ||
- tapOn: "Dodatki" | ||
|
||
- tapOn: "Serwetki" | ||
- tapOn: "+10" | ||
- tapOn: | ||
id: "goBack" | ||
|
||
- tapOn: "Mąka" | ||
- tapOn: "+10" | ||
- tapOn: "+10" | ||
- tapOn: | ||
id: "goBack" | ||
|
||
- tapOn: "Jajka" | ||
- tapOn: "+10" | ||
- tapOn: | ||
id: "goBack" | ||
|
||
- tapOn: "Mleko" | ||
- tapOn: "+10" | ||
- tapOn: | ||
id: "goBack" | ||
|
||
- scrollUntilVisible: | ||
element: | ||
text: "Truskawki" | ||
|
||
- tapOn: "Nutella" | ||
- tapOn: "+5" | ||
- tapOn: | ||
id: "goBack" | ||
|
||
- tapOn: "Truskawki" | ||
- tapOn: "+5" | ||
- tapOn: | ||
id: "goBack" | ||
|
||
- scrollUntilVisible: | ||
direction: UP | ||
element: | ||
text: "Zapisz zmiany" | ||
- tapOn: "Zapisz zmiany" | ||
- assertVisible: "Zmiany zostały zapisane" | ||
- assertNotVisible: "Zmiany zostały zapisane" | ||
- tapOn: | ||
id: "goBack" | ||
- assertVisible: "Inw 1" |
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,27 @@ | ||
appId: app.invtrack.invtrack | ||
--- | ||
# Dodaj dostawę | ||
- tapOn: | ||
id: "addNewStock" | ||
- assertVisible: "Dostawa" | ||
- tapOn: "Nazwa" | ||
- inputText: "Dost 1" | ||
- tapOn: "Dodaj" | ||
- tapOn: | ||
id: "documentScanner" | ||
- tapOn: | ||
point: "50%,90%" | ||
- tapOn: "Wyślij" | ||
- tapOn: "Jajka opakowanie 10szt." | ||
- tapOn: "Jajka" | ||
- tapOn: "Mleko 1l" | ||
- tapOn: "Mleko" | ||
- tapOn: "Truskawki koszyk 565g" | ||
- tapOn: "Truskawki" | ||
- tapOn: "Serwetki opakowanie" | ||
- tapOn: "Serwetki" | ||
- tapOn: "Zapisz Zmiany" | ||
- tapOn: "Zapisz Zmiany" | ||
- tapOn: | ||
id: "goBack" | ||
- assertVisible: "Dost 1" |
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,14 @@ | ||
appId: app.invtrack.invtrack | ||
--- | ||
# Dodaj dostawę | ||
- tapOn: | ||
id: "addNewStock" | ||
- tapOn: | ||
id: "toggleIsDelivery" | ||
- assertVisible: "Inwentaryzacja" | ||
- tapOn: "Nazwa" | ||
- inputText: "Inw 2" | ||
- tapOn: "Dodaj" | ||
- tapOn: | ||
id: "goBack" | ||
- assertVisible: "Inw 2" |
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,16 @@ | ||
appId: app.invtrack.invtrack | ||
--- | ||
- launchApp: | ||
clearState: true | ||
- tapOn: | ||
text: .*^http.* | ||
- tapOn: "Continue" | ||
- tapOn: | ||
point: "50%,15%" | ||
- tapOn: "Zaloguj się" | ||
- tapOn: "E-mail" | ||
- inputText: "[email protected]" | ||
- tapOn: "Hasło" | ||
- inputText: "aaaaaa" | ||
- tapOn: "Zaloguj się" | ||
- assertNotVisible: "Zaloguj się" |
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 @@ | ||
appId: app.invtrack.invtrack | ||
--- | ||
- runFlow: "clean_login.yaml" | ||
- runFlow: "add_stock1_inventory.yaml" | ||
- runFlow: "add_stock2_delivery.yaml" | ||
- runFlow: "add_stock3_inventory.yaml" |
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.