Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 66d10d8

Browse files
committed
[CI] Fix dusk tests for new admin/dashboard URL
1 parent 398be9c commit 66d10d8

21 files changed

Lines changed: 28 additions & 28 deletions

tests/Browser/ApiKeyControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function test(): void
7070
->type( 'username', 'travis' )
7171
->type( 'password', 'travisci' )
7272
->press( '#login-btn' )
73-
->waitForLocation( '/admin' );
73+
->waitForLocation( '/admin/dashboard' );
7474

7575
$browser->visit( '/api-key/list' )
7676
->assertSee( 'API Keys' )

tests/Browser/CabinetControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function testCabinet(): void
7070
->type( 'username', 'travis' )
7171
->type( 'password', 'travisci' )
7272
->press( '#login-btn' )
73-
->waitForLocation( '/admin' );
73+
->waitForLocation( '/admin/dashboard' );
7474

7575
$browser->visit( route( 'rack@list' ) )
7676
->assertSee( 'Racks' )

tests/Browser/ConsoleServerControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function testConsoleServers(): void
7676
->type( 'username', 'travis' )
7777
->type( 'password', 'travisci' )
7878
->press( '#login-btn' )
79-
->waitForLocation( '/admin' );
79+
->waitForLocation( '/admin/dashboard' );
8080

8181
$browser->visit( route( 'console-server@list' ) )
8282
->waitForText( 'Console Servers' );

tests/Browser/ContactControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function testAdd(): void
6767
->type( 'username', 'travis' )
6868
->type( 'password', 'travisci' )
6969
->press( '#login-btn' )
70-
->waitForLocation( '/admin' );
70+
->waitForLocation( '/admin/dashboard' );
7171

7272
$browser->visit( '/contact/list' )
7373
->assertSee( 'HEAnet CustAdmin' )

tests/Browser/CoreBundleControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function testAddWizard(): void
7777
->type( 'username', 'travis' )
7878
->type( 'password', 'travisci' )
7979
->press( '#login-btn' )
80-
->waitForLocation( '/admin' );
80+
->waitForLocation( '/admin/dashboard' );
8181

8282
$coreBundlesList = [
8383
CoreBundle::TYPE_ECMP => [

tests/Browser/CustomerEquipmentControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function testColocatedEquipment(): void
6969
->type( 'username', 'travis' )
7070
->type( 'password', 'travisci' )
7171
->press( '#login-btn' )
72-
->waitForLocation( '/admin' );
72+
->waitForLocation( '/admin/dashboard' );
7373

7474
$browser->visit( route( 'cust-kit@list' ) )
7575
->assertSee( 'Colocated Equipment' );

tests/Browser/InfrastructureControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function testAdd(): void
6868
->type( 'username', 'travis' )
6969
->type( 'password', 'travisci' )
7070
->press( '#login-btn' )
71-
->waitForLocation( '/admin' );
71+
->waitForLocation( '/admin/dashboard' );
7272

7373
$browser->visit( route( 'infrastructure@list' ) )
7474
->assertSee( 'Infrastructures' )

tests/Browser/IpAddressControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function testIpAddress(): void
103103
->type( 'username', 'travis' )
104104
->type( 'password', 'travisci' )
105105
->press( '#login-btn' )
106-
->waitForLocation( '/admin' );
106+
->waitForLocation( '/admin/dashboard' );
107107

108108
$vlan = Vlan::create( $this->vlan );
109109
$vlanId = $vlan->id;

tests/Browser/IrrdbConfigControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function testIRRDBConfig(): void
6969
->type( 'username', 'travis' )
7070
->type( 'password', 'travisci' )
7171
->press( '#login-btn' )
72-
->waitForLocation( '/admin' );
72+
->waitForLocation( '/admin/dashboard' );
7373

7474
$browser->visit( route( 'irrdb-config@list' ) )
7575
->assertSee( 'IRRDB Sources' );

tests/Browser/LocationControllerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function testAdd(): void
7171
->type( 'username', 'travis' )
7272
->type( 'password', 'travisci' )
7373
->press( '#login-btn' )
74-
->waitForLocation( '/admin' );
74+
->waitForLocation( '/admin/dashboard' );
7575

7676
$browser->visit( route( 'facility@list' ) )
7777
->assertSee( 'Facilities' )

0 commit comments

Comments
 (0)