Select last items of secondary navigation using acceptance test.

Select last items of secondary navigation using acceptance test.

Napisane bez: Daniele Cordella ()
Liczba ôdpowiedzi: 2
Ôbrŏz Core developers Ôbrŏz Particularly helpful Moodlers Ôbrŏz 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.
W ôdpowiedzi na Daniele Cordella

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

Napisane bez: Benjamin Ellis ()
Ôbrŏz Particularly helpful Moodlers
Hi,

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