Skip to content

Commit

Permalink
Bug: page context error (#112)
Browse files Browse the repository at this point in the history
  • Loading branch information
m2rads authored Dec 12, 2024
1 parent d5dc685 commit b777f4d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/shortest/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.0.6] - 2024-12-11
## [0.0.7] - 2024-12-12

### Fixed
- Fixed hooks context not being reset between tests

### Added
- Fixed Cli installation issues
Expand Down
2 changes: 1 addition & 1 deletion packages/shortest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antiwork/shortest",
"version": "0.0.6",
"version": "0.0.7",
"description": "AI-powered natural language end-to-end testing framework",
"type": "module",
"main": "./dist/index.js",
Expand Down
5 changes: 5 additions & 0 deletions packages/shortest/src/core/runner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@ export class TestRunner {

} finally {
await this.browserManager.close();
// reset all hooks
registry.beforeAllFns = [];
registry.afterAllFns = [];
registry.beforeEachFns = [];
registry.afterEachFns = [];
}

} catch (error) {
Expand Down

0 comments on commit b777f4d

Please sign in to comment.