[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:
Adrian Moldovan 2024-04-29 20:24:29 +03:00 committed by GitHub
parent 9d0a5141af
commit 9ff383e703
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 5 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: dev
E2E tests: don't exit if the consumer token was not cleared in teardown

View File

@ -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 );
};