summaryrefslogtreecommitdiff
path: root/e2e/firstTest.spec.js
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-07-14 15:10:31 +0200
committerThomas F. K. Jorna <[email protected]>2021-07-14 15:10:31 +0200
commite5021187e96b78b53203bd95d08d6818aea47d17 (patch)
tree37ec45d00eb963db53cd4bb4f04a770414b351cc /e2e/firstTest.spec.js
New Ignite 7.0.6 app
Diffstat (limited to 'e2e/firstTest.spec.js')
-rw-r--r--e2e/firstTest.spec.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/e2e/firstTest.spec.js b/e2e/firstTest.spec.js
new file mode 100644
index 0000000..a407fd3
--- /dev/null
+++ b/e2e/firstTest.spec.js
@@ -0,0 +1,19 @@
+// For more info on how to write Detox tests, see the official docs:
+// https://github.com/wix/Detox/blob/master/docs/README.md
+
+const { reloadApp } = require("./reload")
+
+describe("Example", () => {
+ beforeEach(async () => {
+ await reloadApp()
+ })
+
+ it("should have welcome screen", async () => {
+ await expect(element(by.id("WelcomeScreen"))).toBeVisible()
+ })
+
+ it("should go to next screen after tap", async () => {
+ await element(by.id("next-screen-button")).tap()
+ await expect(element(by.id("DemoScreen"))).toBeVisible()
+ })
+})