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 84a6f64
Show file tree
Hide file tree
Showing 2 changed files with 10 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
5 changes: 5 additions & 0 deletions scripts/ci.android.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash -e

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

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

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

pushd detox/android
Expand Down

0 comments on commit 84a6f64

Please sign in to comment.