testcafe
testcafe copied to clipboard
Regression: in version 1.12.0 and later, it is not possible to run tests that ran successfully in 1.11.0
Related issue: https://github.com/DevExpress/testcafe-studio/issues/4267
What is your Scenario?
Runnnig any tests on https://capitalgroup.com with [email protected] and then with [email protected] or later.
What is the Current behavior?
The tests pass when using [email protected], but fail when using any later versions.
What is the Expected behavior?
Tests must pass using any versions of TestCafe.
What is your public website URL? (or attach your complete example)
https://www.capitalgroup.com/advisor/investments/historicalprices
What is your TestCafe test code?
import { Selector } from 'testcafe';
fixture `001`
.page `https://www.capitalgroup.com/advisor/investments/historicalprices`;
test('New Test', async t => {
await t
.click('#selected-share-holder .utility.DROPDOWN_ARROW_icon_16pxpng.pull-right')
.click(Selector('#com-mod-price-search li').withText('A'))
.click(Selector('#selected-fund-holder span').withText('Select a Fund'))
.click(Selector('#fund-drop-holder span').withText('AMCAP Fund').nth(2))
.click('#selected-month-holder')
.click(Selector('#com-mod-price-search span').withText('January'))
.click('#search-btn')
.click('#selected-share-holder')
.click(Selector('#com-mod-price-search li').withText('R-1'))
.click('#selected-fund-holder')
.click(Selector('#fund-drop-holder li').withText('The New Economy Fund ®').nth(1))
.click('#search-btn')
.click(Selector('#com-mod-prices-container a').withText('Calendar view'))
.click(Selector('#calendar div').withText('$52.25').nth(5))
.expect(Selector('#calendar div').withText('$49.11').nth(3).innerText).eql("$49.11");
});
Your complete test report
[email protected]:
Running tests in:
- Chrome 103.0.5060.114 / Windows 10
001
√ New Test
1 passed (16s)
[email protected] (or later):
Running tests in:
- Chrome 103.0.5060.114 / Windows 10
001
× New Test
1) Uncaught object "[object Object]" was thrown. Throw Error instead.
Browser: Chrome 103.0.5060.114 / Windows 10
1/1 failed (17s)
Steps to Reproduce
-
npm i -g [email protected]
-
testcafe -v
-
testcafe chrome 001.js -e
-
npm i -g [email protected]
-
testcafe -v
-
testcafe chrome 001.js -e
TestCafe version
1.11.0 -> 1.12.0
Command-line arguments
testcafe chrome 001.js -e