Skip to content

Commit 37db930

Browse files
committed
Fix platform script and rename project files
1 parent a2158bd commit 37db930

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
dotnet-version: ${{ env.DOTNET_VERSION }}
2525

2626
- name: Restore dependencies
27-
run: dotnet restore Playwright.Stealth.sln
27+
run: dotnet restore ManagedCode.Playwright.Stealth.sln
2828

2929
- name: Build
30-
run: dotnet build Playwright.Stealth.sln --configuration Release --no-restore
30+
run: dotnet build ManagedCode.Playwright.Stealth.sln --configuration Release --no-restore
3131

3232
- name: Test
33-
run: dotnet test --solution Playwright.Stealth.sln --configuration Release --no-build --verbosity normal
33+
run: dotnet test --solution ManagedCode.Playwright.Stealth.sln --configuration Release --no-build --verbosity normal
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{827E0CD3-B72D-47B6-A68D-7590B98EB39B}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ManagedCode.Playwright.Stealth", "src\Playwright.Stealth\Playwright.Stealth.csproj", "{4FEFBA12-C714-433F-BA7E-8BAC95CCB72A}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ManagedCode.Playwright.Stealth", "src\Playwright.Stealth\ManagedCode.Playwright.Stealth.csproj", "{4FEFBA12-C714-433F-BA7E-8BAC95CCB72A}"
99
EndProject
1010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{0AB3BF05-4346-4AA6-1389-037BE0695223}"
1111
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ManagedCode.Playwright.Stealth.Tests", "tests\Playwright.Stealth.Tests\Playwright.Stealth.Tests.csproj", "{E168CA70-F764-4D1F-A424-23C692241414}"
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ManagedCode.Playwright.Stealth.Tests", "tests\Playwright.Stealth.Tests\ManagedCode.Playwright.Stealth.Tests.csproj", "{E168CA70-F764-4D1F-A424-23C692241414}"
1313
EndProject
1414
Global
1515
GlobalSection(SolutionConfigurationPlatforms) = preSolution

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ await page.ApplyStealthAsync(config);
4848
2. Restore dependencies:
4949

5050
```bash
51-
dotnet restore Playwright.Stealth.sln
51+
dotnet restore ManagedCode.Playwright.Stealth.sln
5252
```
5353

5454
3. Run tests (uses Microsoft.Testing.Platform via `global.json`):
5555

5656
```bash
57-
dotnet test --solution Playwright.Stealth.sln --configuration Release
57+
dotnet test --solution ManagedCode.Playwright.Stealth.sln --configuration Release
5858
```
5959

6060
## Test Sites

src/Playwright.Stealth/Playwright.Stealth.csproj renamed to src/Playwright.Stealth/ManagedCode.Playwright.Stealth.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<PackageId>ManagedCode.Playwright.Stealth</PackageId>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
if (opts.navigator_platform) {
22
Object.defineProperty(Object.getPrototypeOf(navigator), 'platform', {
3-
get: () => opts.navigator_plaftorm,
3+
get: () => opts.navigator_platform,
44
})
5-
}
5+
}

tests/Playwright.Stealth.Tests/Playwright.Stealth.Tests.csproj renamed to tests/Playwright.Stealth.Tests/ManagedCode.Playwright.Stealth.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<IsTestProject>true</IsTestProject>
@@ -12,7 +12,7 @@
1212
</ItemGroup>
1313

1414
<ItemGroup>
15-
<ProjectReference Include="..\..\src\Playwright.Stealth\Playwright.Stealth.csproj" />
15+
<ProjectReference Include="..\..\src\Playwright.Stealth\ManagedCode.Playwright.Stealth.csproj" />
1616
</ItemGroup>
1717

1818
</Project>

0 commit comments

Comments
 (0)