Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-9800

[QE] Make Playwright execute WebUI tests in openshift

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      I plan to make it work in future, but haven't figured out yet either of those :disappointed:
      a) how to supply all needed deps for Playwright in our container image based on UBI
      b) use external playwright container to be executed in browser mode

      oc login -u stephen -p strang8 --insecure-skip-tls-verify=true https://api.xxxxxxx.clusters.amq-broker.xyz:6443
      
      make -f Makefile.downstream build ARTEMIS_VERSION=7.13.0 RELEASE_TYPE=candidate
      
      make -f Makefile.downstream operator_test OLM_IIB=registry-proxy.engineering.redhat.com/rh-osbs/iib:958213 OLM_CHANNEL=7.13.x JOLOKIA_API_URL=https://download.devel.redhat.com/devel/candidates/amq/amq-broker-7.13.0.JAS.1.CR3/amq-broker-jolokia-api-server-7.13.0-install-rhel9.zip SPP_URL=https://download.devel.redhat.com/devel/candidates/amq/amq-broker-7.13.0.SPP.1.CR3/amq-broker-self-provisioning-plugin-7.13.0-install-rhel9.zip KUBE_CREDENTIALS=stephen/strang8 TESTS=SelfProvisioningPluginUITests TEST_LOG_LEVEL=debug
      
      docker run --rm --network=host -it \                                                 
        --shm-size=1gb \
        mcr.microsoft.com/playwright:v1.52.0-jammy \
        bash -c "apt-get update && apt-get install -y nodejs npm && npm install playwright && Xvfb :99 -screen 0 1920x1080x24 && npx playwright launch-server --browser chromium -- --disable-gpu"
      

      And many other variants did not work for me locally. JS was not loading properly etc. Issues with missing HTML elements due to JS.

              mtoth@redhat.com Michal Toth
              mtoth@redhat.com Michal Toth
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: