behat headless doesn't work with chrome 80
Bug #1885982 reported by
Cecilia Vela Gurovic
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Mahara | ||||||
19.04 |
Fix Released
|
Medium
|
Unassigned | |||
19.10 |
Fix Released
|
Medium
|
Unassigned | |||
20.04 |
Fix Released
|
Medium
|
Unassigned | |||
20.10 |
Fix Released
|
Medium
|
Cecilia Vela Gurovic |
Bug Description
patch for this here https:/
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.
Changed in mahara: | |
milestone: | none → 20.10.0 |
Changed in mahara: | |
importance: | Undecided → Medium |
status: | New → In Progress |
assignee: | nobody → Cecilia Vela Gurovic (ceciliavg) |
Changed in mahara: | |
milestone: | 20.10.0 → none |
no longer affects: | mahara |
To post a comment you must log in.
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. behat/mahara_ behat.sh rundebug copy_note_ content. feature
a) On master, before patch applied.
b) Use the following feature file & command to execute it:
./test/
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
. ....”grep --color=auto Xvfb”. behat/mahara_ behat.sh rundebugheadless copy_note_ content. feature
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
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/
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
. ....”Xvfb :10 -ac” behat/mahara_ behat.sh rundebugheadless copy_note_ content. feature
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
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/
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.