<div>OK... I understood, but I suspect that the error is other or I'm doing somenthing wrong.<br></div><div>When I execute<br></div><div>py.test-3 --include-functional plinth/modules/users/tests/<br></div><div>After that I had the same result...<br></div><div>"<br></div><div>FAILED plinth/modules/users/tests/test_functional.py::test_create_user - splinter.exceptions.ElementDoesNotExist: no elements could be found with css "input[type=submit]"<br></div><div>"<br></div><div>Do you know something about that?<br></div><div><br></div><div>Regards,<br></div><div>Tiago Zaniquelli<br></div><div><br></div><div>‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br></div><div> Em terça-feira, junho 8, 2021 2:07 PM, Fioddor Superconcentrado <fioddor@gmail.com> escreveu:<br></div><div> <br></div><blockquote class="protonmail_quote" type="cite"><div dir="ltr"><div>You should have a look inside <i>plinth/modules/storage/tests/</i> directory.<br></div><div><i></i><br></div><div><i>storage.feature</i> is the behaviour description of the tests. It is written in an easy human-readable formal language called Gherkin. Currently it contains only one scenario (<code><span>Scenario</span><span>:</span> List disks</code>).<br></div><div><i></i><br></div><div>'<code><span>Background</span><span>'</span></code> marks the part that is common to all scenarios. But as I said, we currently have only one in this file.<i><code><span></span></code></i><br></div><div>The line '<code><span>Given </span>I'm a logged in user'</code> logs' the user in.<br></div><div><br></div><div><div>The line '<code><span>Given </span>I'm on the storage page'</code> calls the function in file <i>test_functional.py</i> marked with '<code><span>@</span><span>given</span><span>(</span><span>parsers</span><span>.</span><span>parse</span><span>(</span><span>"I'm on the {name:w} page"</span><span>))'.</span></code><br></div><div>The line'<code><code><span>Then </span>the root disk should be shown</code>'</code>calls the function in file <i>test_functional.py</i> marked with '<code><span></span><span><code><span>@</span><span>then</span><span>(</span><span>'the root disk should be shown'</span><span>)</span></code>'</span></code><code>.</code><br></div></div><div><br></div><div>This way, the functional behaviour (independent from the implementation) is defined in <i>*.features</i> files. And then other <i>*.py</i> files resolve the underlying implementation.<br></div><div><br></div><div>Now we need to fix the test by making it check first if it is running inside a container (with <code>systemd-detect-virt --container</code>) and if that's the case, it should report 'skipped' as test result and abort/skip the rest of the test.<br></div><div><br></div><div>We should apply the rule at scenario level, because If we in the future add another scenario, only the current one should be skipped (and only if run within a container).<br></div><div><br></div><div>The check to make sure we're not running inside a container should be reusable for other scenarios even beyond storage tests. So if we consider it functional, it would belong in the common library for functional steps: <i>plinth/tests/functional/step_definitions.py</i>, where the function which logs the user resides. But "being run on a container" sounds technical rather than functional, so it most likely belongs somewhere else under <i>plinth/tests</i>. Perhaps <i>__init__.py</i>? Or <i>config.py</i>?<br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div><br></div><div class="gmail_quote"><div dir="ltr">El mar, 8 jun 2021 a las 15:57, Tiago Zaniquelli via Freedombox-discuss (<<a href="mailto:freedombox-discuss@alioth-lists.debian.net">freedombox-discuss@alioth-lists.debian.net</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Ok...<br></div><div> <br></div><div> I did the two suggestion...<br></div><div> <br></div><div> First(first.png)... it showed me skipped (test_list_disks)...<br></div><div> <br></div><div> Second(second_one.png, second_two.png)...it showed me a  error because some html... Is this error that need to correct?<br></div><div> <br></div><div> Regards,<br></div><div> <br></div><div> Tiago Zaniquelli<br></div><div> <br></div><div> <br></div><div> Sent with ProtonMail Secure Email.<br></div><div> <br></div><div> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐<br></div><div> Em segunda-feira, junho 7, 2021 7:39 PM, James Valleroy via Freedombox-discuss <<a href="mailto:freedombox-discuss@alioth-lists.debian.net" target="_blank">freedombox-discuss@alioth-lists.debian.net</a>> escreveu:<br></div><div> <br></div><div> > On 6/7/21 4:35 PM, Tiago Zaniquelli via Freedombox-discuss wrote:<br></div><div> ><br></div><div> > > Ahhh, ok.<br></div><div> > > I tried to simulate, but for me everything is ok, and I'm inside the container<br></div><div> > > Could you help me simulate?<br></div><div> ><br></div><div> > Note that the functional tests are skipped by default.<br></div><div> > To include them, add the "--include-functional" option:<br></div><div> ><br></div><div> > $ py.test-3 --include-functional plinth/modules/storage/tests/<br></div><div> ><br></div><div> > -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br></div><div> ><br></div><div> > James<br></div><div> ><br></div><div> > Freedombox-discuss mailing list<br></div><div> > <a href="mailto:Freedombox-discuss@alioth-lists.debian.net" target="_blank">Freedombox-discuss@alioth-lists.debian.net</a><br></div><div> > <a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/freedombox-discuss" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/freedombox-discuss</a><br></div><div> <br></div><div> _______________________________________________<br></div><div> Freedombox-discuss mailing list<br></div><div> <a href="mailto:Freedombox-discuss@alioth-lists.debian.net" target="_blank">Freedombox-discuss@alioth-lists.debian.net</a><br></div><div> <a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/freedombox-discuss" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/freedombox-discuss</a><br></div></blockquote></div></blockquote><div><br></div>