-
Notifications
You must be signed in to change notification settings - Fork 282
chore: e2e test & CI integration #2740
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
Merged
Merged
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
6a16d1f
chore: cupress
Miles-hxy 99c005f
chore: cypress ci
Miles-hxy 140b31e
chore: update
Miles-hxy 8d3f08e
chore: update
Miles-hxy 8beff5c
fix: install
Miles-hxy 22cc2fe
fix: install
Miles-hxy 7fe0719
chore: update
Miles-hxy 2524793
chore: update
Miles-hxy 75d817a
chore: update
Miles-hxy 23661fa
chore: update
Miles-hxy 69268e6
chore: update
Miles-hxy 2b051dd
chore: update
Miles-hxy c89278d
chore: update
Miles-hxy d860276
chore: update
Miles-hxy efc90b7
chore: update
Miles-hxy e821c24
chore: update
Miles-hxy d71669d
chore: update
Miles-hxy eeefcbc
chore: update
Miles-hxy 515a12b
chore: update
Miles-hxy 16f267c
chore: update
Miles-hxy 1a392de
fix: revert commit log
Miles-hxy 9a07d69
fix: resolve conflicts with v3
Miles-hxy ab38f06
fix: ci failed
Miles-hxy 7db2f3c
fix: ci no reaction
Miles-hxy 9939b3b
fix: save content
Miles-hxy 0498272
fix: update lock file to resolve conflicts
Miles-hxy d3f4658
Merge branch 'feat_v3.x' into hxy/cypress/ci-1111
Miles-hxy b8bfcfa
fix: update lock file to resolve conflicts
Miles-hxy 75f4799
refactor: cypress directory common and utils test method
Miles-hxy cd07550
refactor: cypress directory common and utils test method
Miles-hxy aa13e8b
refactor: cypress directory common and utils test method
Miles-hxy 88a4c6e
fix: re
Miles-hxy 650fe55
fix: re
Miles-hxy d4fc196
fix: resolve conflicts
Miles-hxy e221ea8
fix: resolve conflicts
Miles-hxy 4ff94e2
Merge branch 'feat_v3.x' into hxy/cypress/ci-1111
Miles-hxy 4931cba
fix: resolve conflicts
Miles-hxy 912f64a
fix: resolve conflicts
Miles-hxy 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 hidden or 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,36 @@ | ||
name: E2E Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- feat_v3.x | ||
pull_request: | ||
branches: | ||
- feat_v3.x | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm | ||
run: corepack enable pnpm | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: pnpm install | ||
- name: Run E2E Tests for H5 | ||
env: | ||
CI: true | ||
run: pnpm cypress install --force && pnpm e2e:run:h5 | ||
|
||
# Taro的自动化测试,demo包管理解决后解除注释 | ||
# - name: Run E2E Tests for Taro | ||
# env: | ||
# CI: true | ||
# pnpm cypress install --force && run: pnpm e2e:run:taro |
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,32 @@ | ||
import { visitH5Demo, visitTaroDemo } from '../utils/visit-demo.cy.js' | ||
import data from '../../../src/config.json' | ||
|
||
const { nav } = data | ||
export const checkH5Blank = () => { | ||
const componentArr = nav | ||
.map((i) => i.packages) | ||
.flat(Infinity) | ||
.filter((i) => i.show) | ||
.map((i) => i.name) | ||
|
||
it('check h5 demos blank', () => { | ||
componentArr.forEach((com) => { | ||
visitH5Demo(com) | ||
}) | ||
}) | ||
} | ||
export const checkTaroBlank = () => { | ||
it('check taro demos blank', () => { | ||
nav.forEach((item) => { | ||
const path = item.enName | ||
item.packages | ||
.filter((i) => i.show && i.taro && i.version === '3.0.0') | ||
.forEach((i) => { | ||
visitTaroDemo(path, i.name) | ||
}) | ||
}) | ||
}) | ||
} | ||
Cypress.on('uncaught:exception', (err, runnable) => { | ||
return false | ||
}) | ||
Miles-hxy marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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,25 @@ | ||
import { visitH5Demo } from '../utils/visit-demo' | ||
|
||
describe('base components test', () => { | ||
it('Button', () => { | ||
visitH5Demo('Button') | ||
}) | ||
it('Cell', () => { | ||
visitH5Demo('Cell') | ||
}) | ||
it('ConfigProvider', () => { | ||
visitH5Demo('ConfigProvider') | ||
}) | ||
it('Icon', () => { | ||
visitH5Demo('Icon') | ||
}) | ||
it('Image', () => { | ||
visitH5Demo('Image') | ||
}) | ||
it('Overlay', () => { | ||
visitH5Demo('Overlay') | ||
}) | ||
}) | ||
Cypress.on('uncaught:exception', (err, runnable) => { | ||
return false | ||
}) | ||
Miles-hxy marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or 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,22 @@ | ||
import { visitH5Demo } from '../utils/visit-demo' | ||
|
||
describe('bussiness components test', () => { | ||
it('Barrage', () => { | ||
visitH5Demo('Barrage') | ||
}) | ||
it('Card', () => { | ||
visitH5Demo('Card') | ||
}) | ||
it('TimeSelect', () => { | ||
visitH5Demo('TimeSelect') | ||
}) | ||
it('TrendArrow', () => { | ||
visitH5Demo('TrendArrow') | ||
}) | ||
it('WaterMark', () => { | ||
visitH5Demo('WaterMark') | ||
}) | ||
it('AvatarCropper', () => { | ||
visitH5Demo('AvatarCropper') | ||
}) | ||
}) |
This file contains hidden or 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,67 @@ | ||
import { visitH5Demo } from '../utils/visit-demo' | ||
|
||
describe('dentry components test', () => { | ||
it('Address', () => { | ||
visitH5Demo('Address') | ||
}) | ||
it('Calendar', () => { | ||
visitH5Demo('Calendar') | ||
}) | ||
it('CalendarCard', () => { | ||
visitH5Demo('CalendarCard') | ||
}) | ||
it('Cascader', () => { | ||
visitH5Demo('Cascader') | ||
}) | ||
it('Checkbox', () => { | ||
visitH5Demo('Checkbox') | ||
}) | ||
it('DatePicker', () => { | ||
visitH5Demo('DatePicker') | ||
}) | ||
it('Form', () => { | ||
visitH5Demo('Form') | ||
}) | ||
it('Input', () => { | ||
visitH5Demo('Input') | ||
}) | ||
it('InputNumber', () => { | ||
visitH5Demo('InputNumber') | ||
}) | ||
it('Menu', () => { | ||
visitH5Demo('Menu') | ||
}) | ||
it('NumberKeyboard', () => { | ||
visitH5Demo('NumberKeyboard') | ||
}) | ||
it('Picker', () => { | ||
visitH5Demo('Picker') | ||
}) | ||
it('Radio', () => { | ||
visitH5Demo('Radio') | ||
}) | ||
it('Range', () => { | ||
visitH5Demo('Range') | ||
}) | ||
it('Rate', () => { | ||
visitH5Demo('Rate') | ||
}) | ||
it('SearchBar', () => { | ||
visitH5Demo('SearchBar') | ||
}) | ||
it('ShortPassword', () => { | ||
visitH5Demo('ShortPassword') | ||
}) | ||
it('Signature', () => { | ||
visitH5Demo('Signature') | ||
}) | ||
it('Switch', () => { | ||
visitH5Demo('Switch') | ||
}) | ||
it('TextArea', () => { | ||
visitH5Demo('TextArea') | ||
}) | ||
it('Uploader', () => { | ||
visitH5Demo('Uploader') | ||
}) | ||
}) |
This file contains hidden or 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,61 @@ | ||
import { visitH5Demo } from '../utils/visit-demo' | ||
|
||
describe('exhibition components test', () => { | ||
it('Animate', () => { | ||
visitH5Demo('Animate') | ||
}) | ||
it('AnimatingNumbers', () => { | ||
visitH5Demo('AnimatingNumbers') | ||
}) | ||
it('Audio', () => { | ||
visitH5Demo('Audio') | ||
}) | ||
it('Avatar', () => { | ||
visitH5Demo('Avatar') | ||
}) | ||
it('CircleProgress', () => { | ||
visitH5Demo('CircleProgress') | ||
}) | ||
it('Collapse', () => { | ||
visitH5Demo('Collapse') | ||
}) | ||
it('CountDown', () => { | ||
visitH5Demo('CountDown') | ||
}) | ||
it('Ellipsis', () => { | ||
visitH5Demo('Ellipsis') | ||
}) | ||
it('ImagePreview', () => { | ||
visitH5Demo('ImagePreview') | ||
}) | ||
it('Indicator', () => { | ||
visitH5Demo('Indicator') | ||
}) | ||
it('Pagination', () => { | ||
visitH5Demo('Pagination') | ||
}) | ||
it('Price', () => { | ||
visitH5Demo('Price') | ||
}) | ||
it('Progress', () => { | ||
visitH5Demo('Progress') | ||
}) | ||
it('Swiper', () => { | ||
visitH5Demo('Swiper') | ||
}) | ||
it('Table', () => { | ||
visitH5Demo('Table') | ||
}) | ||
it('Tag', () => { | ||
visitH5Demo('Tag') | ||
}) | ||
it('Tour', () => { | ||
visitH5Demo('Tour') | ||
}) | ||
it('Video', () => { | ||
visitH5Demo('Video') | ||
}) | ||
it('VirtualList', () => { | ||
visitH5Demo('VirtualList') | ||
}) | ||
}) |
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.
Uh oh!
There was an error while loading. Please reload this page.