Select last items of secondary navigation using acceptance test.

Select last items of secondary navigation using acceptance test.

von Daniele Cordella -
Anzahl Antworten: 2
Nutzerbild von Core developers Nutzerbild von Particularly helpful Moodlers Nutzerbild von 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.
Als Antwort auf Daniele Cordella

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

von Benjamin Ellis -
Nutzerbild von Particularly helpful Moodlers
Hi,

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