This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 971
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4488 from bsclifton/history-enhancements
about:history enhancements
- Loading branch information
Showing
5 changed files
with
136 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* global describe, it, before */ | ||
|
||
const Brave = require('../lib/brave') | ||
const {urlInput} = require('../lib/selectors') | ||
const {getTargetAboutUrl} = require('../../js/lib/appUrlUtil') | ||
const aboutHistoryUrl = getTargetAboutUrl('about:history') | ||
|
||
describe('about:history', function () { | ||
Brave.beforeAll(this) | ||
|
||
before(function * () { | ||
yield this.app.client | ||
.waitUntilWindowLoaded() | ||
.waitForUrl(Brave.newTabUrl) | ||
.waitForBrowserWindow() | ||
.waitForVisible('#window') | ||
.waitForVisible(urlInput) | ||
.windowByUrl(Brave.browserWindowUrl) | ||
.addSite({ location: 'https://brave.com', title: 'Brave' }) | ||
.addSite({ location: 'https://brave.com/test', customTitle: 'customTest' }) | ||
.addSite({ location: 'https://www.youtube.com' }) | ||
.waitForExist('.tab[data-frame-key="1"]') | ||
.tabByIndex(0) | ||
.url(aboutHistoryUrl) | ||
}) | ||
|
||
it('displays entries with title as: title or URL', function * () { | ||
yield this.app.client | ||
.waitForVisible('table.sortableTable td.title[data-sort="Brave"]') | ||
.waitForVisible('table.sortableTable td.title[data-sort="https://www.youtube.com"]') | ||
}) | ||
|
||
it('does NOT use customTitle when displaying entries', function * () { | ||
yield this.app.client | ||
.waitForVisible('table.sortableTable td.title[data-sort="customTest"]', 1000, true) | ||
}) | ||
|
||
// shows ordered by date | ||
|
||
it('defaults to sorting table by time DESC', function * () { | ||
yield this.app.client | ||
.waitForVisible('table.sortableTable thead tr th.sort-up[data-l10n-id="time"]') | ||
}) | ||
|
||
// search box | ||
}) |