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

Integration e2e test step intermittently fails a few firefox tests #178

Open
btlogy opened this issue Feb 1, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@btlogy
Copy link
Contributor

btlogy commented Feb 1, 2024

While working on #171, I had to rebuild twice the integration workflow for the 2 last PRs (#172 and #173) for the e2e step to succeed!
And in the 4 failed build logs, I've captured the same error message matching each failed test:

ERROR webdriver: Request failed with status 400 due to element not interactable: Element <input type="file"> could not be scrolled into view

In those 4 failed build, the failed test were as followed:

  1. More comments in Dockerfile #440 - Attempt #1:

    • [firefox 112.0 linux #1-3] 1) the code has an existing nameplate number but invalid code will display a bad code error
  2. More comments in Dockerfile #440 - Attempt #2:

    • [firefox 112.0 linux #1-4] 1) when uploading a file with the size of 5MB will transfer successfully
  3. Parametrize uid and gid for non 1000 runner's #447 - Attempt #1:

    • [firefox 112.0 linux #1-4] 1) on uploading a single file check generated code format
  4. Parametrize uid and gid for non 1000 runner's #447 - Attempt #2:

    • [firefox 112.0 linux #1-3] 1) the code has an existing nameplate number but invalid code will display a bad code error
    • [firefox 112.0 linux #1-4] 1) when uploading a file <1MB will transfer successfully
@btlogy btlogy added the bug Something isn't working label Feb 1, 2024
@btlogy
Copy link
Contributor Author

btlogy commented Feb 2, 2024

I've tried to update the selenium components from 4.9.1-20230508 to 4.17.0-20240123, but than the 2e2 test on Firefox constantly fail whenever it tries to call browser.uploadFile() from here:

export async function uploadFiles(...files: string[]) {
await browser.executeScript(
`const input = document.querySelector("input[type=file]");
input.style.visibility = 'visible';
input.style.height = '1px';
input.style.width = '1px';
input.style.opacity = 1;
input.style.display = 'block';`.replace("\n", ""),
[]
);
const remoteFilePaths = await Promise.all(
files.map((f) => browser.uploadFile(f))
);
await $("input[type=file]").setValue(remoteFilePaths.join("\n"));
}

Again, this problem only arises on Firefox (same code work flawlessly on Chrome and Edge):

[firefox 117.0 linux #0-0] 1) Check Terms if Terms & Conditions is present in Receiver block and opens   
[firefox 117.0 linux #0-0] HTTP method not allowed                                                       
[firefox 117.0 linux #0-0] Error: HTTP method not allowed                                                
[firefox 117.0 linux #0-0]     at processTicksAndRejections (node:internal/process/task_queues:96:5) 

This new issue seems to have been introduced between version 4.11.0-20230801 and 4.12.1-20230904 of the selenium/firefox image which bump this browser from 116.0 to 117.0.

@btlogy btlogy self-assigned this Feb 2, 2024
@btlogy btlogy changed the title Integration e2e test step often fails a few firefox tests Integration e2e test step intermitendly fails a few firefox tests Feb 2, 2024
@btlogy btlogy changed the title Integration e2e test step intermitendly fails a few firefox tests Integration e2e test step intermittently fails a few firefox tests Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant