mirror of
https://github.com/gavvvr/obsidian-timecodes-plugin.git
synced 2026-07-22 05:38:08 +00:00
e2e: take screenshot of Obsidian app after failed E2E scenario
It will be automatically added to Allure reporter
This commit is contained in:
parent
f2638b5385
commit
d83f0169ba
1 changed files with 5 additions and 0 deletions
|
|
@ -47,6 +47,11 @@ export const config: WebdriverIO.Config = {
|
|||
ui: 'bdd',
|
||||
timeout: debug ? ONE_DAY : 60000,
|
||||
},
|
||||
afterTest: async function (_test, _context, { error }) {
|
||||
if (error) {
|
||||
await browser.takeScreenshot()
|
||||
}
|
||||
},
|
||||
beforeSuite: async () => {
|
||||
await ObsidianApp.removeE2eTestVaultIfExists()
|
||||
await ObsidianApp.createAndOpenFreshVault()
|
||||
|
|
|
|||
Loading…
Reference in a new issue