docs: add missing group id for tabs (#16196)

This commit is contained in:
Debbie O'Brien 2022-08-03 13:39:18 +02:00 committed by GitHub
parent 8ef01cd07e
commit 8e4f1ed811
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -10,6 +10,7 @@ You can choose to use [NUnit base classes](./test-runners.md#nunit) or [MSTest b
1. Start by creating a new project with `dotnet new`. This will create the `PlaywrightTests` directory which includes a `UnitTest1.cs` file: 1. Start by creating a new project with `dotnet new`. This will create the `PlaywrightTests` directory which includes a `UnitTest1.cs` file:
<Tabs <Tabs
groupId="test-runners"
defaultValue="nunit" defaultValue="nunit"
values={[ values={[
{label: 'NUnit', value: 'nunit'}, {label: 'NUnit', value: 'nunit'},
@ -37,6 +38,7 @@ cd PlaywrightTests
2. Install the necessary Playwright dependencies: 2. Install the necessary Playwright dependencies:
<Tabs <Tabs
groupId="test-runners"
defaultValue="nunit" defaultValue="nunit"
values={[ values={[
{label: 'NUnit', value: 'nunit'}, {label: 'NUnit', value: 'nunit'},
@ -76,6 +78,7 @@ pwsh bin\Debug\netX\playwright.ps1 install
Edit the `UnitTest1.cs` file with the code below to create an example end-to-end test: Edit the `UnitTest1.cs` file with the code below to create an example end-to-end test:
<Tabs <Tabs
groupId="test-runners"
defaultValue="nunit" defaultValue="nunit"
values={[ values={[
{label: 'NUnit', value: 'nunit'}, {label: 'NUnit', value: 'nunit'},
@ -160,6 +163,7 @@ public class UnitTest1 : PageTest
By default tests will be run on Chromium. This can be configured via the `BROWSER` environment variable, or by adjusting the [launch configuration options](./test-runners.md). Tests are run in headless mode meaning no browser will open up when running the tests. Results of the tests and test logs will be shown in the terminal. By default tests will be run on Chromium. This can be configured via the `BROWSER` environment variable, or by adjusting the [launch configuration options](./test-runners.md). Tests are run in headless mode meaning no browser will open up when running the tests. Results of the tests and test logs will be shown in the terminal.
<Tabs <Tabs
groupId="test-runners"
defaultValue="nunit" defaultValue="nunit"
values={[ values={[
{label: 'NUnit', value: 'nunit'}, {label: 'NUnit', value: 'nunit'},

View file

@ -8,6 +8,7 @@ Playwright assertions are created specifically for the dynamic web. Checks are a
Take a look at the example test below to see how to write a test using web first assertions, locators and selectors. Take a look at the example test below to see how to write a test using web first assertions, locators and selectors.
<Tabs <Tabs
groupId="test-runners"
defaultValue="nunit" defaultValue="nunit"
values={[ values={[
{label: 'NUnit', value: 'nunit'}, {label: 'NUnit', value: 'nunit'},
@ -117,6 +118,7 @@ await Expect(Page.Locator("text=Installation")).ToBeVisibleAsync();
The Playwright NUnit and MSTest test framework base classes will isolate each test from each other by providing a separate `Page` instance. Pages are isolated between tests due to the Browser Context, which is equivalent to a brand new browser profile, where every test gets a fresh environment, even when multiple tests run in a single Browser. The Playwright NUnit and MSTest test framework base classes will isolate each test from each other by providing a separate `Page` instance. Pages are isolated between tests due to the Browser Context, which is equivalent to a brand new browser profile, where every test gets a fresh environment, even when multiple tests run in a single Browser.
<Tabs <Tabs
groupId="test-runners"
defaultValue="nunit" defaultValue="nunit"
values={[ values={[
{label: 'NUnit', value: 'nunit'}, {label: 'NUnit', value: 'nunit'},
@ -169,6 +171,7 @@ public class UnitTest1 : PageTest
You can use `SetUp`/`TearDown` in NUnit or `TestInitialize`/`TestCleanup` in MSTest to prepare and clean up your test environment: You can use `SetUp`/`TearDown` in NUnit or `TestInitialize`/`TestCleanup` in MSTest to prepare and clean up your test environment:
<Tabs <Tabs
groupId="test-runners"
defaultValue="nunit" defaultValue="nunit"
values={[ values={[
{label: 'NUnit', value: 'nunit'}, {label: 'NUnit', value: 'nunit'},