-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathweek4.test.js
34 lines (28 loc) · 1.16 KB
/
week4.test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
const { wdi5 } = require("wdio-ui5-service")
const Detail = require("./pageObjects/Detail")
const Main = require("./pageObjects/Main")
/*
You have all done a great job so far in building an app that passes predefined tests 🎉
Now it's time to take it one step further and write your own tests 🚀
For week 4 the task is to write a minimum of 2 tests and make them pass ✅✅
There are no boundaries, get creative and explore the framework 🎨
You can get inspiration here:
🗓 test files of the previous weeks
ℹ️ examples in wdi5 repository: https://github.com/js-soft/wdi5/tree/main/examples/ui5-js-app/e2e-test-config
📚 official wdi5 documentation: https://js-soft.github.io/wdi5/#/
You can share your results and experience in the SAP Community 💙
https://groups.community.sap.com/t5/coffee-corner-discussions/sap-community-code-challenge-testing-ui5-apps-with-wdi5/td-p/5229
*/
describe("week4: main or detail page ...", () => {
before(async () => {
await Main.open()
// or
await Detail.open()
})
it("", async () => {
// your first test
})
it("", async () => {
// your second test
})
})