Select last items of secondary navigation using acceptance test.

Select last items of secondary navigation using acceptance test.

av Daniele Cordella -
Antal svar: 2
Bild på Core developers Bild på Particularly helpful Moodlers Bild på Plugin developers
Hello moodlers.
Writing an acceptance test for my surveypro plugin (https://github.com/kordan/moodle-mod_surveypro)
I tried to select the last item of its "secondary navigation".
In surveypro the last item of the secondary navigation is inside the "More" menu (the last visible item of the secondary navigation).
Using:

And I select "Surveypro" from secondary navigation 
all is fine because "Surveypro" item is the first one and it is always visible,
but trying to select the last item (hidden in the "More" menu) I get ... xpath node is not visible and it should be visible (Behat\Mink\Exception\ExpectationException)

Is there a way to selet it using "standard" core methods or I am supposed to find a workaround?

As usual, thanks in advance.
Genomsnitt av betyg: -
Som svar till Daniele Cordella

Re: Select last items of secondary navigation using acceptance test.

av Benjamin Ellis -
Bild på Particularly helpful Moodlers
Hi,

You might have to expand the secondary menu - 'click on "more"' before that step.