FunctionalJavascript tests take a long time to run

Created on 7 April 2021, about 4 years ago
Updated 29 November 2024, 5 months ago

Problem/Motivation

The ~18 or so FunctionalJavascript tests in this module take a long time to run. Recent runs on 2021-04-07 showed they take ~19 min. @mparker17's gut says this seems longer FunctionalJavascript tests in other modules.

This costs drupal.org money; and slows down contributors.

Something notable about this module's FunctionalJavascript tests I haven't seen in other modules is that the tests call $this->createScreenshot() about ~600 times.

Screenshots can be useful for visual regression testing, but AFAIK we're not using that (I dunno where to find the screenshots). Plus, the tests also interact with the page and assess whether things are visible or not; and @mparker17 has usually found this interaction to be sufficient to verify that the module is working as expected.

Proposed resolution

See if we can improve the time it takes for the test to run by not taking any screenshots.

Remaining tasks

  1. See if it improves the test time
  2. Commit to 4.x

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Needs review

Version

4.0

Component

Code

Created by

🇨🇦Canada mparker17 UTC-4

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024