Git Product home page Git Product logo

Comments (2)

erenkocyigit avatar erenkocyigit commented on May 28, 2024

and here is my azure-pipelines.yml file:

parameters:
  - name: registryEndpoint
    type: string
    default: "*******"

trigger: none
pr: none

schedules:
  - cron: "0 3 * * *"
    displayName: Nightly UI Tests
    branches:
      include:
        - develop

stages:
  - stage: run_ui_tests
    displayName: "Run UI Tests"
    condition: |
      or(
        eq(variables['Build.Reason'], 'Schedule'),
        eq(variables['Build.Reason'], 'Manual')
      )
    jobs:
      - job: run_ui_tests
        displayName: "Run UI Tests"
        timeoutInMinutes: 5 # we might need to increase this if the test suite becomes big and slow
        cancelTimeoutInMinutes: 1
        pool:
          name: *******
          demands: UI.Testing
        
        steps:

          - checkout: self
            submodules: "recursive"
            persistCredentials: true

          - task: NuGetAuthenticate@1
            inputs:
              forceReinstallCredentialProvider: true

          - task: UseDotNet@2
            displayName: "Install or update dotnet sdk"
            inputs:
              packageType: "sdk"
              useGlobalJson: true
              
          - task: Docker@2
            displayName: Docker login
            inputs:
              command: login
              containerRegistry: ${{ parameters.registryEndpoint }}              

          - task: DotNetCoreCLI@2
            displayName: New Manifest for tool
            inputs:
              command: custom
              custom: 'new '
              arguments: tool-manifest --force

          - task: DotNetCoreCLI@2
            displayName: Install Playwright CLI
            inputs:
              command: custom
              custom: 'tool '
              arguments: install Microsoft.Playwright.CLI 

          - task: DotNetCoreCLI@2
            inputs:
              command: 'build'

          - task: DotNetCoreCLI@2
            displayName: Run Playwright Install
            inputs:
              command: custom
              custom: 'tool '
              arguments: run playwright install
          
          - task: DockerCompose@0
            displayName: Pull images
            inputs:
              action: Run a Docker Compose command
              containerRegistryType: Container Registry
              dockerRegistryEndpoint: ${{ parameters.registryEndpoint }}
              projectName: "uitests_manager_pw"
              dockerComposeFile: $(Build.SourcesDirectory)/tests/Manager.UITests.PW/installation-bundle/docker-compose.yml
              dockerComposeCommand: pull

          - script: docker pull *******
            displayName: Pull DockerCS:latest

          - task: DockerCompose@0
            displayName: Start Manager
            inputs:
              action: Run a Docker Compose command
              containerRegistryType: Container Registry
              dockerRegistryEndpoint: ${{ parameters.registryEndpoint }}
              projectName: "uitests_manager_pw"
              dockerComposeFile: $(Build.SourcesDirectory)/tests/Manager.UITests.PW/installation-bundle/docker-compose.yml
              dockerComposeCommand: up -d
              detached: true

          - task: DotNetCoreCLI@2
            displayName: "Run UI tests in Chrome"
            inputs:
              command: test
              arguments: '--collect:"XPlat Code Coverage" --verbosity detailed'
              projects: "$(Build.SourcesDirectory)/tests/Manager.UITests.PW"
              publishTestResults: true
              testRunTitle: "UI Tests in Chrome"
            env:
              UiTesting_UserCredentialOptions__QA1Password: *****
              UiTesting_UserCredentialOptions__QA2Password: *****
              UiTesting_UserCredentialOptions__QA3Password: *****
              UiTesting_UserCredentialOptions__QA4Password: *****
              UiTesting_EnvironmentOptions__Browser: Chrome
              UiTesting_EnvironmentOptions__DisplayBrowser: true

          - task: DotNetCoreCLI@2
            displayName: "Run UI tests in Firefox"
            inputs:
              command: test
              arguments: '--collect:"XPlat Code Coverage"'
              projects: "$(Build.SourcesDirectory)/tests/Manager.UITests.PW"
              publishTestResults: true
              testRunTitle: "UI Tests in Firefox"
            env:
              UiTesting_UserCredentialOptions__QA1Password: *****
              UiTesting_UserCredentialOptions__QA2Password: *****
              UiTesting_UserCredentialOptions__QA3Password: *****
              
              
              .......
             

from playwright-dotnet.

yury-s avatar yury-s commented on May 28, 2024

From the error log it appears to be failing outside of playwright while loading some plugins.

In my local everything is working as expected

Then it has to do with your environment. Unfortunately we can't help much without a repro. Feel free to file a new bug if you have a reproduction.

from playwright-dotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.