Skip to content

Commit

Permalink
Update AdminXssTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Feb 10, 2022
1 parent 49f58da commit 4d1ff93
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions tests/Browser/AdminXssTest.php
Expand Up @@ -21,19 +21,21 @@ public function testPages()
$browser->fillForm();
});

$adminUrls = [];
$routeCollection = Route::getRoutes();
foreach ($routeCollection as $value) {
if (strpos($value->uri(), 'admin') !== false) {
$adminUrls[] = $value->uri();
if ($value->getActionMethod() == 'GET') {
continue;
}
}
if (strpos($value->uri(), 'admin') !== false) {
$browser->visit($value->uri());

dd($adminUrls);
$browser->within(new ChekForJavascriptErrors(), function ($browser) {
$browser->validate();
});

$browser->within(new ChekForJavascriptErrors(), function ($browser) {
$browser->validate();
});
$browser->pause(2000);
}
}


});
Expand Down

0 comments on commit 4d1ff93

Please sign in to comment.