-
-
Notifications
You must be signed in to change notification settings - Fork 635
fix: Toggle and check list item blocks #2071
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| import { expect } from "@playwright/test"; | ||
| import { test } from "../../setup/setupScript.js"; | ||
| import { BASIC_BLOCKS_URL, PARAGRAPH_SELECTOR } from "../../utils/const.js"; | ||
| import { focusOnEditor } from "../../utils/editor.js"; | ||
|
|
||
| test.beforeEach(async ({ page }) => { | ||
| await page.goto(BASIC_BLOCKS_URL); | ||
| }); | ||
|
|
||
| test.describe("Check basic text block appearance", () => { | ||
| test("Check basic text block appearance", async ({ page }) => { | ||
| focusOnEditor(page); | ||
| await page.waitForTimeout(100); | ||
| await page | ||
| .locator(`${PARAGRAPH_SELECTOR} > p`, { | ||
| hasText: "Welcome to this demo!", | ||
| }) | ||
| .click(); | ||
|
|
||
| // Scroll to top of page. | ||
| await page.mouse.wheel(0, -9999); | ||
matthewlipski marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| await page.waitForTimeout(500); | ||
| expect(await page.screenshot()).toMatchSnapshot("basic-blocks-top.png"); | ||
|
Check failure on line 24 in tests/src/end-to-end/basics/basicblocks.test.ts
|
||
|
|
||
| // Scroll to bottom of page. | ||
| await page.mouse.wheel(0, 9999); | ||
| // We have to scroll twice because Firefox gets stuck otherwise? | ||
| await page.mouse.wheel(0, 9999); | ||
|
|
||
| await page.waitForTimeout(500); | ||
| expect(await page.screenshot()).toMatchSnapshot("basic-blocks-bottom.png"); | ||
|
Check failure on line 32 in tests/src/end-to-end/basics/basicblocks.test.ts
|
||
| }); | ||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,4 +7,7 @@ | |
| 2. Numbered List Item 2 | ||
|
|
||
| * [ ] Check List Item 1 | ||
|
|
||
| * [x] Check List Item 2 | ||
|
|
||
| * Toggle List Item 1 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,4 +7,7 @@ | |
| 2. Numbered List Item 2 | ||
|
|
||
| * [ ] Check List Item 1 | ||
|
|
||
| * [x] Check List Item 2 | ||
|
|
||
| * Toggle List Item 1 | ||
Uh oh!
There was an error while loading. Please reload this page.