Skip to content

Commit 9ed44d5

Browse files
committed
tests fixes
1 parent a165a54 commit 9ed44d5

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

appium/tests/helpers/TouchHelper.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ class TouchHelper {
175175
type: 'pointerMove',
176176
origin: 'viewport',
177177
},
178-
{ button: 1, type: 'pointerDown' },
178+
{ button: 0, type: 'pointerDown' },
179179
{ duration: 600, type: 'pause' },
180180
{
181181
duration: 600,
@@ -184,7 +184,7 @@ class TouchHelper {
184184
type: 'pointerMove',
185185
origin: 'viewport',
186186
},
187-
{ button: 1, type: 'pointerUp' },
187+
{ button: 0, type: 'pointerUp' },
188188
],
189189
},
190190
]);
@@ -195,7 +195,8 @@ class TouchHelper {
195195
const location = await element.getLocation();
196196
const size = await element.getSize();
197197

198-
const x = side === 'leading' ? 0 : window.width - 50;
198+
const actionTapInset = Math.min(50, size.width / 4);
199+
const x = side === 'leading' ? actionTapInset : window.width - actionTapInset;
199200
const y = location.y + size.height / 2;
200201

201202
await driver.performActions([

appium/tests/screenobjects/email.screen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ class EmailScreen extends BaseScreen {
210210
if (text.length > 0) {
211211
expect(messageElValue).toContain(text);
212212
} else {
213-
expect(messageElValue).toBeNull();
213+
expect(messageElValue).toEqual('');
214214
}
215215
};
216216

0 commit comments

Comments
 (0)