Is there an annotation that will ignore the 'authenticate' test from the report.
Let me know if more info is needed. I am calling the 'authenticate' test through the playwright.config file, 'setup', as a dependency and saving the auth within a 'storageState' user.json file.
example:
import { test as setup } from '@playwright/test';
const authFile = 'playwright/.auth/user.json';
setup('authenticate', async ({ request }) => {
// Send authentication request. Replace with your own.
await request.post('https://github.com/login', {
form: {
'user': 'user',
'password': 'password'
}
});
await request.storageState({ path: authFile });
});
Image of Report with 2 tests instead of 1
I created a function call (instead of a 'test as setup') to open browser before exporting default defineConfig to initialize the user's browser auth information into the user.json. But I kept running into file not found issues, due to the defineConfig file referring to user.json in the 'storageState: ...'
I've read playwright documentation related to annotations, and state configurations, global setup and teardowns, but I can't seem to find anything to remove this test report from the reporting page.
I was thinking of parsing the report and removing that test, but I'm not really sure about that approach.
Thank you for looking into this and let me know if more information is needed.