aboutsummaryrefslogtreecommitdiff
path: root/e2e/follow.test.ts
diff options
context:
space:
mode:
authorShin'ya UEOKA <ueokande@i-beam.org>2019-09-29 00:49:24 +0000
committerShin'ya UEOKA <ueokande@i-beam.org>2019-09-29 00:52:56 +0000
commit9f0bc5732823505c91ce6b5ba3aa8e4b60ac93f6 (patch)
treef3a75c0b41d8fe2b1e6ca730501e36cee5701705 /e2e/follow.test.ts
parent1b92be636008e9211f460479e246331ba4a1f8f1 (diff)
Remove deprecated assert
Diffstat (limited to 'e2e/follow.test.ts')
-rw-r--r--e2e/follow.test.ts20
1 files changed, 10 insertions, 10 deletions
diff --git a/e2e/follow.test.ts b/e2e/follow.test.ts
index a7ce0ed..fd741ef 100644
--- a/e2e/follow.test.ts
+++ b/e2e/follow.test.ts
@@ -141,7 +141,7 @@ describe('follow test', () => {
await page.sendKeys('a');
let tagName = await webdriver.executeScript(() => document.activeElement!!.tagName) as string;
- assert.equal(tagName.toLowerCase(), 'input');
+ assert.strictEqual(tagName.toLowerCase(), 'input');
});
it('should open a link by f', async () => {
@@ -152,7 +152,7 @@ describe('follow test', () => {
await eventually(async() => {
let hash = await webdriver.executeScript('return location.pathname');
- assert.equal(hash, '/hello');
+ assert.strictEqual(hash, '/hello');
});
});
@@ -163,7 +163,7 @@ describe('follow test', () => {
await page.sendKeys('a');
let tagName = await webdriver.executeScript(() => document.activeElement!!.tagName) as string;
- assert.equal(tagName.toLowerCase(), 'input');
+ assert.strictEqual(tagName.toLowerCase(), 'input');
});
it('should open a link to new tab by F', async () => {
@@ -174,9 +174,9 @@ describe('follow test', () => {
await eventually(async() => {
let tabs = await browser.tabs.query({});
- assert.equal(tabs.length, 2);
- assert.equal(new URL(tabs[1].url).pathname, '/hello');
- assert.equal(tabs[1].openerTabId, tabs[0].id);
+ assert.strictEqual(tabs.length, 2);
+ assert.strictEqual(new URL(tabs[1].url).pathname, '/hello');
+ assert.strictEqual(tabs[1].openerTabId, tabs[0].id);
});
});
@@ -185,7 +185,7 @@ describe('follow test', () => {
await page.sendKeys(Key.SHIFT, 'f');
let hints = await page.waitAndGetHints();
- assert.equal(hints.length, 3);
+ assert.strictEqual(hints.length, 3);
});
it('should shows hints only in viewport', async () => {
@@ -193,7 +193,7 @@ describe('follow test', () => {
await page.sendKeys(Key.SHIFT, 'f');
let hints = await page.waitAndGetHints();
- assert.equal(hints.length, 1);
+ assert.strictEqual(hints.length, 1);
});
it('should shows hints only in window of the frame', async () => {
@@ -202,7 +202,7 @@ describe('follow test', () => {
await webdriver.switchTo().frame(0);
let hints = await page.waitAndGetHints();
- assert.equal(hints.length, 1);
+ assert.strictEqual(hints.length, 1);
});
it('should shows hints only in the frame', async () => {
@@ -211,6 +211,6 @@ describe('follow test', () => {
await webdriver.switchTo().frame(0);
let hints = await page.waitAndGetHints();
- assert.equal(hints.length, 1);
+ assert.strictEqual(hints.length, 1);
});
});