File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 pull_request :
66
7+ concurrency :
8+ group : ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
9+ cancel-in-progress : true
10+
711jobs :
812 e2e :
913 name : PHP ${{ matrix.php }} - WP ${{ matrix.wordpress }}
10- runs-on : ubuntu-latest
14+ runs-on : ubuntu-24.04
1115 strategy :
12- fail-fast : true
16+ fail-fast : false
1317 matrix :
1418 php : [ "8.2", "8.3", "8.4" ]
1519 wordpress : [ "6.7", "6.8" ]
5054
5155 - name : Checkout plugin
5256 uses : actions/checkout@v4
57+ with :
58+ persist-credentials : false
5359
5460 - name : Set up PHP
5561 uses : shivammathur/setup-php@v2
Original file line number Diff line number Diff line change 4646
4747function asUser (string $ login , string $ password )
4848{
49- return visit ('http://localhost:8100/wp-admin ' )
49+ return visit ('http://localhost:8100/wp-login.php ' )
5050 ->fill ('user_login ' , $ login )
5151 ->fill ('user_pass ' , $ password )
5252 ->press ('wp-submit ' )
53- ->assertUrlIs ( ' http://localhost:8100/wp-admin* ' );
53+ ->assertPresent ( ' #wpadminbar ' );
5454}
5555
5656function asAdmin ()
You can’t perform that action at this time.
0 commit comments