playwright/fixtures/pages/fronts.ts (65 lines of code) (raw):
import { getStage, getTestUrl } from '../../lib/util';
import type { GuPage } from './Page';
type Front = GuPage & {
section: string;
};
type TagPage = GuPage;
const stage = getStage();
const fronts = [
{
path: getTestUrl({
stage,
path: '/uk',
type: 'front',
adtest: 'fixed-puppies',
}),
section: 'uk',
},
{
path: getTestUrl({
stage,
path: '/uk/commentisfree',
type: 'front',
adtest: 'fixed-puppies',
}),
section: 'commentisfree',
},
{
path: getTestUrl({
stage,
path: '/uk/sport',
type: 'front',
adtest: 'fixed-puppies',
}),
section: 'sport',
},
] as const satisfies Front[];
const tagPages = [
{
path: getTestUrl({
stage,
path: '/tone/recipes/all',
type: 'tagPage',
adtest: 'fixed-puppies',
}),
},
] as const satisfies TagPage[];
const frontWithPageSkin = {
path: getTestUrl({
stage,
path: '/uk',
type: 'front',
adtest: 'puppies-pageskin',
}),
section: 'uk',
} as const satisfies Front;
const frontWithExclusion = {
path: getTestUrl({
stage,
path: '/us-news/baltimore-bridge-collapse',
type: 'tagPage',
adtest: 'clear',
}),
section: 'us-news',
} as const satisfies Front;
export { frontWithPageSkin, fronts, tagPages, frontWithExclusion };