Unit/System Tests NPM Resource Changed PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar muhme
muhme
30 Jun 2024

Summary of Changes

Revised after 27 commits on 7 August 2024

The goal is to use the NPM joomla-cypress version 1.1.1 for all four active joomla-cms branches. Actual 4.4-dev uses 0.0.16; and 5.1-dev, 5.2-dev and 6.0-dev are using 1.0.3.

The following changes have already been separated from this PR and have already been merged into 4.4-dev:

Also released is NPM package joomla-cypress as version 1.1.1. ?

Change:

  • The joomla-cypress version is set to ^1.1.1, so - among other things - the check for PHP warnings is activated again.
  • The Cypress commands overwritten by System Tests for a faster session-based login have been removed as they are included in joomla-cypress version 1.1.1.
  • The note about overwritten commands in tests/System/README.md is deleted.

⚠️ Only NPM package joomla-cypress was updated, BUT there are more changes in package-lock.json. ⚠️

  • Reasons are
    • Dependend packages like cypress and cypress-file-upload
    • package.json and package-lock.json were not in-sync. For example in package.json the version is stated as '4.4.7' and in package-lock.json as '4.4.6'.

Successfully retested with all System Tests passed on 7 Agust 2024 after 27 commits:

  • on Intel macOS 14.5 Sonoma with PHP 8.3.9
  • on Intel Windows 11 Pro with Laragon and PHP 8.1.10
  • on Intel x86_64 Ubuntu 24.04 LTS Noble Numbat with PHP 8.3.6

Testing Instructions

  • Install (in using npm ci) and run System Tests w/o errors
  • Check version is 1.1.1 in node_modules/joomla-cypress/package.json
  • Check that the additional updates in the package-lock.json file had no effect.

Actual result BEFORE applying this Pull Request

  • System Tests is using joomla-cypress version 0.0.16 and a custom implementation of the faster session-based login
  • No checks of PHP warnings
  • System Tests suite is running without errors

Expected result AFTER applying this Pull Request

  • System Tests is using joomla-cypress actual version 1.1.1 and its session-based login
  • PHP warning checks are activated again
  • System Tests suite is running without errors

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

Up-Merging

@LadySolveig @bembelimen I will create a separate different PR for 5.1-dev

avatar muhme muhme - open - 30 Jun 2024
avatar muhme muhme - change - 30 Jun 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 Jun 2024
Category NPM Change JavaScript Unit Tests
avatar hans2103 hans2103 - test_item - 30 Jun 2024 - Tested successfully
avatar hans2103
hans2103 - comment - 30 Jun 2024

I have tested this item ✅ successfully on 9a66d94


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43722.

avatar richard67
richard67 - comment - 30 Jun 2024

@muhme Which command have you used to update the dependency? To me it seems this PR updates more dependencies than only joomla-cypress and it’s dependencies.

avatar muhme
muhme - comment - 1 Jul 2024

@muhme Which command have you used to update the dependency? To me it seems this PR updates more dependencies than only joomla-cypress and it’s dependencies.

@richard67 npm update to stay up-to-date with all dependencies. Should it changed to only update joomla-cypress and it’s dependencies?

avatar richard67
richard67 - comment - 1 Jul 2024

Should it changed to only update joomla-cypress and it’s dependencies?

@muhme Yes. We don’t do dependency updates with patch versions. And to update all dependencies without even mentioning it in the description of this PR would not be good anyway. @laoneo can explain and decide.

avatar alikon
alikon - comment - 1 Jul 2024

the #43726 should avoid the need for the hack in newsfeed and in the related_items module....

avatar muhme
muhme - comment - 2 Jul 2024

Set to DRAFT to:

  • Only update joomla-cypress and it’s dependencies
  • Remove joomla-cypress commands are overwritten in tests/System/README.md
  • Wait for muhme#6
  • Test again
avatar muhme
muhme - comment - 2 Jul 2024

And to update all dependencies without even mentioning it in the description of this PR would not be good anyway.

@richard67 Since the creation of this PR, the following statement has been included in the description:

