Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The upload form doesn't appear after button clicking #6633

Closed
karthees05 opened this issue Oct 20, 2021 · 7 comments · Fixed by #6781
Closed

The upload form doesn't appear after button clicking #6633

karthees05 opened this issue Oct 20, 2021 · 7 comments · Fixed by #6781
Assignees
Labels
FREQUENCY: level 1 SYSTEM: hammerhead TYPE: bug The described behavior is considered as wrong (bug).

Comments

@karthees05
Copy link

What is your Test Scenario?

One of my test is calling a 3rd party URI after clicking a button.
When it called, the "src" attribute is setting with the URI like,
src="http://my-local-ip or proxy uri/https://3rd party uri"
Due to the prefix of "http://my-local-ip or proxy uri" the connection is not happening with the 3rd party uri.
I want that "src" attribute to set with "https://3rd party uri"

What is the Current behavior?

The "src" attribute is setting with the URI prefix of from where I am running my scenario

What is the Expected behavior?

The "src" attribute should only set with the 3rd party uri.

Your complete test code (or attach your test files)

Your Environment details:

  • testcafe version: 1.16.0
  • node.js version:
  • command-line arguments: npx testcafe chrome dotenv.js scenario.js
  • browser name and version: chrome, firefox
  • platform and version: mac
  • other:
@need-response-app need-response-app bot added the STATE: Need response An issue that requires a response or attention from the team. label Oct 20, 2021
@Farfurix Farfurix added the STATE: Need simple sample A simple sample is required to examine the issue. label Oct 21, 2021
@github-actions
Copy link

Thank you for submitting this issue. We would love to assist you and diagnose it. However, we need a simple sample that we can easily run on our side in order to replicate the issue and research its cause. Without a sample, we are not able to figure out what's going on and why this issue occurs. Refer to this article to create the best example: How To: Create a Minimal Working Example When You Submit an Issue. We look forward to your response.

@github-actions github-actions bot added STATE: Need clarification An issue lacks information for further research. and removed STATE: Need response An issue that requires a response or attention from the team. STATE: Need simple sample A simple sample is required to examine the issue. labels Oct 21, 2021
@karthees05
Copy link
Author

Hi,
IS there any clarification required from my side

Thanks

@need-response-app need-response-app bot added the STATE: Need response An issue that requires a response or attention from the team. label Oct 25, 2021
@no-response no-response bot removed the STATE: Need clarification An issue lacks information for further research. label Oct 25, 2021
@Farfurix
Copy link
Contributor

@karthees05

Hello,

Yes, we need some simple example to reproduce and examine this issue.

@need-response-app need-response-app bot removed the STATE: Need response An issue that requires a response or attention from the team. label Oct 26, 2021
@miherlosev miherlosev added the STATE: Need clarification An issue lacks information for further research. label Oct 27, 2021
@karthees05
Copy link
Author

karthees05 commented Nov 1, 2021

Hi

The below is my example scenario,

fixture `Getting Started`
    .page `https://flatfile.com/developers/playgrounds/`;

test('My first test', async t => {
    const test1 = Selector("*[class*='Flex__FlexWrapper']").nth(8);
    await t.click(test1)
    await t.wait(5000)    
    // then upload a document
});

The testcafe is launching the base url as - http://193.163.0.17:636222/NwsIDbfKy*IC5vf4dzN/https://flatfile.com/developers/playgrounds/

And the same url is there in all the src/href properties in that page, due to that my test not uploading the data sheet into flat file server.

The same is working if I do manually as in normal browser the src/href properties are setting with the proper flat file url and not prefixed like the above url.

Is there a way to make my test run.

Thanks

@need-response-app need-response-app bot added the STATE: Need response An issue that requires a response or attention from the team. label Nov 1, 2021
@no-response no-response bot removed the STATE: Need clarification An issue lacks information for further research. label Nov 1, 2021
@Farfurix
Copy link
Contributor

Farfurix commented Nov 2, 2021

@karthees05

Hello,

Your selector (Selector("*[class*='Flex__FlexWrapper']").nth(8)) doesn't point to an upload link:
Capture
Could you please clarify your test scenario? You click "Import Customer Data →" and then upload data from a file. Am I correct?

@need-response-app need-response-app bot removed the STATE: Need response An issue that requires a response or attention from the team. label Nov 2, 2021
@Farfurix Farfurix added the STATE: Need clarification An issue lacks information for further research. label Nov 2, 2021
@kartheeswaranramasamy
Copy link

yes , you are right.
This is a sample one, as I can not post the client content. Thanks

@need-response-app need-response-app bot added the STATE: Need response An issue that requires a response or attention from the team. label Nov 5, 2021
@Farfurix Farfurix changed the title Prefix of proxy server url is restricting to connect a 3rd party call The upload form doesn't appear after button clicking Nov 8, 2021
@Farfurix
Copy link
Contributor

Farfurix commented Nov 8, 2021

@kartheeswaranramasamy

Hello,

OK, I'll rename this issue to describe the actual behavior.

For the team:
After clicking the "Import Customer Data" button, the "Bulk add Customers" form (iframe) doesn't appear. This issue can be reproduced with the testcafe-hammerhead proxy.

import { Selector } from 'testcafe';

fixture `Getting Started`
    .page `https://flatfile.com/developers/playgrounds/`;

test('upload', async t => {
    // The "Import Customer Data" button
    const importCustomerDataButton = Selector('#gatsby-focus-wrapper > div > div.Container-sc-xev89j-0.ecfSBh > div > div.docs-pages__MDXContainer-sc-1s1dzyw-1.playgrounds__DemoContainer-sc-13y0sal-3.jQCpOB.hSIYlk > div.playgrounds__Example-sc-13y0sal-9.bmhVXz > div > button');

    await t
        .click(importCustomerDataButton); // The "Bulk add Customers" upload form doesn't appear

    await t
        .wait(7000);
});

@need-response-app need-response-app bot removed the STATE: Need response An issue that requires a response or attention from the team. label Nov 8, 2021
@Farfurix Farfurix added FREQUENCY: level 1 SYSTEM: hammerhead TYPE: bug The described behavior is considered as wrong (bug). and removed STATE: Need clarification An issue lacks information for further research. labels Nov 8, 2021
@LavrovArtem LavrovArtem self-assigned this Dec 15, 2021
LavrovArtem added a commit to LavrovArtem/testcafe that referenced this issue Dec 19, 2021
miherlosev pushed a commit that referenced this issue Dec 27, 2021
… (#6781)

* Update hammerhead (fix #6633 and fix #6144)

* up

* update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FREQUENCY: level 1 SYSTEM: hammerhead TYPE: bug The described behavior is considered as wrong (bug).
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants