Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-25057

Replace the usage of the shadow-piercing combinator on the ftest framework

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.3
    • Component/s: Web UI
    • Release Notes Summary:
      New Shadow DOM handling plugin, with multi browser support.
    • Release Notes Description:
      Hide
      • Added a plugin that allows our framework to pierce through Shadow DOM without relying in any browser-specific technology.
      • Added support for multi browser, although the test suite only completes successfully on Chrome.
      Show
      Added a plugin that allows our framework to pierce through Shadow DOM without relying in any browser-specific technology. Added support for multi browser, although the test suite only completes successfully on Chrome.
    • Tags:
    • Sprint:
      nxGang Sprint 10.3.5, nxGang Sprint 10.3.6
    • Story Points:
      5

      Description

      We need to replace the usage of the shadow-piercing combinator in the ftest framework, since it was removed on Chrome 69.

      As results of this task:

      • the shadow adapter was converted into a plugin that contributes new wdio commands, which no longer relies on the shadow-piercing combinator >>>
      • because of this, we lost the ability to use xpath selectors, which will be covered in NXP-25871
      • added a new test tag @cleanupLocalStorage to make sure that the local storage will be cleaned for the current user after the covered scenario(s) run
      • added support for different browsers; you can now use the --browser cli param or the more convenient environment variable BROWSER (i.e., to run the tests with Firefox, you can run BROWSER=firefox npm run test:watch)
      • there's a new environment variable BROWSER_BINARY, which allows the path of the browser binary to be changed (applies to Chrome and Firefox only, for now...); this is particularly useful for CI
      • updated the Jenkinsfile so these variables will be exposed as job params for the pipeline
      • tests are passing on Chrome, but there are still random failures, which will be tackled under NXP-25872
      • only 68% of them pass on Firefox, which will be addressed in NXP-25873
      • most tests fail on Safari, which we'd like to fix in NXP-25875
      • backport for 9.10 will be done separately under NXP-25876

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 weeks, 1 day, 5 hours, 15 minutes
                  2w 1d 5h 15m