Skip to content

Commit

Permalink
Merge pull request #459 from angrykoala/dev
Browse files Browse the repository at this point in the history
2.13.0
  • Loading branch information
angrykoala authored Jul 24, 2020
2 parents a9334b0 + baa28cf commit 95bc607
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 53 deletions.
37 changes: 0 additions & 37 deletions .github/workflows/publish.yml

This file was deleted.

1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: node_js
os:
- linux
- windows
node_js:
- "lts/*"
sudo: false
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2.13.0 / 2020-07-24
===================

* Puppeteer updated to 5.0
* Dependencies updated
* Fixed parameters signature for textContains and not.textContains assertions
* Removed publish release action

2.12.1 / 2020-07-06
===================

Expand Down
2 changes: 1 addition & 1 deletion lib/browser/assertions/assertions_core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default class AssertionsCore {
}
}

public async textContains(selector: WendigoSelector, expected: string, msg?: string): Promise<void> {
public async textContains(selector: WendigoSelector, expected: string | Array<string>, msg?: string): Promise<void> {
if ((!expected && expected !== "") || (Array.isArray(expected) && expected.length === 0)) {
throw new WendigoError("assert.textContains", `Missing expected text for assertion.`);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/browser/assertions/browser_not_assertions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default class BrowserNotAssertions {
}
}

public async textContains(selector: WendigoSelector, expected: string, msg?: string): Promise<void> {
public async textContains(selector: WendigoSelector, expected: string | Array<string>, msg?: string): Promise<void> {
if ((!expected && expected !== "") || (Array.isArray(expected) && expected.length === 0)) {
throw new WendigoError("assert.not.textContains", `Missing expected text for assertion.`);
}
Expand Down
4 changes: 2 additions & 2 deletions lib/browser/browser_core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ export default abstract class BrowserCore {

@OverrideError()
public async openFile(filepath: string, options: OpenSettings): Promise<void> {
const absolutePath = path.resolve(filepath);
try {
const absolutePath = path.resolve(filepath);
await this.open(`file://${absolutePath}`, options);
} catch (err) {
return Promise.reject(new FatalError("openFile", `Failed to open "${filepath}". File not found.`));
throw new FatalError("openFile", `Failed to open "${filepath}". File not found.`);
}
}

Expand Down
4 changes: 2 additions & 2 deletions lib/puppeteer_wrapper/puppeteer_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ export default class PuppeteerPage {
return this.page.setViewport(finalConfig);
}

public on<K extends keyof PageEventObj>(eventName: K, cb: (msg: PageEventObj[K]) => Promise<void>): void {
public on<K extends keyof PageEventObj>(eventName: K, cb: (msg: PageEventObj[K]) => void): void {
this.page.on(eventName, cb);
}

public off<K extends keyof PageEventObj>(eventName: K, cb: (msg: PageEventObj[K]) => Promise<void>): void {
public off<K extends keyof PageEventObj>(eventName: K, cb: (msg: PageEventObj[K]) => void): void {
this.page.off(eventName, cb);
}

Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wendigo",
"version": "2.12.1",
"version": "2.13.0",
"description": "A proper monster for front-end automated testing",
"engines": {
"node": ">=8.0.0"
Expand Down Expand Up @@ -43,19 +43,19 @@
"dependencies": {
"compositer": "^1.3.6",
"is-class": "0.0.9",
"puppeteer": "~3.3.0"
"puppeteer": "~5.2.1"
},
"devDependencies": {
"@types/mocha": "^7.0.2",
"@types/node": "^14.0.11",
"@types/puppeteer": "~3.0.0",
"@types/mocha": "^8.0.0",
"@types/node": "^14.0.25",
"@types/puppeteer": "~3.0.1",
"basic-auth": "^2.0.1",
"eslint": "^7.2.0",
"eslint": "^7.5.0",
"express": "^4.17.1",
"markdownlint-cli": "^0.23.1",
"mocha": "^7.2.0",
"markdownlint-cli": "^0.23.2",
"mocha": "^8.0.1",
"sinon": "^9.0.2",
"tslint": "^6.1.2",
"typescript": "^3.9.5"
"typescript": "^3.9.7"
}
}

0 comments on commit 95bc607

Please sign in to comment.