Listing /a lists the 100 newest articles, the newest first, each with who wrote it and when.
lists the newest articles first Articles page Articles page Act
Open the articles page
await articles.goto ();Assert
article link “20XX Series 6 Recap” is visible
await expect (
articles.articleLink (NEWER_THAN_RIPTIDE_TITLE ),
).toBeVisible ();Act
List position “20XX Series 6 Recap” → newerPosition
const newerPosition = await articles.listPosition (
NEWER_THAN_RIPTIDE_TITLE ,
);List position “Results from Riptide 2025” → riptidePosition
const riptidePosition = await articles.listPosition (RIPTIDE_TITLE );Assert
newerPosition is less than riptidePosition
expect (newerPosition).toBeLessThan (riptidePosition);Source test ("lists the newest articles first" , async ({ page }) => {
const articles = new ArticlesPage (page);
await articles.goto ();
await expect (
articles.articleLink (NEWER_THAN_RIPTIDE_TITLE ),
).toBeVisible ();
const newerPosition = await articles.listPosition (
NEWER_THAN_RIPTIDE_TITLE ,
);
const riptidePosition = await articles.listPosition (RIPTIDE_TITLE );
expect (newerPosition).toBeLessThan (riptidePosition);
})shows each article's authors and date Articles page Articles page Act
Open the articles page
await articles.goto ();Assert
article “SendouQ Season 8 Finale Recap” contains “by Ckk, Fern, & Samino”
await expect (articles.article (SEASON_8_RECAP_TITLE )).toContainText (
"by Ckk, Fern, & Samino" ,
);article “SendouQ Season 8 Finale Recap” contains “9/4/2025”
await expect (articles.article (SEASON_8_RECAP_TITLE )).toContainText (
"9/4/2025" ,
);Source test ("shows each article's authors and date" , async ({ page }) => {
const articles = new ArticlesPage (page);
await articles.goto ();
await expect (articles.article (SEASON_8_RECAP_TITLE )).toContainText (
"by Ckk, Fern, & Samino" ,
);
await expect (articles.article (SEASON_8_RECAP_TITLE )).toContainText (
"9/4/2025" ,
);
})opening an article leads to its page Articles page Article page Articles page Act
Open the articles page
await articles.goto ();Open article “Results from Riptide 2025” → article
const article = await articles.openArticle (RIPTIDE_TITLE );Assert
the page URL is `/a/${RIPTIDE_SLUG}`
await expect (page).toHaveURL (`/a/${RIPTIDE_SLUG}` );Article page Assert
heading “Results from Riptide 2025” is visible
await expect (article.heading (RIPTIDE_TITLE )).toBeVisible ();Source test ("opening an article leads to its page" , async ({ page }) => {
const articles = new ArticlesPage (page);
await articles.goto ();
const article = await articles.openArticle (RIPTIDE_TITLE );
await expect (page).toHaveURL (`/a/${RIPTIDE_SLUG}` );
await expect (article.heading (RIPTIDE_TITLE )).toBeVisible ();
})Reading An article's page shows its title, authors and date above the markdown text. Authors with a sendou.ink link lead to their user page.
shows the title, authors and date above the text Article page Article page Act
Open the article page “results-from-riptide-2025”
await article.goto (RIPTIDE_SLUG );Assert
heading “Results from Riptide 2025” is visible
await expect (article.heading (RIPTIDE_TITLE )).toBeVisible ();byline reads `by YELLOW • ${RIPTIDE_DATE}`
await expect (article.locators.byline).toHaveText (
`by YELLOW • ${RIPTIDE_DATE}` ,
);text “largest North American Splatoon LAN in history” is visible
await expect (
article.text ("largest North American Splatoon LAN in history" ),
).toBeVisible ();Source test ("shows the title, authors and date above the text" , async ({
page,
}) => {
const article = new ArticlePage (page);
await article.goto (RIPTIDE_SLUG );
await expect (article.heading (RIPTIDE_TITLE )).toBeVisible ();
await expect (article.locators.byline).toHaveText (
`by YELLOW • ${RIPTIDE_DATE}` ,
);
await expect (
article.text ("largest North American Splatoon LAN in history" ),
).toBeVisible ();
})links authors to their sendou.ink user page Article page Article page Act
Open the article page “competitive-guidebook-part-1”
await article.goto (GUIDEBOOK_SLUG );Assert
byline contains “by Samino & Radha”
await expect (article.locators.byline).toContainText ("by Samino & Radha" );author link “Samino” has “href” = “/u/samino”
await expect (article.authorLink ("Samino" )).toHaveAttribute (
"href" ,
"/u/samino" ,
);author link “Radha” has “href” = “/u/wiper”
await expect (article.authorLink ("Radha" )).toHaveAttribute (
"href" ,
"/u/wiper" ,
);Source test ("links authors to their sendou.ink user page" , async ({ page }) => {
const article = new ArticlePage (page);
await article.goto (GUIDEBOOK_SLUG );
await expect (article.locators.byline).toContainText ("by Samino & Radha" );
await expect (article.authorLink ("Samino" )).toHaveAttribute (
"href" ,
"/u/samino" ,
);
await expect (article.authorLink ("Radha" )).toHaveAttribute (
"href" ,
"/u/wiper" ,
);
})shows an author without a link as plain text Article page Article page Act
Open the article page “belgian-championship-2023”
await article.goto (BELGIAN_CHAMPIONSHIP_SLUG );Assert
byline contains “by 공주 Alice & Chilliboi”
await expect (article.locators.byline).toContainText (
"by 공주 Alice & Chilliboi" ,
);byline › link count is 0
await expect (article.locators.byline.getByRole ("link" )).toHaveCount (0 );Source test ("shows an author without a link as plain text" , async ({ page }) => {
const article = new ArticlePage (page);
await article.goto (BELGIAN_CHAMPIONSHIP_SLUG );
await expect (article.locators.byline).toContainText (
"by 공주 Alice & Chilliboi" ,
);
await expect (article.locators.byline.getByRole ("link" )).toHaveCount (0 );
})doesn't repeat the title the text starts with The title isn't shown twice when the text starts with it as a heading.
Article page Article page Act
Open the article page “waving-goodbye-the-start-of-splatoons-great-retirement”
await article.goto (WAVING_GOODBYE_SLUG );Assert
headings “Waving Goodbye: The Start of Splatoon's "Great Retirement"” count is 1
await expect (article.headings (WAVING_GOODBYE_TITLE )).toHaveCount (1 );Source test ("doesn't repeat the title the text starts with" , async ({ page }) => {
const article = new ArticlePage (page);
await article.goto (WAVING_GOODBYE_SLUG );
await expect (article.headings (WAVING_GOODBYE_TITLE )).toHaveCount (1 );
})an unknown slug is not found Error page Error page Act
Open the error page “/a/no-such-article”
await errorPage.goto ("/a/no-such-article" );Assert
not found heading is visible
await expect (errorPage.locators.notFoundHeading).toBeVisible ();Source test ("an unknown slug is not found" , async ({ page }) => {
const errorPage = new ErrorPage (page);
await errorPage.goto ("/a/no-such-article" );
await expect (errorPage.locators.notFoundHeading).toBeVisible ();
})Dates An article's date is a calendar day, shown as the same day in every time zone.
Runs with { timezoneId: WEST_OF_UTC_TIMEZONE }
shows the article's day west of UTC too Articles page Article page Articles page Act
Open the articles page
await articles.goto ();Assert
article “Results from Riptide 2025” contains “9/13/2025”
await expect (articles.article (RIPTIDE_TITLE )).toContainText (RIPTIDE_DATE );Act
Open article “Results from Riptide 2025” → article
const article = await articles.openArticle (RIPTIDE_TITLE );Article page Assert
byline contains “9/13/2025”
await expect (article.locators.byline).toContainText (RIPTIDE_DATE );Source test ("shows the article's day west of UTC too" , async ({ page }) => {
await setTimezoneCookie (page, WEST_OF_UTC_TIMEZONE );
const articles = new ArticlesPage (page);
await articles.goto ();
await expect (articles.article (RIPTIDE_TITLE )).toContainText (RIPTIDE_DATE );
const article = await articles.openArticle (RIPTIDE_TITLE );
await expect (article.locators.byline).toContainText (RIPTIDE_DATE );
})ArticlesPage.gotoe2e/pages/articles/articles-page.ts:18
No JSDoc
async goto () {
await navigate ({ page: this .page, url: ARTICLES_MAIN_PAGE });
}ArticlesPage.articleLinke2e/pages/articles/articles-page.ts:36
No JSDoc
articleLink (title: string ) {
return this .page.getByRole ("link" , { name: title, exact: true });
}ArticlesPage.listPositione2e/pages/articles/articles-page.ts:23
async listPosition (title: string ) {
const titles = await this .locators.titles.allTextContents ();
return titles.indexOf (title);
}ArticlesPagee2e/pages/articles/articles-page.ts:7
ArticlesPage.articlee2e/pages/articles/articles-page.ts:29
article (title: string ) {
return this .page
.getByRole ("main" )
.getByRole ("listitem" )
.filter ({ has: this .articleLink (title) });
}ArticlesPage.openArticlee2e/pages/articles/articles-page.ts:40
No JSDoc
async openArticle (title: string ) {
await this .articleLink (title).click ();
return new ArticlePage (this .page);
}ArticlePage.headinge2e/pages/articles/article-page.ts:28
No JSDoc
heading (title: string ) {
return this .headings (title).first ();
}ArticlePagee2e/pages/articles/article-page.ts:6
ArticlePage.gotoe2e/pages/articles/article-page.ts:17
No JSDoc
async goto (slug: string ) {
await navigate ({ page: this .page, url: articlePage (slug) });
}ArticlePage.locators.bylinee2e/pages/articles/article-page.ts:13
No JSDoc
page.getByTestId ("article-byline" ) ArticlePage.texte2e/pages/articles/article-page.ts:36
No JSDoc
text (content: string ) {
return this .page.getByRole ("article" ).getByText (content);
}ArticlePage.authorLinke2e/pages/articles/article-page.ts:32
No JSDoc
authorLink (name: string ) {
return this .locators.byline.getByRole ("link" , { name, exact: true });
}ArticlePage.headingse2e/pages/articles/article-page.ts:22
headings (title: string ) {
return this .page
.getByRole ("article" )
.getByRole ("heading" , { level: 1 , name: title, exact: true });
}ErrorPage.gotoe2e/pages/layout/error-page.ts:22
No JSDoc
async goto (url: string ) {
await navigate ({ page: this .page, url });
}ErrorPage.locators.notFoundHeadinge2e/pages/layout/error-page.ts:13
No JSDoc
page.getByRole ("heading" , {
name: "Error 404 - Page not found" ,
}) ErrorPagee2e/pages/layout/error-page.ts:5