Skip to content

Commit

Permalink
Fix e2e/CI issues
Browse files Browse the repository at this point in the history
  • Loading branch information
d4vidi committed Jun 2, 2019
1 parent bca1eba commit 7d10482
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion detox/test/e2e/03.fs-scroll-actions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ describe('Fullscreen scrolling Actions', () => {
await expect(scrollViewDriver.firstItem()).toBeVisible();
await expect(scrollViewDriver.lastItem()).toBeNotVisible();

await scrollViewDriver.scrollBy(1000);
try {
await scrollViewDriver.scrollBy(1000);
} catch (error) {
console.log('Expected error caught: Scrolled the list down to its very end');
}
await expect(scrollViewDriver.firstItem()).toBeNotVisible();
await expect(scrollViewDriver.lastItem()).toBeVisible();
});
Expand Down
3 changes: 3 additions & 0 deletions scripts/ci.android.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash -e

# Approve unapproved SDK licenses
("yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses")

source $(dirname "$0")/ci.sh

pushd detox/android
Expand Down

0 comments on commit 7d10482

Please sign in to comment.