Skip to content

Commit

Permalink
TASK: Update testcafe and adjust a test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebobo committed Feb 12, 2024
1 parent e882d1c commit 30cb383
Show file tree
Hide file tree
Showing 4 changed files with 1,226 additions and 731 deletions.
5 changes: 4 additions & 1 deletion .testcaferc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@
"hostname": "localhost",
"retryTestPages": true,
"pageLoadTimeout": 10000,
"pageRequestTimeout": 60000
"pageRequestTimeout": 60000,
"skipJsErrors": {
"stack": "/.*chrome-extension.*/ig"
}
}
3 changes: 1 addition & 2 deletions Resources/Private/JavaScript/media-module/tests/inspector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ test('Tagging works', async (t) => {
.click(page.firstThumbnail)
.scrollIntoView(page.tagSelection)
.click(page.tagSelection)
.click(ReactSelector('ListPreviewElement').withText('Example tag 1'))
.click(page.inspectorActions.findReact('Button').withText('Apply'));
.click(ReactSelector('ListPreviewElement').withText('Example tag 1'));
}).after(async (t) => {
const { log } = await t.getBrowserConsoleMessages();
await t
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"mocha": "^10.2.0",
"node-gyp": "^9.3.1",
"prettier": "^2.8.8",
"testcafe": "^2.6.2",
"testcafe": "^3.5.0",
"testcafe-react-selectors": "^5.0.3",
"ts-loader": "^8.4.0",
"ts-node": "^10.9.1",
Expand Down
Loading

0 comments on commit 30cb383

Please sign in to comment.