Skip to content

Commit

Permalink
chore: roll driver to 1.17.1 (#1849)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgozman authored Dec 3, 2021
1 parent 6869819 commit 165a6b8
Show file tree
Hide file tree
Showing 15 changed files with 123 additions and 26 deletions.
10 changes: 5 additions & 5 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ function Invoke-WWWRoot() {
function Invoke-Roll() {
if ($verbs.Length -eq 2) {
if ((Get-SubmoduleStatus).StartsWith("+")) {
$decision = $Host.UI.PromptForChoice("Update Submodule",
"The Submodule is already at a different commit, do you want to still use the new sha?",
$decision = $Host.UI.PromptForChoice("Update Submodule",
"The Submodule is already at a different commit, do you want to still use the new sha?",
@('&Yes, update', "E&xit"),
0)
if ($decision -eq 1) {
Expand All @@ -91,9 +91,9 @@ function Invoke-Roll() {

# Let's update the project file
[xml]$version = Get-Content ".\src\Common\Version.props"
$version.Project.PropertyGroup.DriverVersion = $package.version + "-" + $rev
$version.Project.PropertyGroup.AssemblyVersion = $package.version.Split("-")[0]
"Updating to " + $package.version + "-" + $rev
$version.Project.PropertyGroup.DriverVersion = $package.version
$version.Project.PropertyGroup.AssemblyVersion = $package.version
"Updating to " + $package.version
$version.Save([IO.Path]::Combine($pwd, 'src', 'Common', 'Version.props'))
} else {
Invoke-InitializeSubmodule
Expand Down
2 changes: 1 addition & 1 deletion playwright
Submodule playwright updated 59 files
+0 −31 .github/workflows/package_create_playwright.yml
+1 −1 docs/src/intro-java.md
+24 −53 package-lock.json
+1 −2 package.json
+0 −4 packages/create-playwright/.gitignore
+0 −9 packages/create-playwright/.npmignore
+0 −12 packages/create-playwright/README.md
+0 −7 packages/create-playwright/assets/.eslintrc.js
+0 −8 packages/create-playwright/assets/example.spec.js
+0 −7 packages/create-playwright/assets/example.spec.ts
+0 −17 packages/create-playwright/assets/examples/1-getting-started.spec.ts
+0 −54 packages/create-playwright/assets/examples/2-actions.spec.ts
+0 −51 packages/create-playwright/assets/examples/3-assertions.spec.ts
+0 −19 packages/create-playwright/assets/examples/4-file-uploads.spec.ts
+0 −41 packages/create-playwright/assets/examples/5-networking.spec.ts
+0 −8 packages/create-playwright/assets/examples/README.md
+0 −13 packages/create-playwright/assets/examples/playwright.config.ts
+0 −14 packages/create-playwright/assets/examples/pom/fixtures.ts
+0 −63 packages/create-playwright/assets/examples/pom/pom-with-fixtures.spec.ts
+0 −69 packages/create-playwright/assets/examples/pom/pom.spec.ts
+0 −28 packages/create-playwright/assets/examples/pom/todoPage.pom.ts
+0 −4 packages/create-playwright/assets/examples/server/assets/api/v1/users.json
+0 −6 packages/create-playwright/assets/examples/server/assets/file-uploads.html
+0 −23 packages/create-playwright/assets/examples/server/assets/header.html
+0 −1 packages/create-playwright/assets/examples/server/assets/index.html
+0 −17 packages/create-playwright/assets/examples/server/assets/network.html
+0 −73 packages/create-playwright/assets/examples/server/index.js
+0 −26 packages/create-playwright/assets/github-actions.yml
+0 −60 packages/create-playwright/assets/playwright.config.js
+0 −56 packages/create-playwright/assets/playwright.config.ts
+0 −2 packages/create-playwright/index.js
+0 −21 packages/create-playwright/package.json
+0 −24 packages/create-playwright/playwright.config.ts
+0 −27 packages/create-playwright/src/cli.ts
+0 −222 packages/create-playwright/src/generator.ts
+0 −3 packages/create-playwright/src/tsconfig.json
+0 −83 packages/create-playwright/src/utils.ts
+0 −87 packages/create-playwright/tests/baseFixtures.ts
+0 −93 packages/create-playwright/tests/integration.spec.ts
+0 −9 packages/create-playwright/tsconfig.json
+2 −2 packages/playwright-chromium/package.json
+1 −1 packages/playwright-core/package.json
+1 −1 packages/playwright-core/src/server/chromium/chromium.ts
+1 −1 packages/playwright-core/src/server/dom.ts
+1 −1 packages/playwright-core/src/server/injected/injectedScript.ts
+2 −2 packages/playwright-firefox/package.json
+5 −3 packages/playwright-test/package.json
+1 −1 packages/playwright-test/src/matchers/toMatchText.ts
+2 −2 packages/playwright-webkit/package.json
+2 −2 packages/playwright/package.json
+4 −0 tests/hit-target.spec.ts
+2 −0 tests/playwright-test/playwright.expect.text.spec.ts
+1 −1 tests/tap.spec.ts
+0 −1 tsconfig.json
+1 −11 utils/build/build.js
+47 −8 utils/check_deps.js
+1 −1 utils/docker/Dockerfile.bionic
+1 −1 utils/docker/Dockerfile.focal
+0 −4 utils/prepare_packages.js
4 changes: 2 additions & 2 deletions src/Common/Version.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<AssemblyVersion>1.17.1</AssemblyVersion>
<PackageVersion>$(AssemblyVersion)</PackageVersion>
<DriverVersion>1.17.0</DriverVersion>
<DriverVersion>1.17.1</DriverVersion>
<ReleaseVersion>$(AssemblyVersion)</ReleaseVersion>
<FileVersion>$(AssemblyVersion)</FileVersion>
<NoDefaultExcludes>true</NoDefaultExcludes>
Expand All @@ -16,4 +16,4 @@
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>
</Project>
</Project>
10 changes: 5 additions & 5 deletions src/Playwright.Tests/TapTests.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* MIT License
*
*
* Copyright (c) Microsoft Corporation.
*
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
Expand Down Expand Up @@ -73,8 +73,8 @@ await Page.SetContentAsync(

string[] result = await handle.JsonValueAsync<string[]>();
Assert.AreEqual(result, new string[] {
"pointerover", "pointerenter",
"pointerout", "pointerleave",
// "pointerover", "pointerenter",
// "pointerout", "pointerleave",
});
}

Expand Down Expand Up @@ -158,7 +158,7 @@ public async Task ShouldWorkWithModifiers()
{
await Page.SetContentAsync("hello world");

var altKeyTask = Page.EvaluateAsync<bool>(@"() =>
var altKeyTask = Page.EvaluateAsync<bool>(@"() =>
new Promise(resolve => {
document.addEventListener('touchstart', event => {
resolve(event.altKey);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@

namespace Microsoft.Playwright.Transport.Protocol
{
internal class SocksSocketInitializer
internal class APIRequestContextInitializer
{
public string DstAddr { get; set; }

public int DstPort { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

namespace Microsoft.Playwright.Transport.Protocol
{
internal class AndroidDeviceInitializer
internal class AndroidDeviceInitializer : EventTargetInitializer
{
public string Model { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@

namespace Microsoft.Playwright.Transport.Protocol
{
internal class BrowserContextInitializer
internal class BrowserContextInitializer : EventTargetInitializer
{
public bool IsChromium { get; set; }

// public APIRequestContext APIRequestContext { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

namespace Microsoft.Playwright.Transport.Protocol
{
internal class ElectronApplicationInitializer
internal class ElectronApplicationInitializer : EventTargetInitializer
{
public BrowserContext Context { get; set; }
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* MIT License
*
* Copyright (c) Microsoft Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

using System.Collections.Generic;
using Microsoft.Playwright.Core;

namespace Microsoft.Playwright.Transport.Protocol
{
internal class EventTargetInitializer
{
}
}
33 changes: 33 additions & 0 deletions src/Playwright/Transport/Protocol/Generated/JsonPipeInitializer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* MIT License
*
* Copyright (c) Microsoft Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

using System.Collections.Generic;
using Microsoft.Playwright.Core;

namespace Microsoft.Playwright.Transport.Protocol
{
internal class JsonPipeInitializer
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

namespace Microsoft.Playwright.Transport.Protocol
{
internal class PageInitializer
internal class PageInitializer : EventTargetInitializer
{
public Frame MainFrame { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
*/

using System.Collections.Generic;
using Microsoft.Playwright.Core;

namespace Microsoft.Playwright.Transport.Protocol
{
Expand All @@ -36,8 +37,8 @@ internal class PlaywrightInitializer

public List<DeviceDescriptorEntry> DeviceDescriptors { get; set; }

public Core.Selectors Selectors { get; set; }
public Selectors Selectors { get; set; }

public Core.Browser PreLaunchedBrowser { get; set; }
public Browser PreLaunchedBrowser { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ internal class ResponseInitializer

public string StatusText { get; set; }

public List<HeaderEntry> RequestHeaders { get; set; }

public List<HeaderEntry> Headers { get; set; }

public RequestTimingResult Timing { get; set; }
Expand Down
33 changes: 33 additions & 0 deletions src/Playwright/Transport/Protocol/Generated/RootInitializer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* MIT License
*
* Copyright (c) Microsoft Corporation.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

using System.Collections.Generic;
using Microsoft.Playwright.Core;

namespace Microsoft.Playwright.Transport.Protocol
{
internal class RootInitializer
{
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

namespace Microsoft.Playwright.Transport.Protocol
{
internal class WebSocketInitializer
internal class WebSocketInitializer : EventTargetInitializer
{
public string Url { get; set; }
}
Expand Down

0 comments on commit 165a6b8

Please sign in to comment.