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

Firefox Integration tests #39

Merged
merged 2 commits into from
May 15, 2023
Merged

Firefox Integration tests #39

merged 2 commits into from
May 15, 2023

Conversation

aryangupta701
Copy link
Contributor

Added integration tests for firefox.

Signed-off-by: aryangupta701 <garyan447@gmail.com>
@aryangupta701
Copy link
Contributor Author

I think it is not yet supported by playwright : microsoft/playwright#7297

@aryangupta701 aryangupta701 force-pushed the firefoxTest branch 4 times, most recently from 04f11f3 to 20714f4 Compare May 14, 2023 17:13
console.log(`ZAP Service worker calling ZAP on ${zapurl}`);
console.log(zapApiUrl(zapurl, 'reportObject'));
console.log(encodeURIComponent(zapkey));
// console.log(`ZAP Service worker calling ZAP on ${zapurl}`);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The commented out additions should all be removed 😁

import * as http from 'http';
import fs from 'fs';

describe('Firefox Integration Test', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Theres lots of code common with the chrome test here.
We should just have one test which covers both browsers.
Where we need to do things diffferently then we should either wrap the tests, pass in parameters or call broweser specific functions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay

@aryangupta701 aryangupta701 force-pushed the firefoxTest branch 2 times, most recently from ec840dd to 13c9772 Compare May 15, 2023 09:52
Signed-off-by: aryangupta701 <garyan447@gmail.com>
@thc202 thc202 merged commit e13df0a into zaproxy:main May 15, 2023
@thc202
Copy link
Member

thc202 commented May 15, 2023

Thank you!

@thc202 thc202 deleted the firefoxTest branch May 15, 2023 16:25
@kingthorin
Copy link
Member

Nice work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants