Skip to content

Commit 2a8a4db

Browse files
author
Dimitar Todorov
committed
Fix: separate android/ios de_DE date - day extract
1 parent b0c4fdd commit 2a8a4db

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

demo-angular/e2e/config/appium.capabilities.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
},
108108
"sim.iPhoneX": {
109109
"platformName": "iOS",
110-
"platformVersion": "12.0",
110+
"platformVersion": "/12.*/",
111111
"deviceName": "iPhone X",
112112
"appium-version": "1.9.1",
113113
"app": "",

demo-angular/e2e/tests.e2e.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ describe("DateTimePicker", () => {
165165
expect(rejectBtn).to.exist;
166166
expect(title).to.exist;
167167
await acceptBtn.click();
168-
let day = date.substring(0, date.indexOf("."));
168+
let index = driver.isAndroid ? " " : "."
169+
let day = date.substring(0, date.indexOf(index));
169170
let month = date.substring(date.indexOf(" ") + 1, date.indexOf(","));
170171
month = month.substring(0, 3);
171172
let monthString = deMonths[month];

0 commit comments

Comments
 (0)