Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

Commit

Permalink
refactor: improve api
Browse files Browse the repository at this point in the history
* chore: fix promise issue using cypress

* refactor: improve public api

BREAKING CHANGE: api changed

* feat: improve public api

merge scroll functions into scrollTo

* test: add browserstack tests

replace cypress with browserstack for better browser support

Squashed commit of the following:

commit 9f91793ff5a2a46d7b217c5cc0b4e195f99d803e
Author: David Perez Alvarez <[email protected]>
Date:   Mon Apr 29 00:08:58 2019 -0400

    test: improve tests

commit 4dae7a7
Author: David Perez Alvarez <[email protected]>
Date:   Sun Apr 28 22:59:28 2019 -0400

    test: change to TDD

    change 'describe' for 'suit'

commit db8bfab
Author: David Perez Alvarez <[email protected]>
Date:   Sun Apr 28 20:44:33 2019 -0400

    test: improve tests

commit 5f6ca6b
Author: David Perez Alvarez <[email protected]>
Date:   Sun Apr 28 18:40:11 2019 -0400

    test: remove cypress

commit f0af97d
Author: David Perez Alvarez <[email protected]>
Date:   Sun Apr 28 18:36:34 2019 -0400

    test: add basic scroll test

commit 34fef3c
Author: David Perez Alvarez <[email protected]>
Date:   Sun Apr 28 17:45:34 2019 -0400

    test: basic browserstack test config

* chore: remove yarn.lock

* chore: new api

* feat: add getElementPlacement

* fix: proper handling of scroll to element "percent"

* chore: use scrollSize as avaliable scroll instead of scrollSize

* fix: scrolling in document element

* perf: replace ScrollElement class with functions

* refactor: remove unnecessary getters

* refactor: change detection of external scroll

* perf: not removing all scroll animations

* fix: scrollSize getter

* fix: make tests use new api

* refactor: move "element" function logic to 'ScrollElement'

* fix: remove browserstack scripts returning cyclic structures

* test: improve centerElement test

* refactor: improve api

* docs(wip): update readme

* refactor: rename elementRelativePosition => relativeElementPosition

* docs: update readme

* test: update test for elementPosition

* test: use min capabilities test

* fix: getDistToCenterElement not working

* fix: update properly animation position after user scroll

* fix: test capabilities

* test: reduce precision

* refactor: fix codeclimate issues

* docs: add browserstack logo
  • Loading branch information
davidpa9708 authored May 2, 2019
1 parent e06fd2c commit a241856
Show file tree
Hide file tree
Showing 26 changed files with 17,883 additions and 10,400 deletions.
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ after_success:
branches:
except:
- /^v\d+\.\d+\.\d+$/
addons:
browserstack:
username: "davidperezalvare2"
access_key:
secure: "dpuVt4hlUw7lTHwbZ4KiLFP7DfEHtv8UsQg7YhBmkMXyNQlz5sX4M5+U3ZN9Y0x1LQBaVr1jeFnKsMKYsFkg2kr54Wy2udjcy8melsgu/9cJXthUiRf8WB2aXXtEayITjV/CnY4UCgRYIcCmBeyn9RNPeA3PJIm//TmgDanERPMBYQZ5ELubHxcaLsU/YaYZPPvwdIbZy4OFZdbA0M/SiSTGs3iN5EJaSOJHKWxsTGVLZht+XiXGuvRCQJyVMuvZ+SwXTh8OWggRwnarWvYl43ETQqWNSiOBYfDB8t4mQutkC7kbcG+j2Cc8hJXvAaje0Wq410lkyfL7f4i4tgm3SVhrTUmPlkXxONHEoD/izwtJOgoJ3mbawqhgWFSNkExYG7Czip231uxGEridobzuvL2XFv5LYy8UrOEVzrsAWsUOGomH5/BxBVH1ZlhY/2lwXPnoWciEdbXnfwjEBC0F5mk0JIbGO2X9okTX0r1ECkcKKJXNZaJq1YiibPjs3jkDqd7WXVM41Gn07kiyi3LCnqStWCQAhRhnrxms0FMIU3z31OhqssSdiuwxYvlXD9ax77A4446W5nm7Gzz7DXU9N9vBrhg469dRurooFW5/VOZSjGtJ7/UM8H6z8nQduVEoG63Zmmftmnz+qHcrAvLVVMmROyu9j7V6y0BEHE/9jUY="
413 changes: 220 additions & 193 deletions README.md

Large diffs are not rendered by default.

Binary file added assets/BrowserStack-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions cypress.json

This file was deleted.

21 changes: 0 additions & 21 deletions cypress/common.ts

This file was deleted.

8 changes: 0 additions & 8 deletions cypress/plugins.js

This file was deleted.

Binary file removed cypress/screenshots/misc.ts/bottom.png
Binary file not shown.
Binary file removed cypress/screenshots/misc.ts/centered.png
Binary file not shown.
Binary file removed cypress/screenshots/misc.ts/top.png
Binary file not shown.
8 changes: 0 additions & 8 deletions cypress/tests/basic.ts

This file was deleted.

36 changes: 0 additions & 36 deletions cypress/tests/misc.ts

This file was deleted.

12 changes: 0 additions & 12 deletions cypress/tsconfig.json

This file was deleted.

16 changes: 0 additions & 16 deletions cypress/webpack.config.js

This file was deleted.

Loading

0 comments on commit a241856

Please sign in to comment.