-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: setup interaction testing #1895
Merged
Merged
Changes from all commits
Commits
Show all changes
102 commits
Select commit
Hold shift + click to select a range
29f3944
upgrade to storybook v7
chaitanyadeorukhkar c064b01
revert resolutions
chaitanyadeorukhkar d5cc772
make android & package changes
chaitanyadeorukhkar f999c7c
make ios changes
chaitanyadeorukhkar a348073
get ios working
chaitanyadeorukhkar 2aa3d82
make android work
chaitanyadeorukhkar a1d4124
update lockfile
chaitanyadeorukhkar 55533c3
update to react native 0.72.3
chaitanyadeorukhkar 8a2b164
Merge branch 'master' into build/upgrade-react-native-72.3
kamleshchandnani eeaff79
Merge branch 'master' into build/upgrade-react-native-72.3
kamleshchandnani d3ee011
fix some ts errors
chaitanyadeorukhkar 871dcb8
chore: upgrde jest to v29
snitin315 664534f
fix: create react-native-reanimated patch
snitin315 5110072
fix: tests
snitin315 4d1f8cc
chore: fix react-native issues
snitin315 eb6babf
test: fix react native tests
snitin315 a21fd86
chore: fix react native tests
snitin315 93edb94
test: fix ProgressBar test cases
snitin315 329eedd
test: update snapshots
snitin315 3fa56a3
test: fix styles in snapshots
snitin315 fc452a2
ci: enable jest sharding
snitin315 2b53c42
test: update Tooltip snapshot
snitin315 71a254b
test: update Tooltip snapshot
snitin315 ff460bb
fix TS errors
chaitanyadeorukhkar f5f5f9f
readd editorconfig
chaitanyadeorukhkar 3b0ed78
new line
chaitanyadeorukhkar c758109
update resolutions
chaitanyadeorukhkar 2642f30
Create proud-roses-buy.md
chaitanyadeorukhkar 8606b4e
fix Sandbox initialization for react 18
chaitanyadeorukhkar 96ab835
Merge remote-tracking branch 'origin/feat/upgrade-jest' into build/up…
chaitanyadeorukhkar ea42401
fix tests
chaitanyadeorukhkar 91168ac
Update .github/workflows/blade-validate.yml
snitin315 0d7af06
Merge branch 'master' into feat/upgrade-jest
snitin315 dd10d9e
chore: update snaps
snitin315 2465ed8
chore: patch bundlemon
snitin315 9759702
ci: apply patches when cache-hit
snitin315 1885bc2
ci: apply patches when cache-hit
snitin315 9cb4973
fix react native tests
chaitanyadeorukhkar 1969896
Merge remote-tracking branch 'origin/master' into build/upgrade-react…
chaitanyadeorukhkar bbecde4
Merge remote-tracking branch 'origin/feat/upgrade-jest' into build/up…
chaitanyadeorukhkar e438c9b
fix typos
chaitanyadeorukhkar 32dea13
Merge remote-tracking branch 'origin/master' into build/upgrade-react…
chaitanyadeorukhkar cad7dda
resolve TS issue
chaitanyadeorukhkar 3dab290
update snapshots
chaitanyadeorukhkar 79befc0
add extra timeout for BottomSheet test
chaitanyadeorukhkar e385231
Merge remote-tracking branch 'origin/master' into build/upgrade-react…
chaitanyadeorukhkar b708e86
Update proud-roses-buy.md
chaitanyadeorukhkar b675dce
update useMakeFigmaURL
chaitanyadeorukhkar e94e964
upgrade storybook RN
chaitanyadeorukhkar 486493d
Merge remote-tracking branch 'origin/build/upgrade-react-native-72.3-…
chaitanyadeorukhkar a342107
resolve babel plugin issue
chaitanyadeorukhkar 6560dbd
get react native storybook working (kinda)
chaitanyadeorukhkar 1ed9332
update yarn.lock & remove sbmodern from metro config
chaitanyadeorukhkar d8a3dcc
update to alpha 5
chaitanyadeorukhkar ac724c7
Merge remote-tracking branch 'origin/master' into build/storybook-upg…
chaitanyadeorukhkar e039efc
fix globals usage
chaitanyadeorukhkar 29cbb03
include internal stories
chaitanyadeorukhkar 7c69a8b
Merge remote-tracking branch 'origin/master' into build/storybook-upg…
chaitanyadeorukhkar 19e6ca1
Delete proud-roses-buy.md
chaitanyadeorukhkar 0862f31
update lock icon
chaitanyadeorukhkar 2fcb3db
Merge remote-tracking branch 'origin/master' into build/storybook-upg…
chaitanyadeorukhkar a2d154c
fix css on mdx
chaitanyadeorukhkar 5f21851
fix missing docs and Sandbox errors
chaitanyadeorukhkar 1d6cfa8
make internal stories work
chaitanyadeorukhkar f5e7297
Merge remote-tracking branch 'origin/master' into build/storybook-upg…
chaitanyadeorukhkar 438004f
fix web stories
chaitanyadeorukhkar 4691661
update storybook requires
chaitanyadeorukhkar 680097e
update docs to use tag autodocs
chaitanyadeorukhkar 5715ba1
feat: setup interaction testing
kamleshchandnani ff3dec6
fix types
chaitanyadeorukhkar a241fc6
Merge remote-tracking branch 'origin/master' into build/storybook-upg…
chaitanyadeorukhkar 720c354
Merge branch 'build/storybook-upgrade-v7-with-rn-upgrade' of github.c…
kamleshchandnani 975db64
remove unused file
chaitanyadeorukhkar e7d8a67
revert changes
chaitanyadeorukhkar b391679
remove overrideTheme story
chaitanyadeorukhkar c8dabad
replace ComponentStory with StoryFn
chaitanyadeorukhkar 8c5d6a0
update Snapshot
chaitanyadeorukhkar 8261d96
remove overrideTheme storybook
chaitanyadeorukhkar e4c0a50
update Podfile
chaitanyadeorukhkar deb9dd3
fix: add carousel fixes and interaction tests
kamleshchandnani e46d72c
Merge branch 'build/storybook-upgrade-v7-with-rn-upgrade' of github.c…
kamleshchandnani f8e0fbd
chore: replace ComponentStory type with StoryFn
kamleshchandnani b2d13f1
Merge branch 'master' of github.com:razorpay/blade into setup-interac…
kamleshchandnani d5e8478
tests: update snapshots
kamleshchandnani e2e9ae1
chore: eslint fixes
kamleshchandnani 42e961d
ci: add interaction test in validate workflow
kamleshchandnani 3e78f99
ci: install playwright
kamleshchandnani 01233af
ci: uncomment things
kamleshchandnani be11304
chore: cleanup
kamleshchandnani 69350e8
chore: cleanup
kamleshchandnani fea458f
test: run tests on firefox, chromium and webkit
kamleshchandnani 12138f4
test: assert carousel visible items on mobile
kamleshchandnani 41b64dd
ci: move interaction test under tests workflow
kamleshchandnani 112deeb
test: update sleep to 8000ms
kamleshchandnani 86d4e1e
test: increase sleep time
kamleshchandnani 3291bb9
chore: remove unused imports
kamleshchandnani 84b1a66
tests: add more assertions
kamleshchandnani 51fcf4b
fix: firefox scroll multiple fire issue
anuraghazra 5efbb56
ci: add workflow to trigger interaction test
kamleshchandnani d06801d
fix: carousel onChange getting called multiple times
anuraghazra 16d348a
Merge branch 'setup-interaction-test' of https://github.com/razorpay/…
anuraghazra 01376b5
chore: lint
anuraghazra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Blade Interaction Tests | ||
|
||
# Runs the action when | ||
# 1. 'Run Interaction Tests' label is added to PR | ||
# 2. Workflow is trigerred manually | ||
# 3. PR is merged to master | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: [labeled] | ||
push: | ||
branches: | ||
- 'master' | ||
|
||
env: | ||
GITHUB_ACCESS_TOKEN: ${{ secrets.CI_BOT_TOKEN }} | ||
|
||
jobs: | ||
interaction-tests: | ||
name: Run Interaction Tests | ||
runs-on: ubuntu-latest # nosemgrep: non-self-hosted-runner | ||
if: ${{ github.event_name == 'workflow_dispatch' || github.event.label.name == 'Run Interaction Tests' || github.event_name == 'push' }} | ||
steps: | ||
- name: Checkout Codebase | ||
uses: actions/checkout@v3 | ||
- name: Use Node v18 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.12.1 | ||
- name: Setup Cache & Install Dependencies | ||
uses: ./.github/actions/install-dependencies | ||
- name: Run Interaction Tests | ||
run: | | ||
npx playwright install chromium firefox webkit --with-deps | ||
yarn test:react:interaction:ci | ||
working-directory: packages/blade |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
189 changes: 97 additions & 92 deletions
189
packages/blade/.storybook/react-native/storybook.requires.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the MINIMAL_VIEWPORTS doesn't have any mobile viewport by default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they have weird viewports like iPhone-5 or smaller so i added standard one