← Back to team overview

mahara-contributors team mailing list archive

[Bug 1885982] Re: behat headless doesn't work with chrome 80

 

Gerrit: https://reviews.mahara.org/#/c/10785/ Patch set 13
Browser: n/a
Theme: n/a

Precondition 1: Behat test runs successfully when NOT executed headless.
a) On master, before patch applied.
b) Use the following  feature file & command to execute it:
   ./test/behat/mahara_behat.sh rundebug copy_note_content.feature
   Actual results: User interface displayed as tests executed,
   1 scenario (1 passed), 22 steps (22 passed), 0m15.72s (35.15Mb).

Test scenario 1: Verify that Behat tests continue to run successfully after the patch is applied.
Steps:
1.1 Apply patch.
1.2 Re-execute precondition 1b)
   Expected result: the result’s scenario & steps are the same,
   the time and space results are similar.
   Actual result: ✔ as expected.
   1 scenario (1 passed), 22 steps (22 passed), 0m15.29s (35.27Mb).

Test scenario 2: Verify that headless Behat tests can run successfully
when the virtual display server is NOT running.
Steps:
2.1 Check that the virtual display server is NOT running using the terminal
command:
    ps aux |grep Xvfb
    Expected result: should only return a one line response with the following
        at then end if the virtual display server is NOT running
             .....”grep --color=auto Xvfb”.
    Actual result: ✔ as expected.
    Note: if it is necessary to stop it, use the terminal command:
    sudo kill <virtual display server processid>
2.2 Execute the Behat test headless by running the following command:
    ./test/behat/mahara_behat.sh rundebugheadless copy_note_content.feature
    Expected result: as per precondition actual results.
    Actual result: ✔ as expected,
    i.e. 1 scenario (1 passed), 22 steps (22 passed), 0m15.07s (35.27Mb)
    – refer to the attached text file for the full results.

Test scenario 3: Verify that headless Behat tests can run successfully
when the display server IS running.
Precondition 2: Test scenario 2 has been executed successfully.
Steps:
3.1 Ensure that the virtual display server is running on port 10, 
    using the terminal command:
    ps aux |grep Xvfb
    Expected result: should return a two line response, one line will have
        the following at then end if the virtual display server IS running
             .....”Xvfb :10 -ac”
    Note: to execute it if it is NOT running, use the terminal command:
    Xvfb :10 -ac
    Actual result: ✔ as expected – refer attached terminal text file
3.2 Execute the Behat test headless:
    ./test/behat/mahara_behat.sh rundebugheadless copy_note_content.feature
    Expected result: as per precondition 1 actual results, and,
       a port other than 10 is used.
    Actual result: ✔ as expected, port 11 used
    i.e. 1 scenario (1 passed), 22 steps (22 passed), 0m14.88s (35.27Mb)
    – refer to the attached text file for the full results.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1885982

Title:
  behat headless doesn't work with chrome 80

Status in Mahara:
  In Progress

Bug description:
  patch for this here https://reviews.mahara.org/#/c/10785/5

  add -screen pixel depth and related xvfb params for bionic and chrome 80
    fixes issue with chrome 80 and xvfb where default parameters (prob pixel depth)
    makes chrome fail to connect to xvfb/selenium.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1885982/+subscriptions


References