Closed (fixed)
Project:
Tour
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 Feb 2013 at 21:33 UTC
Updated:
23 Aug 2024 at 17:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pmackay commentedI'm looking at this in Portland sprint.
Comment #2
pmackay commentedHere's an initial stab at creating some tour definitions for block and custom_block:
Comment #3
pmackay commentedComment #3.0
pmackay commentedUpdated issue summary.
Comment #4
benjy commentedRe-uploading because the test bot failed.
Comment #5
benjy commentedWould help if I uploaded the right file.
Comment #6
larowlanWrong issue?
Needs tests, so postponed until #2028535: Provide a TourTestBase class for use by core and contrib modules is in (please help review that).
Comment #7
rcaracaus commentedI ended up having to test this thing about 20 times, added bunch of combinations of different permissions and modules, I had to enable 'seven' theme as default in the TestBasic class, and had to set/place the the help block.
Comment #8
rcaracaus commentedPretty sure my last one was missing new line.
Comment #9
nick_schuch commentedComment #11
larowlan#8: custom_block_tour_test-1926294-7.patch queued for re-testing.
Comment #12
larowlanIn light of #2078635: Add an 'Add custom block type' local action to the 'Custom block library' this is fairly important, but will need a re-roll as everything has moved around.
Comment #14
clemens.tolboomChecking for the path used by custom block
sorted by block and block type
path: '/admin/structure/block/custom-blocks'
path: '/block/add'
path: block/add/{custom_block_type}
path: '/block/{custom_block}'
path: '/block/{custom_block}/delete'
path: '/admin/structure/block/custom-blocks/types'
path: '/admin/structure/block/custom-blocks/manage/{custom_block_type}/delete'
path: '/admin/structure/block/custom-blocks/manage/{custom_block_type}'
path: '/admin/structure/block/custom-blocks/types/add'
Patch #5 covers
Basic path
Custom block edit. This patch is replaced by block/*
List is moved to admin/structure/block/custom-blocks
Comment #15
clemens.tolboomI'm not sure I understand this tests.
For testing tours do we have to create content? That feels weird.
The custom block module should have code for testing creating custom blocks.
I guess our TourTestBasic missed some feature or the test should merge into a testcase of Custom Block itself.
For now I add only a fix for #5
No need for testing this patch now.
Comment #16
clemens.tolboomAnd now the complete fix patch from #5 ... consider #15 as the interdiff :p
Comment #17
clemens.tolboomDarn .. my bad. I try to move around the texts now.
This is not applicable on the path block/* anymore.
Belong to path ...
Wrong path ... this belong to 2 different pages.
Comment #18
clemens.tolboomI've fixed mentioned issues from #17.
I don't think we need a tour for block/* as that is a simple edit page right?
Tomorrow I start working on #15 aka tests. I wrote part of the TourTestBase and it does not seem to fit it's job :-/
Comment #19
nick_schuch commentedclemens.tolboom,
The TourTestBase was a complete rewrite as per our discussion. Can you please provide feedback to this issue as to how it does not fit?
Comment #20
nick_schuch commentedAs block_ui is still be worked on I do not recommend working on this issue until that is done.
Comment #21
clemens.tolboomI've merged the test from #8 without the patch on TourTestBase together with #18 to run into #2098325: Tour UI converts tip plugin from 'text' to 'text_extended'
Uninstalling Tour UI did not help removing bad tours provided by Tour UI or Tour Builder. That's another Core issue.
The tour in #8 test the block tour so I changed the code to reflect this.
@rcaracaus nicely added the help block but it is not activate. Error "Found corresponding page element for tour tip with id #block-help" I do not understand.
Comment #22
clemens.tolboomThis path cannot be tested somehow. Does this has to do with
This does not enable the help block somehow.
This block is regarding #15 as I don't think our TourTestBasic should enable themes. That's up to the custom tests I guess in this case TourBlockTest as it wants to test theme seven.
Comment #23
larowlanComment #25
xano#21: drupal8.block-module.1926294-21.patch queued for re-testing.
Comment #26
clemens.tolboomAs @nick_schuch mentioned in #20 I wait for better times :
Comment #27
xanoComment #28.0
(not verified) commentedUpdated issue summary.
Comment #29
kim.pepperComment #30
jaskho commentedComment #31
larowlanNote #1918768: Refactor tour module to use routes instead of paths just landed
Comment #32
benjy commentedI simply re-rolled this to use routes because I wanted to have a play with tours after DrupalSouth. They're pretty neat!
On a side note, I read in the docs about route_params but would have been good if there was an example. https://drupal.org/developing/api/tour
Comment #34
xanoI cleaned up the test, which was a mess to look at.
Most test failures were random, although there is one in the newly added test that I am getting locally as well and can't wrap my head around:
\Drupal\tour\Tests\TourTestBase::assertTourTips()finds a rout with HTML IDblock-helpon the page using XPath, but later, when checking with PHPUnit, it can no longer find anything with that class, which causes the single test failure.Comment #36
xanoFixed the config schema failures.
Comment #38
tim.plunkettComment #39
Antti J. Salminen commentedOnly setting to needs review for tests. Reroll for block_content rename, PSR-4, move to config/install. Also fixed the long-standing problem with the help block test (block needed to be added for the admin theme).
As the block classes are being changed per #1896098: Add a plugin class to the blocks to identify instances in css and the current block id (block-$themename-help) requires a complicated selector, I didn't add it so it still doesn't pass though.
Didn't touch the strings in the UI because those haven't changed in block_content either at this time.
Comment #41
alexpottMoving to correct component.
Comment #42
webchickThis one seems like a good thing to do, but postponed on #1921152-109: META: Start providing tour tips for other core modules. for now.
Comment #55
quietone commentedThis tour module is being deprecated, see #3336033: [Meta] Tasks to deprecate Tour module. It will be removed from core and moved to a contrib project, #3376099: [11.x] [Meta] Tasks to remove Tour.
This is now Postponed. The status is set according to two policies. The Remove a core extension and move it to a contributed project and the Extensions approved for removal policies.
Comment #57
quietone commentedComment #58
pooja_sharma commentedComment #60
pooja_sharma commentedI have integrated tour for custom block, attached the screenshots, not sure apart from it, nothing seems to be left.
PLease review, moving NR
Comment #61
smustgrave commentedLeft a comment on MR.
Comment #62
pooja_sharma commentedAddressed the feedback, PLease review moving NR.
Comment #63
pooja_sharma commentedRebased the MR, by mistaken added unrelated folder removed it.
Comment #65
smustgrave commented