-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
--------- Co-authored-by: IA Jim <[email protected]>
- Loading branch information
Showing
19 changed files
with
1,145 additions
and
277 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "all" | ||
} |
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,28 @@ | ||
import { test as base } from '@playwright/test'; | ||
|
||
import { SearchPage } from './pageObjects/search-page'; | ||
|
||
type PageFixtures = { | ||
searchPage: SearchPage; | ||
}; | ||
|
||
export const test = base.extend<PageFixtures>({ | ||
searchPage: async ({ page }, use) => { | ||
// Set up the fixture. | ||
const searchPage = new SearchPage(page); | ||
await searchPage.visit(); | ||
await searchPage.queryFor('cats'); | ||
|
||
await page.route(/(analytics|fonts)/, route => { | ||
route.abort(); | ||
}); | ||
|
||
// Use the fixture value in the test. | ||
await use(searchPage); | ||
|
||
// Clean up the fixture. | ||
await page.close(); | ||
}, | ||
}); | ||
|
||
export { expect } from '@playwright/test'; |
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,58 @@ | ||
export type DateMetadataLabel = { | ||
filter: string; | ||
date: string; | ||
}; | ||
|
||
export type LayoutViewMode = 'tile' | 'list' | 'compact'; | ||
|
||
export enum LayoutViewModeLocator { | ||
TILE = '#grid-button', | ||
LIST = '#list-detail-button', | ||
COMPACT = '#list-compact-button', | ||
} | ||
|
||
export enum SearchOption { | ||
METADATA = `Search metadata`, | ||
TEXT = `Search text contents`, | ||
TV = `Search TV news captions`, | ||
RADIO = `Search radio transcripts`, | ||
WEB = `Search archived web sites`, | ||
} | ||
|
||
export type SortFilter = | ||
| 'Weekly views' | ||
| 'All-time views' | ||
| 'Title' | ||
| 'Date published' | ||
| 'Date archived' | ||
| 'Date reviewed' | ||
| 'Date added' | ||
| 'Creator'; | ||
|
||
export type SortOrder = 'ascending' | 'descending'; | ||
|
||
export const SortFilterURL = { | ||
'Weekly views': 'week', | ||
'All-time views': 'downloads', | ||
Title: 'title', | ||
'Date published': 'date', | ||
'Date archived': 'publicdate', | ||
'Date reviewed': 'reviewdate', | ||
'Date added': 'addeddate', | ||
Creator: 'creator', | ||
}; | ||
|
||
export enum FacetGroupLocatorLabel { | ||
DATE = 'date-picker-label', | ||
MEDIATYPE = 'facet-group-header-label-mediatype', | ||
LENDING = 'facet-group-header-label-lending', | ||
YEAR = 'facet-group-header-label-year', | ||
SUBJECT = 'facet-group-header-label-subject', | ||
COLLECTION = 'facet-group-header-label-collection', | ||
CREATOR = 'facet-group-header-label-creator', | ||
LANGUAGE = 'facet-group-header-label-language', | ||
} | ||
|
||
export type FacetType = 'positive' | 'negative'; | ||
|
||
export type ViewFacetGroup = 'tile-title' | 'list-date'; |
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
Oops, something went wrong.