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

docs(intro-section): fix links #17241

Merged
merged 3 commits into from
Sep 12, 2022
Merged

Conversation

Nav-2d
Copy link
Contributor

@Nav-2d Nav-2d commented Sep 11, 2022

Fix the link to getting started sections.

cc - @debs-obrien

};

module.exports = config;
```

```js tab=js-ts
// playwright.config.ts
import type { PlaywrightTestConfig } from '@playwright/test';
import type { PlaywrightTestConfig } from "@playwright/test";
Copy link
Contributor

Choose a reason for hiding this comment

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

There is a lot of formatting in this PR, but I think most of it does not fit Playwright coding conventions. The codebase and most of the examples are using single quotes, for example.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for catching it. My formatter had different settings. Fixed the docs.

test("embed attachments, including its content, on the JUnit report", async ({}, testInfo) => {
const file = testInfo.outputPath("evidence1.txt");
require("fs").writeFileSync(file, "hello", "utf8");
await testInfo.attach("evidence1.txt", {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe the more compact code style that was originally used is better for docs ? 🤔

await testInfo.attach('evidence1.txt', { path: file, contentType: 'text/plain' });

@debs-obrien
Copy link
Contributor

Great work guys. Thanks :)

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.

3 participants