Skip to content

Commit

Permalink
fix: unnecessary console log (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
axross committed May 8, 2021
1 parent 115010d commit 1e04917
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions e2e/post-page-navigation.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,15 @@ describe("Post Page Navigation", () => {
describe("/posts/:slug", () => {
describe.each(locales)("%s", (locale) => {
it("scroll to the heading when an item in table of contents is clicked", async () => {
const response = await page.goto(
await page.goto(
`${process.env.E2E_TEST_TARGET_ORIGIN}/${locale}/posts/applying-dark-mode-on-the-web`
);

console.log(response!.status());
console.log(await response!.text());

console.log(
`${process.env.E2E_TEST_TARGET_ORIGIN}/${locale}/posts/applying-dark-mode-on-the-web`
);
console.log(page.url());
console.log(await page.content());

const viewportHeight = page.viewportSize()!.height;
const tocItem = await page.$(
"[data-testid=table-of-contents] [data-testid=item]:nth-last-child(2) a"
);

console.log(tocItem);

const heading = await page.$(
`#${(await tocItem?.getAttribute("href"))!.split("#")[1]}`
);
Expand Down

0 comments on commit 1e04917

Please sign in to comment.