[e2e tests] Don't exit if the consumer token is not cleared in teardown (#47020)
* Assert for consumer token being cleared, but don't exit * Add changelog
This commit is contained in:
parent
9d0a5141af
commit
9ff383e703
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: dev
|
||||
|
||||
E2E tests: don't exit if the consumer token was not cleared in teardown
|
|
@ -1,4 +1,4 @@
|
|||
const { chromium } = require( '@playwright/test' );
|
||||
const { chromium, expect } = require( '@playwright/test' );
|
||||
const { admin } = require( './test-data/data' );
|
||||
|
||||
module.exports = async ( config ) => {
|
||||
|
@ -95,8 +95,5 @@ module.exports = async ( config ) => {
|
|||
}
|
||||
}
|
||||
|
||||
if ( ! consumerTokenCleared ) {
|
||||
console.error( 'Could not clear consumer token.' );
|
||||
process.exit( 1 );
|
||||
}
|
||||
await expect( consumerTokenCleared ).toBe( true );
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue