Skip to content

Improve system tests descriptions#40386

Merged
MacJoom merged 13 commits intojoomla:4.4-devfrom
Digital-Peak:tests/description
Apr 17, 2023
Merged

Improve system tests descriptions#40386
MacJoom merged 13 commits intojoomla:4.4-devfrom
Digital-Peak:tests/description

Conversation

@laoneo
Copy link
Copy Markdown
Member

@laoneo laoneo commented Apr 14, 2023

Unifies the test descriptions. The describe text should always be:

Test that the {component name} {view name} view

While the description of the test itself should be a continuation of the description text like:

can {the tests which are performed}

Both texts should be possible to concat so a meaningful sentence will be built. Because these texts will be displayed in cypress like:
image

@laoneo
Copy link
Copy Markdown
Member Author

laoneo commented Apr 14, 2023

@brianteeman can you have a look here if I screwed up something?

@brianteeman
Copy link
Copy Markdown
Contributor

@laoneo lol - I was going to take a look at all of this today. Looks like there might still be a few tweaks needed. setting up my pc for tests and then will post back shortly

@laoneo
Copy link
Copy Markdown
Member Author

laoneo commented Apr 14, 2023

@sandewt thanks for the hint, changed it

@brianteeman
Copy link
Copy Markdown
Contributor

'can create a article'
==>
'can create an article'

@brianteeman
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on 41e01f1


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

@brianteeman
Copy link
Copy Markdown
Contributor

These text patterns should be documented


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

@sandewt
Copy link
Copy Markdown
Contributor

sandewt commented Apr 15, 2023

it('testing registration form for test user through menu item', () => {

Suggestion:

it('testing registration form for a test user through a menu item', () => {

sandewt added a commit to sandewt/joomla-cms that referenced this pull request Apr 15, 2023
@sandewt
Copy link
Copy Markdown
Contributor

sandewt commented Apr 15, 2023

it('can show.., and it('can display... are both used.
Preference? Or leave it that way?

laoneo and others added 2 commits April 17, 2023 08:47
…gin.cy.js

Co-authored-by: jsanders <j53.sanders@gmail.com>
@laoneo
Copy link
Copy Markdown
Member Author

laoneo commented Apr 17, 2023

Better to use display

@MacJoom MacJoom merged commit e51c37d into joomla:4.4-dev Apr 17, 2023
@MacJoom MacJoom deleted the tests/description branch April 17, 2023 08:55
@MacJoom MacJoom added this to the Joomla! 4.4.0 milestone Apr 17, 2023
@sandewt
Copy link
Copy Markdown
Contributor

sandewt commented Apr 17, 2023

Thanks all

laoneo pushed a commit that referenced this pull request Apr 25, 2023
* services

* Delete mod_breadcrumbs.php

here no longer required, moved

* Updated to new structure

* Create Dispatcher.php

* Create provider.php

* Create Default.cy.js

* Correction

Missing tag

* Correction

* Delete $data parameter

BreadcrumbsHelper has no constructor.

* Restore setSeparator function

Please restore it and deprecate it

* Order functions changed

More logical

* HTMLHelper

Needed for setSeparator

* Improve test description

In accordance with #40386

* Correction

$this->getHome => $this->getHomeItem

* not used anymore

add text

* functionality

better description
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants