From f5880071783fa7defb4ccb071459ce8cbe981643 Mon Sep 17 00:00:00 2001 From: RaYell Date: Mon, 4 Apr 2022 21:50:03 +0200 Subject: [PATCH 01/11] use latest chrome for integration tests --- .github/workflows/dotnet.yml | 4 ++++ .../Selenium.WebDriver.Extensions.IntegrationTests.csproj | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index a25d73f8..571c5cee 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -101,6 +101,10 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: 6.0.x + + - name: Setup Chrome + uses: browser-actions/setup-chrome@latest + run: chrome --version - name: Build run: dotnet build -c Release diff --git a/test/Selenium.WebDriver.Extensions.IntegrationTests/Selenium.WebDriver.Extensions.IntegrationTests.csproj b/test/Selenium.WebDriver.Extensions.IntegrationTests/Selenium.WebDriver.Extensions.IntegrationTests.csproj index 13b9e97b..4952d0aa 100644 --- a/test/Selenium.WebDriver.Extensions.IntegrationTests/Selenium.WebDriver.Extensions.IntegrationTests.csproj +++ b/test/Selenium.WebDriver.Extensions.IntegrationTests/Selenium.WebDriver.Extensions.IntegrationTests.csproj @@ -17,7 +17,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - + From 77e0a859d2f7dea7febc3615f8af24ad48c509aa Mon Sep 17 00:00:00 2001 From: Lukasz Rajchel Date: Mon, 4 Apr 2022 22:04:08 +0200 Subject: [PATCH 02/11] Update dotnet.yml --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 571c5cee..ea45aeda 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -104,7 +104,7 @@ jobs: - name: Setup Chrome uses: browser-actions/setup-chrome@latest - run: chrome --version + if: matrix.browser == "Chrome" - name: Build run: dotnet build -c Release From 720f47e2c8b12bead4e031c94ab7077a0663b957 Mon Sep 17 00:00:00 2001 From: Lukasz Rajchel Date: Mon, 4 Apr 2022 22:07:13 +0200 Subject: [PATCH 03/11] Update dotnet.yml --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index ea45aeda..055ec46b 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -104,7 +104,7 @@ jobs: - name: Setup Chrome uses: browser-actions/setup-chrome@latest - if: matrix.browser == "Chrome" + if: matrix.browser == 'Chrome' - name: Build run: dotnet build -c Release From 631bec68698ca5a0a41b423d816de56b4b53a715 Mon Sep 17 00:00:00 2001 From: Lukasz Rajchel Date: Mon, 4 Apr 2022 22:13:40 +0200 Subject: [PATCH 04/11] Update dotnet.yml --- .github/workflows/dotnet.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 055ec46b..99bac98b 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -105,6 +105,8 @@ jobs: - name: Setup Chrome uses: browser-actions/setup-chrome@latest if: matrix.browser == 'Chrome' + with: + chrome-version: stable - name: Build run: dotnet build -c Release From 9693d555cdc0297153f42261e048ee2e10fd2116 Mon Sep 17 00:00:00 2001 From: Lukasz Rajchel Date: Mon, 4 Apr 2022 22:17:24 +0200 Subject: [PATCH 05/11] Update dotnet.yml --- .github/workflows/dotnet.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 99bac98b..aefab525 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -107,6 +107,8 @@ jobs: if: matrix.browser == 'Chrome' with: chrome-version: stable + + - run: chrome --version - name: Build run: dotnet build -c Release From c207bf3d04e75b7d0c10d444d4d83867e15a047d Mon Sep 17 00:00:00 2001 From: Lukasz Rajchel Date: Mon, 4 Apr 2022 22:23:08 +0200 Subject: [PATCH 06/11] Update dotnet.yml --- .github/workflows/dotnet.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index aefab525..c3e5902a 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -103,13 +103,12 @@ jobs: dotnet-version: 6.0.x - name: Setup Chrome - uses: browser-actions/setup-chrome@latest if: matrix.browser == 'Chrome' - with: - chrome-version: stable - - - run: chrome --version - + run: | + sudo apt-get update + sudo apt-get --only-upgrade install google-chrome-stable + google-chrome --version + - name: Build run: dotnet build -c Release From 0fe0d2532afe373e9353304f89a4ac78147aaa28 Mon Sep 17 00:00:00 2001 From: Lukasz Rajchel Date: Tue, 5 Apr 2022 22:30:08 +0200 Subject: [PATCH 07/11] Update dotnet.yml --- .github/workflows/dotnet.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index c3e5902a..d04376a9 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -102,12 +102,8 @@ jobs: with: dotnet-version: 6.0.x - - name: Setup Chrome - if: matrix.browser == 'Chrome' - run: | - sudo apt-get update - sudo apt-get --only-upgrade install google-chrome-stable - google-chrome --version + - uses: browser-actions/setup-chrome@latest + - run: chrome --version - name: Build run: dotnet build -c Release From 4b7e01b6ec11d793274567c5c67b6db46d6c4edc Mon Sep 17 00:00:00 2001 From: Lukasz Rajchel Date: Tue, 5 Apr 2022 22:39:27 +0200 Subject: [PATCH 08/11] Update dotnet.yml --- .github/workflows/dotnet.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index d04376a9..c527bcb6 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -88,7 +88,7 @@ jobs: integration-tests: name: integration-tests-${{ matrix.browser }} - runs-on: windows-2022 + runs-on: windows-latest strategy: matrix: browser: [ Chrome, Firefox, Edge, InternetExplorer ] @@ -101,9 +101,9 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: 6.0.x - + - uses: browser-actions/setup-chrome@latest - - run: chrome --version + - run: C:\hostedtoolcache\windows\chromium\latest\x64\chrome.exe --version - name: Build run: dotnet build -c Release From 64b524a56622d2b1a1b216c1fb0b3f959a7b39ee Mon Sep 17 00:00:00 2001 From: RaYell Date: Tue, 5 Apr 2022 22:46:00 +0200 Subject: [PATCH 09/11] chrome driver downgraded --- .../Selenium.WebDriver.Extensions.IntegrationTests.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Selenium.WebDriver.Extensions.IntegrationTests/Selenium.WebDriver.Extensions.IntegrationTests.csproj b/test/Selenium.WebDriver.Extensions.IntegrationTests/Selenium.WebDriver.Extensions.IntegrationTests.csproj index 4952d0aa..13b9e97b 100644 --- a/test/Selenium.WebDriver.Extensions.IntegrationTests/Selenium.WebDriver.Extensions.IntegrationTests.csproj +++ b/test/Selenium.WebDriver.Extensions.IntegrationTests/Selenium.WebDriver.Extensions.IntegrationTests.csproj @@ -17,7 +17,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - + From 917619fbdd3a53e0372a108a3fdf1be03e9b5d39 Mon Sep 17 00:00:00 2001 From: Lukasz Rajchel Date: Tue, 5 Apr 2022 22:48:50 +0200 Subject: [PATCH 10/11] Update dotnet.yml --- .github/workflows/dotnet.yml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index c527bcb6..90bbdd61 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -87,11 +87,34 @@ jobs: .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.login=${{ secrets.SONAR_TOKEN }} integration-tests: + name: integration-tests-${{ matrix.os }}-${{ matrix.browser }} + runs-on: windows-latest + strategy: + matrix: + browser: [ Chrome, Firefox ] + os: [ ubuntu-latest, windows-latest, macos-latest ] + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup .NET + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 6.0.x + + - name: Build + run: dotnet build -c Release + + - name: Test + run: dotnet test test/Selenium.WebDriver.Extensions.IntegrationTests -c Release --filter Browser=${{ matrix.browser }} + + integration-tests2: name: integration-tests-${{ matrix.browser }} runs-on: windows-latest strategy: matrix: - browser: [ Chrome, Firefox, Edge, InternetExplorer ] + browser: [ Edge, InternetExplorer ] steps: - name: Checkout @@ -102,9 +125,6 @@ jobs: with: dotnet-version: 6.0.x - - uses: browser-actions/setup-chrome@latest - - run: C:\hostedtoolcache\windows\chromium\latest\x64\chrome.exe --version - - name: Build run: dotnet build -c Release From 2ae5d483b9cb606fe77c4f799ae2887e94f2a65c Mon Sep 17 00:00:00 2001 From: RaYell Date: Tue, 5 Apr 2022 22:58:47 +0200 Subject: [PATCH 11/11] chrome fixture updated --- .../Fixtures/ChromeFixture.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/test/Selenium.WebDriver.Extensions.IntegrationTests/Fixtures/ChromeFixture.cs b/test/Selenium.WebDriver.Extensions.IntegrationTests/Fixtures/ChromeFixture.cs index a2668725..57ac7afd 100644 --- a/test/Selenium.WebDriver.Extensions.IntegrationTests/Fixtures/ChromeFixture.cs +++ b/test/Selenium.WebDriver.Extensions.IntegrationTests/Fixtures/ChromeFixture.cs @@ -7,6 +7,7 @@ public ChromeFixture() { var options = new ChromeOptions(); options.AddArgument("--headless"); + options.AddArgument("--no-sandbox"); Browser = new ChromeDriver(Path.GetDirectoryName(typeof(ChromeFixture).Assembly.Location), options); } }