As far as I understand it, the problem is that "
myapp.pl" at this step no longer implements the app by itself, but loads it from a module by its name.
The test file still expects to have access to the app by "require"ing the start script, but that no longer works.
In order to have the tests succeed again you have to tell Test::Mojo which app to load.
In other words:
Line 9 in login.t still reads:
my $t = Test::Mojo->new();
But you have to add the name of the app, so it reads:
my $t = Test::Mojo->new('MyApp');
HTH
- Heiko