⚠️ All other NPM packages are also updated with the npm update, see differences in package-lock.json.

The fact that all packages are updated is therefore explicitly named from my point of view and even provided with a visual eye-catcher. Also, the following instruction was added to the "Test Instructions" section since this PR was created:

  • Check that there were no effects from the updates in the NPM packages.

Could it be that you haven't read the description, or am I the one who's in the wrong movie? ?

avatar richard67
richard67 - comment - 2 Jul 2024

@muhme Seems I need glasses ?:-) You are right, description is ok, sorry for the noise :-)

avatar muhme muhme - change - 4 Jul 2024
Labels Added: Unit/System Tests NPM Resource Changed PR-4.4-dev
avatar joomla-cms-bot joomla-cms-bot - change - 9 Jul 2024
Category NPM Change JavaScript Unit Tests Front End com_newsfeeds NPM Change JavaScript Unit Tests
avatar joomla-cms-bot joomla-cms-bot - change - 9 Jul 2024
Category NPM Change JavaScript Unit Tests Front End com_newsfeeds Front End com_newsfeeds NPM Change Unit Tests Repository JavaScript
avatar muhme muhme - change - 9 Jul 2024
The description was changed
avatar muhme muhme - edited - 9 Jul 2024
avatar muhme
muhme - comment - 9 Jul 2024

Reverted to "Ready to merge", the description has been completely revised after all changes.

avatar laoneo
laoneo - comment - 22 Jul 2024

Are the changes in the View classes really needed?

avatar muhme
muhme - comment - 22 Jul 2024

Are the changes in the View classes really needed?

In 4.4-dev with joomla-cypress 0.0.16 the PHP message and warningas checks were disabled. With joomla-cypress 1.1.0 they are enabled and the System tests had 6 failures. At first there were workaround 'hacks' in the system tests to get the test suite running without errors. @alikon solved all system test 'hacks' by backporting and investigating. @alikon: Can you explain more in detail?

avatar laoneo
laoneo - comment - 22 Jul 2024

If these are bugs in the code, we should do them separate and then they need also two human tests.

avatar brianteeman
brianteeman - comment - 22 Jul 2024

Golden rule - solve one issue with one pull request

avatar muhme muhme - change - 4 Aug 2024
Title
Update to joomla-cypress 1.1.0
Update to joomla-cypress 1.1.1
avatar muhme muhme - edited - 4 Aug 2024
avatar muhme muhme - change - 4 Aug 2024
Title
Update to joomla-cypress 1.1.1
[4.4] Use joomla-cypress 1.1.1
avatar muhme muhme - edited - 4 Aug 2024
avatar joomla-cms-bot joomla-cms-bot - change - 4 Aug 2024
Category NPM Change JavaScript Unit Tests Front End com_newsfeeds Repository NPM Change Unit Tests Repository JavaScript
avatar muhme muhme - change - 4 Aug 2024
The description was changed
avatar muhme muhme - edited - 4 Aug 2024
avatar laoneo
laoneo - comment - 6 Aug 2024

As the other pr's are merged, can this one be changed to ready?

avatar muhme
muhme - comment - 6 Aug 2024

As the other pr's are merged, can this one be changed to ready?

No, it's intentionally set to 'Draft'. I would prefer to wait for the release of joomla-cypress 1.1.1 and then update this PR, set it on 'Ready to Merge' and create separate PR for all other branches, ok?

avatar muhme muhme - change - 7 Aug 2024
The description was changed
avatar muhme muhme - edited - 7 Aug 2024
avatar muhme
muhme - comment - 7 Aug 2024

@laoneo Set to ready-for-review, as all preconditions have been fulfilled and the PR has been adjusted and pre-tested

@alikon Could you please test?

avatar laoneo laoneo - change - 7 Aug 2024
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-08-07 16:41:17
Closed_By laoneo
avatar laoneo laoneo - close - 7 Aug 2024
avatar laoneo laoneo - merge - 7 Aug 2024
avatar laoneo
laoneo - comment - 7 Aug 2024

Thanks!

Add a Comment

Login with GitHub to post a comment