Bug
Get error in firefox
✖ Should have search results for "SBB"
1) Error on page "https://openwt.com":
TypeError: m.parseProxyUrl(...) is null
Browser: Firefox 59.0.0 / Mac OS X 10.13.0
40 |
41 | const searchIcon = owtHomePageModel.searchIcon;
42 | const searchInput = owtHomePageModel.searchInput;
43 |
44 | await t
> 45 | .click(searchIcon)
46 | .typeText(searchInput, 'SBB')
47 | .pressKey('enter');
48 |
49 | const searchResultsFirstTitle = owtHomePageModel.searchResultItems.find('.title').nth(0);
50 |
No error...
Btw. it runs successful in chrome, safari...
Run the code below ;)
Tested page URL:
process.env.HOST=https://openwt.com
Test code
import { Selector } from 'testcafe';
export default class OwtHomePageModel {
constructor(
public aiBanner = Selector('#block-artificialintelligencebanner').find('.title1'),
public services = Selector('#block-services').find('.service'),
public searchIcon = Selector('.search-container').find('.fa-search'),
public searchInput = Selector('.search-container').find('#edit-search-block-form'),
public searchResultItems = Selector('.search-results').find('.search-result'),
) { }
}
const owtHomePageModel = new OwtHomePageModel();
fixture`OWT homepage`
.page(process.env.HOST);
test.only('Should have search results for "SBB"', async (t) => {
const firstSearchEntry = 'Empowering the Digitalization of the Gotthard Base Tunnel with Augmented Reality';
const searchIcon = owtHomePageModel.searchIcon;
const searchInput = owtHomePageModel.searchInput;
await t
.click(searchIcon)
.typeText(searchInput, 'SBB')
.pressKey('enter');
const searchResultsFirstTitle = owtHomePageModel.searchResultItems.find('.title').nth(0);
await t
.expect(searchResultsFirstTitle.innerText).contains(firstSearchEntry);
});
Hi @dweber019,
I've reproduced the problem and I will investigate it.
The fix is published in [email protected].
@LavrovArtem when will version 0.20.0 be released?
@dweber019 I guess it can take one or two weeks
Is this issue fixed because I still have the issue and i am using version 0.20.2.
Hi @SayedShahidi
I cannot reproduce the issue because site markup was changed and test from description now failed.
Could you please provide a simple example to reproduce?
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests. We recommend you ask TestCafe API, usage and configuration inquiries on StackOverflow.