Skip to content

Commit 206d1df

Browse files
release 3.5.5 (#3869)
* release 3.5.5 * release 3.5.5 * fix: puppeteer tests * fix: UTs * fix: UTs * install chrome * skip one init test * fixed package version * docs: update changelog * chore(deps-dev): bump ts-morph from 3.1.3 to 19.0.0 (#3840) * chore(deps): bump actions/checkout from 3 to 4 (#3860) Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 2ac4afb commit 206d1df

18 files changed

+276
-127
lines changed

Diff for: .github/workflows/appium.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
node-version: [16.x]
2121

2222
steps:
23-
- uses: actions/checkout@v3
23+
- uses: actions/checkout@v4
2424
- name: Use Node.js ${{ matrix.node-version }}
2525
uses: actions/setup-node@v3
2626
with:
@@ -44,7 +44,7 @@ jobs:
4444
node-version: [16.x]
4545

4646
steps:
47-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@v4
4848
- name: Use Node.js ${{ matrix.node-version }}
4949
uses: actions/setup-node@v3
5050
with:

Diff for: .github/workflows/check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
name: Check Tests
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717
- uses: testomatio/check-tests@master

Diff for: .github/workflows/doc-generation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Check out the repo
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919

2020
- name: Use Node.js ${{ matrix.node-version }}
2121
uses: actions/setup-node@v3

Diff for: .github/workflows/docker.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Check out the repo with latest code
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
- name: Push latest to Docker Hub
2020
uses: docker/build-push-action@v4 # Info: https://github.com/docker/build-push-action/tree/releases/v1#tags
2121
with:
@@ -28,10 +28,10 @@ jobs:
2828

2929
- name: 'Get the current tag'
3030
id: currentTag
31-
uses: actions/checkout@v3
31+
uses: actions/checkout@v4
3232
- run: git fetch --prune --unshallow && TAG=$(git describe --tags --abbrev=0) && echo $TAG && echo "TAG="$TAG >> "$GITHUB_ENV"
3333
- name: Check out the repo with tag
34-
uses: actions/checkout@v3
34+
uses: actions/checkout@v4
3535
with:
3636
ref: ${{ env.TAG }}
3737

Diff for: .github/workflows/dtslint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
matrix:
1616
node-version: [16.x]
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
- name: Use Node.js ${{ matrix.node-version }}
2020
uses: actions/setup-node@v3
2121
with:

Diff for: .github/workflows/playwright.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
node-version: [16.x]
2424

2525
steps:
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2727
- name: Use Node.js ${{ matrix.node-version }}
2828
uses: actions/setup-node@v3
2929
with:

Diff for: .github/workflows/puppeteer.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ env:
1616
jobs:
1717
build:
1818

19-
runs-on: ubuntu-20.04
19+
runs-on: ubuntu-22.04
2020

2121
strategy:
2222
matrix:
23-
node-version: [16.x]
23+
node-version: [18.x]
2424

2525
steps:
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2727
- name: Use Node.js ${{ matrix.node-version }}
2828
uses: actions/setup-node@v3
2929
with:
@@ -33,12 +33,14 @@ jobs:
3333
php-version: 7.4
3434
- name: npm install
3535
run: |
36-
npm install --legacy-peer-deps
36+
npm install --legacy-peer-deps && npm i puppeteer
3737
env:
3838
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
3939
- name: start a server
4040
run: "php -S 127.0.0.1:8000 -t test/data/app &"
41+
- uses: browser-actions/setup-chrome@v1
42+
- run: chrome --version
4143
- name: run tests
42-
run: "./bin/codecept.js run -c test/acceptance/codecept.Puppeteer.js --grep @Puppeteer --debug"
44+
run: "./bin/codecept.js run -c test/acceptance/codecept.Puppeteer.js --grep @Puppeteer --debug"
4345
- name: run unit tests
4446
run: ./node_modules/.bin/mocha test/helper/Puppeteer_test.js

Diff for: .github/workflows/test.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ on:
1111
jobs:
1212
build:
1313

14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-22.04
1515

1616
strategy:
1717
matrix:
18-
node-version: [16.x]
18+
node-version: [20.x]
1919

2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2222
- name: Use Node.js ${{ matrix.node-version }}
2323
uses: actions/setup-node@v3
2424
with:
2525
node-version: ${{ matrix.node-version }}
26-
- run: npm install --legacy-peer-deps
26+
- run: npm i --force
2727
env:
2828
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
2929
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true

Diff for: .github/workflows/testcafe.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
node-version: [16.x, 18.x]
2525

2626
steps:
27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828
- name: Use Node.js ${{ matrix.node-version }}
2929
uses: actions/setup-node@v3
3030
with:

Diff for: .github/workflows/webdriver.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
steps:
2525
- run: docker run -d --net=host --shm-size=2g selenium/standalone-chrome:3.141.0
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2727
- name: Use Node.js ${{ matrix.node-version }}
2828
uses: actions/setup-node@v3
2929
with:

Diff for: CHANGELOG.md

+155
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,158 @@
1+
## 3.5.5
2+
3+
🐛 Bug Fixes
4+
* fix(browserstack): issue with vendor prefix (#3845) - by @KobeNguyenT
5+
```
6+
export const caps = {
7+
androidCaps: {
8+
appiumV2: true,
9+
host: "hub-cloud.browserstack.com",
10+
port: 4444,
11+
user: process.env.BROWSERSTACK_USER,
12+
key: process.env.BROWSERSTACK_KEY,
13+
'app': `bs://c700ce60cf13ae8ed97705a55b8e022f1hjhkjh3c5827c`,
14+
browser: '',
15+
desiredCapabilities: {
16+
'appPackage': data.packageName,
17+
'deviceName': process.env.DEVICE || 'Google Pixel 3',
18+
'platformName': process.env.PLATFORM || 'android',
19+
'platformVersion': process.env.OS_VERSION || '10.0',
20+
'automationName': process.env.ENGINE || 'UIAutomator2',
21+
'newCommandTimeout': 300000,
22+
'androidDeviceReadyTimeout': 300000,
23+
'androidInstallTimeout': 90000,
24+
'appWaitDuration': 300000,
25+
'autoGrantPermissions': true,
26+
'gpsEnabled': true,
27+
'isHeadless': false,
28+
'noReset': false,
29+
'noSign': true,
30+
'bstack:options' : {
31+
"appiumVersion" : "2.0.1",
32+
},
33+
}
34+
},
35+
}
36+
```
37+
38+
* switchTo/within now supports strict locator (#3847) - by @KobeNguyenT
39+
40+
```
41+
I.switchTo({ css: 'iframe[id^=number-frame]' }) // support the strict locator
42+
43+
I.amOnPage('/iframe');
44+
within({
45+
frame: { css: '#number-frame-1234' }, // support the strict locator
46+
}, () => {
47+
I.fillField('user[login]', 'User');
48+
I.fillField('user[email]', '[email protected]');
49+
I.fillField('user[password]', '[email protected]');
50+
I.click('button');
51+
});
52+
```
53+
54+
* Improve the IntelliSense when using other languages (#3848) - by @andonary
55+
```
56+
include: {
57+
Je: './steps_file.js'
58+
}
59+
```
60+
61+
* bypassCSP support for Playwright helper (#3865) - by @sammeel
62+
```
63+
helpers: {
64+
Playwright: {
65+
bypassCSP: true
66+
}
67+
```
68+
* fix: missing requests when recording network (#3834) - by @KobeNguyenT
69+
70+
🛩️ Features and Improvements
71+
* Show environment info in verbose mode (#3858) - by @KobeNguyenT
72+
73+
```
74+
Environment information:-
75+
76+
codeceptVersion: "3.5.4"
77+
nodeInfo: 18.16.0
78+
osInfo: macOS 13.5
79+
cpuInfo: (8) arm64 Apple M1 Pro
80+
chromeInfo: 116.0.5845.179
81+
edgeInfo: 116.0.1938.69
82+
firefoxInfo: Not Found
83+
safariInfo: 16.6
84+
helpers: {
85+
"Playwright": {
86+
"url": "https://github.com",
87+
"show": false,
88+
"browser": "chromium",
89+
"waitForNavigation": "load",
90+
"waitForTimeout": 30000,
91+
"trace": false,
92+
"keepTraceForPassedTests": true
93+
},
94+
"CDPHelper": {
95+
"require": "./helpers/CDPHelper.ts"
96+
},
97+
"OpenAI": {
98+
"chunkSize": 8000
99+
},
100+
"ExpectHelper": {
101+
"require": "codeceptjs-expect"
102+
},
103+
"REST": {
104+
"endpoint": "https://reqres.in",
105+
"timeout": 20000
106+
},
107+
"AllureHelper": {
108+
"require": "./helpers/AllureHelper.ts"
109+
}
110+
}
111+
plugins: {
112+
"screenshotOnFail": {
113+
"enabled": true
114+
},
115+
"tryTo": {
116+
"enabled": true
117+
},
118+
"retryFailedStep": {
119+
"enabled": true
120+
},
121+
"retryTo": {
122+
"enabled": true
123+
},
124+
"eachElement": {
125+
"enabled": true
126+
},
127+
"pauseOnFail": {}
128+
}
129+
***************************************
130+
If you have questions ask them in our Slack: http://bit.ly/chat-codeceptjs
131+
Or ask them on our discussion board: https://codecept.discourse.group/
132+
Please copy environment info when you report issues on GitHub: https://github.com/Codeception/CodeceptJS/issues
133+
***************************************
134+
CodeceptJS v3.5.4 #StandWithUkraine
135+
```
136+
137+
* some typings improvements (#3855) - by @nikzupancic
138+
* support the puppeteer 21.1.1 (#3856) - by @KobeNguyenT
139+
* fix: support secret value for some methods (#3837) - by @KobeNguyenT
140+
141+
```
142+
await I.amOnPage('/form/field_values');
143+
await I.dontSeeInField('checkbox[]', secret('not seen one'));
144+
await I.seeInField('checkbox[]', secret('see test one'));
145+
await I.dontSeeInField('checkbox[]', secret('not seen two'));
146+
await I.seeInField('checkbox[]', secret('see test two'));
147+
await I.dontSeeInField('checkbox[]', secret('not seen three'));
148+
await I.seeInField('checkbox[]', secret('see test three'));
149+
```
150+
151+
🛩️ **Several bugfixes and improvements for Codecept-UI**
152+
* Mask the secret value in UI
153+
* Improve UX/UI
154+
* PageObjects are now showing in UI
155+
1156
## 3.5.4
2157

3158
🐛 Bug Fixes:

0 commit comments

Comments
 (0)