Skip to content

Commit

Permalink
Added test prevention code (Issue #392)
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverWang13 committed Feb 20, 2023
1 parent 7ffaccc commit a3bd701
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ We also like to use [Debugger for Firefox](https://marketplace.visualstudio.com/

## 6. Installing the OptMeowt PETS 2023 Version

The version of OptMeowt used in our PoPETs 2023 submission, "Usability and Enforceability of Global Privacy Control", can be found in our [v3.0.0 release](https://github.com/privacy-tech-lab/gpc-optmeowt/releases/tag/v3.0.0-paper). To view the v3.0.0 code, you can look at the repo [here](https://github.com/privacy-tech-lab/gpc-optmeowt/tree/v3.0.0-paper). Instructions for building the extension locally is the same as stated above, as seen in our [Firefox instructions](https://github.com/privacy-tech-lab/gpc-optmeowt/tree/main#firefox). To activate Analysis mode in v3.0.0-paper, press the `Protection Mode` label in the popup. In addition, Analysis mode requires other privacy extensions or browsers to be disabled. For further detailed information on how to use analysis mode, please refer to [our methodology](https://github.com/privacy-tech-lab/gpc-optmeowt/tree/v4.0.1/#4-analysis-mode-firefox-only).
The version of OptMeowt used in our PoPETs 2023 submission, "Usability and Enforceability of Global Privacy Control", can be found in our [v3.0.0-paper release](https://github.com/privacy-tech-lab/gpc-optmeowt/releases/tag/v3.0.0-paper). To view the v3.0.0-paper code, you can look at the repo [here](https://github.com/privacy-tech-lab/gpc-optmeowt/tree/v3.0.0-paper). Instructions for building the extension locally is the same as stated above, as seen in our [Firefox instructions](https://github.com/privacy-tech-lab/gpc-optmeowt/tree/main#firefox). To activate Analysis mode in v3.0.0-paper, press the `Protection Mode` label in the popup. In addition, Analysis mode requires other privacy extensions or browsers to be disabled. For further detailed information on how to use analysis mode, please refer to [our methodology](https://github.com/privacy-tech-lab/gpc-optmeowt/tree/v4.0.1/#4-analysis-mode-firefox-only).

## 7. Using OptMeowt Testing

Expand Down
4 changes: 4 additions & 0 deletions test/background/gpc.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
args.push('--disable-extensions-except=' + extensionPath)
args.push('--load-extension=' + extensionPath)

if (process.env.CI) {
args.push('--no-sandbox')
}

puppeteerOps.args = args
browser = await puppeteer.launch(puppeteerOps)
await new Promise(resolve => setTimeout(resolve, 2000));
Expand Down

0 comments on commit a3bd701

Please sign in to comment.