Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: fix expect in jshandle spec (#927)
Meir Blachman5fee93ae969f
diff --git a/test/jshandle.spec.js b/test/jshandle.spec.jsindex 69b72e442d..4506eadd2f 100644--- a/test/jshandle.spec.js+++ b/test/jshandle.spec.js@@ -160,7 +160,7 @@ module.exports.describe = function({testRunner, expect, CHROMIUM, FFOX, WEBKIT})const aHandle = await page.evaluateHandle(() => document.querySelector('div').firstChild);const element = aHandle.asElement();expect(element).toBeTruthy();- expect(await page.evaluate(e => e.nodeType === HTMLElement.TEXT_NODE, element));+ expect(await page.evaluate(e => e.nodeType === HTMLElement.TEXT_NODE, element)).toBeTruthy();});it('should work with nullified Node', async({page, server}) => {await page.setContent('<section>test</section>');