-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add BuildingInformation basic system acceptance test
rename files to corresponding USs #31
- Loading branch information
1 parent
cb4e5ed
commit 596c0ec
Showing
3 changed files
with
36 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
const { reloadApp } = require("detox-expo-helpers"); | ||
import { BuildingId } from "../src/types/main"; | ||
|
||
beforeAll(async () => { | ||
await reloadApp(); | ||
}); | ||
|
||
describe("BuildingInformation component", () => { | ||
const EV = BuildingId[BuildingId.EV]; | ||
const polygonEV = "polygon" + EV; | ||
|
||
it("should show minimal building information0", async () => { | ||
// await expect(element(by.id("mapView"))).toExist(); | ||
// await console.log("mapView exists"); | ||
// await expect(element(by.id("mapView"))).toBeVisible(); | ||
// await console.log("mapView is visible"); | ||
await expect(element(by.id(polygonEV))).toBeNotVisible(); | ||
await element(by.id("mapView")).pinchWithAngle("outward", "slow", 0); | ||
// await element(by.id("mapView")).pinchWithAngle("outward", "slow", 0); | ||
await console.log("pinched and zoomed into mapView"); | ||
// await expect(element(by.id(polygonEV))).toBeVisible(); | ||
// await console.log("EV is visible"); | ||
await element(by.id(polygonEV)).tap(); | ||
await console.log("tapped on EV"); | ||
// await expect(element(by.id(polygonH))).toExist(); | ||
// await expect(element(by.id(polygonH))).toBeNotVisible(); | ||
// await element(by.id(polygonH)).pinchWithAngle("inward", "slow", 0); | ||
// await console.log("polygonH exists"); | ||
// await element(by.id("poly")) | ||
// await element(by.id("polygon" + H)).longPress(); | ||
// console.log("tapped on H"); | ||
// await expect(element(by.id("polygon" + H))).toExist(); | ||
}); | ||
}); |
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