Testcafe: Modal popup not displayed on home page. Unable to proceed further and blocked.

Created on 4 Aug 2018  路  5Comments  路  Source: DevExpress/testcafe

Are you requesting a feature or reporting a bug?

Bug

What is the current behavior?

When I go to http://aperture.synacor.net or https://aperture.synacor.net , the modal popup is not displayed. I'm unable to continue with my tests. (see bug screenshot below)

screen shot 2018-08-03 at 7 45 23 pm

What is the expected behavior?

The modal popup should be displayed. (see expected screenshot below)

screen shot 2018-08-03 at 7 19 19 pm

How would you reproduce the current behavior (if this is a bug)?

Run test in Chrome, Safari, Firebox. (Remember to clear cache to see the modal again if user already clicked modal once)

Provide the test code and the tested page URL (if applicable)

Tested page URL: http://aperture.synacor.net , https://aperture.synacor.net , https://start.toshiba.com/ ,

Test code

import { Selector } from 'testcafe';

fixture `Test fixture`
.page(`https://aperture.synacor.net`);

test('Click close button to dismiss modal', async t => {
    await t.click(Selector('.modal__email-campaign').find('.close'));
});

Specify your

  • operating system: Mac 10.13.6 (High Sierra)
  • testcafe version: 0.21.0 (Latest version)
  • node.js version: 8.9.4
Auto-locked hammerhead bug

Most helpful comment

Hi @sijosyn

Thank you for the detailed description. I've reproduced the problem.

All 5 comments

Hi @sijosyn

Thank you for the detailed description. I've reproduced the problem.

Hi @sijosyn,
This issue is related to https://github.com/DevExpress/testcafe-hammerhead/issues/1380.
The tested site sends two requests:
http://aperture.synacor.net/_/?_uri=component%3A%2F%2FSynacor%2FGen4%2FConfiguration%2FComponents%2FWeather%2F%3Fparse_active%3D0&_action=locate
and
http://aperture.synacor.net/_/?_uri=component%3A%2F%2FSynacor%2FGen4%2FConfiguration%2FComponents%2FModal%2FEmailCampaign%2F&_action=display
These requests are received with a wrong body if headers are lowercased.

Thanks @LavrovArtem, @miherlosev for investigating & fixing this issue quickly. Nice job. Let me know here the TestCafe version that will be available with this fix.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests. For TestCafe API, usage and configuration inquiries, we recommend asking them on StackOverflow.

Was this page helpful?
0 / 5 - 0 ratings