Skip to content

Commit

Permalink
Cleanup (#101)
Browse files Browse the repository at this point in the history
* prettier

* Update Logging call
  • Loading branch information
Jym77 authored Oct 25, 2024
1 parent 70bead1 commit 7ac7f0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions packages/alfa-selenium/test/selenium.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ const __dirname = path.dirname(__filename);

const fixture = path.join(__dirname, "fixture");

let driver: WebDriver | undefined;
let driver: WebDriver | undefined;

const options = new chrome.Options();
options.addArguments("--headless", "--no-sandbox", "--disable-dev-shm-usage");
const options = new chrome.Options();
options.addArguments("--headless", "--no-sandbox", "--disable-dev-shm-usage");

test("Selenium.toPage() scrapes a page", async (t) => {
driver = await new Builder()
Expand Down
6 changes: 3 additions & 3 deletions packages/alfa-test-utils/docs/usage/reporting/basic.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ This returns a URL to a Siteimprove Intelligence Platform page report showing th
## Pretty printing results in the console

Use the `Logging.result` function to pretty print results. If a Page Report URL was generated by the [upload](#uploading-results-to-the-siteimprove-intelligence-platform) step, it can be passed to it in order to provide direct links to each of the issues.
Use the `Logging.fromAudit(alfaResult).print()` function to pretty print results. If a Page Report URL was generated by the [upload](#uploading-results-to-the-siteimprove-intelligence-platform) step, it can be passed to it in order to provide direct links to each of the issues.

```typescript
import { Logging } from "@siteimprove/alfa-test-utils";

// Log results, with links to individual issues in the Page Report.
Logging.from(alfaResult, pageReportURL).print();
Logging.fromAudit(alfaResult, pageReportURL).print();

// Simply log an overview of the results and number of issues per rule.
Logging.from(alfaResult).print();
Logging.fromAudit(alfaResult).print();
```

## Cypress
Expand Down

0 comments on commit 7ac7f0d

Please sign in to comment.