Skip to content

Commit

Permalink
Update index.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
inokawa committed Nov 7, 2024
1 parent 1a38e68 commit 64626ab
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions e2e/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const keypress = async (page: Page, key: string, count: number = 1) => {

test.describe("type word", () => {
test("on origin", async ({ page }) => {
await page.goto(storyUrl("basics--text"));
await page.goto(storyUrl("basics-editable--text"));

const editable = await getEditable(page);
const initialValue = await getText(editable);
Expand Down Expand Up @@ -117,7 +117,7 @@ test.describe("type word", () => {
});

test("on 1st row", async ({ page }) => {
await page.goto(storyUrl("basics--text"));
await page.goto(storyUrl("basics-editable--text"));

const editable = await getEditable(page);
const initialValue = await getText(editable);
Expand Down Expand Up @@ -154,7 +154,7 @@ test.describe("type word", () => {
});

test("on 2nd row", async ({ page }) => {
await page.goto(storyUrl("basics--text"));
await page.goto(storyUrl("basics-editable--text"));

const editable = await getEditable(page);
const initialValue = await getText(editable);
Expand Down Expand Up @@ -194,7 +194,7 @@ test.describe("type word", () => {
test("with IME", async ({ browserName, page }) => {
test.skip(browserName !== "chromium");

await page.goto(storyUrl("basics--text"));
await page.goto(storyUrl("basics-editable--text"));

const editable = await getEditable(page);
const initialValue = await getText(editable);
Expand Down Expand Up @@ -237,7 +237,7 @@ test.describe("type word", () => {

test.describe("replace range", () => {
test("replace chars", async ({ page }) => {
await page.goto(storyUrl("basics--text"));
await page.goto(storyUrl("basics-editable--text"));

const editable = await getEditable(page);
const initialValue = await getText(editable);
Expand Down Expand Up @@ -284,7 +284,7 @@ test.describe("replace range", () => {
});

test("replace linebreak", async ({ page }) => {
await page.goto(storyUrl("basics--text"));
await page.goto(storyUrl("basics-editable--text"));

const editable = await getEditable(page);
const initialValue = await getText(editable);
Expand Down Expand Up @@ -331,7 +331,7 @@ test.describe("replace range", () => {
});

test("replace all", async ({ page }) => {
await page.goto(storyUrl("basics--text"));
await page.goto(storyUrl("basics-editable--text"));

const editable = await getEditable(page);
const initialValue = await getText(editable);
Expand Down Expand Up @@ -372,7 +372,7 @@ test.describe("replace range", () => {

test.describe("Keydown", () => {
test("Arrow keys", async ({ page }) => {
await page.goto(storyUrl("basics--text"));
await page.goto(storyUrl("basics-editable--text"));

const editable = await getEditable(page);

Expand Down Expand Up @@ -414,7 +414,7 @@ test.describe("Keydown", () => {
});

test("Enter", async ({ page }) => {
await page.goto(storyUrl("basics--text"));
await page.goto(storyUrl("basics-editable--text"));

const editable = await getEditable(page);
const initialValue = await getText(editable);
Expand Down Expand Up @@ -471,7 +471,7 @@ test.describe("Keydown", () => {

test.describe("Backspace", () => {
test("delete char", async ({ page }) => {
await page.goto(storyUrl("basics--text"));
await page.goto(storyUrl("basics-editable--text"));

const editable = await getEditable(page);
const initialValue = await getText(editable);
Expand Down Expand Up @@ -507,7 +507,7 @@ test.describe("Keydown", () => {
});

test("delete chars", async ({ page }) => {
await page.goto(storyUrl("basics--text"));
await page.goto(storyUrl("basics-editable--text"));

const editable = await getEditable(page);
const initialValue = await getText(editable);
Expand Down Expand Up @@ -551,7 +551,7 @@ test.describe("Keydown", () => {
});

test("delete linebreak", async ({ page }) => {
await page.goto(storyUrl("basics--text"));
await page.goto(storyUrl("basics-editable--text"));

const editable = await getEditable(page);
const initialValue = await getText(editable);
Expand Down Expand Up @@ -596,7 +596,7 @@ test.describe("Keydown", () => {
});

test("delete all", async ({ page }) => {
await page.goto(storyUrl("basics--text"));
await page.goto(storyUrl("basics-editable--text"));

const editable = await getEditable(page);
const initialValue = await getText(editable);
Expand Down Expand Up @@ -635,7 +635,7 @@ test.describe("Keydown", () => {

test.describe("Delete", () => {
test("delete char", async ({ page }) => {
await page.goto(storyUrl("basics--text"));
await page.goto(storyUrl("basics-editable--text"));

const editable = await getEditable(page);
const initialValue = await getText(editable);
Expand Down Expand Up @@ -671,7 +671,7 @@ test.describe("Keydown", () => {
});

test("delete chars", async ({ page }) => {
await page.goto(storyUrl("basics--text"));
await page.goto(storyUrl("basics-editable--text"));

const editable = await getEditable(page);
const initialValue = await getText(editable);
Expand Down Expand Up @@ -717,7 +717,7 @@ test.describe("Keydown", () => {
});

test("delete linebreak", async ({ page }) => {
await page.goto(storyUrl("basics--text"));
await page.goto(storyUrl("basics-editable--text"));

const editable = await getEditable(page);
const initialValue = await getText(editable);
Expand Down Expand Up @@ -762,7 +762,7 @@ test.describe("Keydown", () => {
});

test("delete all", async ({ page }) => {
await page.goto(storyUrl("basics--text"));
await page.goto(storyUrl("basics-editable--text"));

const editable = await getEditable(page);
const initialValue = await getText(editable);
Expand Down Expand Up @@ -802,7 +802,7 @@ test.describe("Keydown", () => {

test.describe("Cut", () => {
test("noop", async ({ page }) => {
await page.goto(storyUrl("basics--text"));
await page.goto(storyUrl("basics-editable--text"));

const editable = await getEditable(page);
const initialValue = await getText(editable);
Expand Down Expand Up @@ -836,7 +836,7 @@ test.describe("Cut", () => {
});

test("cut chars", async ({ page }) => {
await page.goto(storyUrl("basics--text"));
await page.goto(storyUrl("basics-editable--text"));

const editable = await getEditable(page);
const initialValue = await getText(editable);
Expand Down Expand Up @@ -882,7 +882,7 @@ test.describe("Cut", () => {
});

test("cut linebreak", async ({ page }) => {
await page.goto(storyUrl("basics--text"));
await page.goto(storyUrl("basics-editable--text"));

const editable = await getEditable(page);
const initialValue = await getText(editable);
Expand Down Expand Up @@ -927,7 +927,7 @@ test.describe("Cut", () => {
});

test("cut all", async ({ page }) => {
await page.goto(storyUrl("basics--text"));
await page.goto(storyUrl("basics-editable--text"));

const editable = await getEditable(page);
const initialValue = await getText(editable);
Expand Down Expand Up @@ -966,7 +966,7 @@ test.describe("Cut", () => {

test.describe("undo and redo", () => {
test("one char", async ({ page }) => {
await page.goto(storyUrl("basics--text"));
await page.goto(storyUrl("basics-editable--text"));

const editable = await getEditable(page);
const initialValue = await getText(editable);
Expand Down Expand Up @@ -999,7 +999,7 @@ test.describe("undo and redo", () => {
});

test("rtl", async ({ page }) => {
await page.goto(storyUrl("basics--rtl"));
await page.goto(storyUrl("basics-editable--rtl"));

const editable = await getEditable(page);
const initialValue = await getText(editable);
Expand Down Expand Up @@ -1038,7 +1038,7 @@ test("rtl", async ({ page }) => {
});

test("readonly", async ({ page, browserName }) => {
await page.goto(storyUrl("basics--readonly"));
await page.goto(storyUrl("basics-editable--readonly"));

const editable = await getEditable(page);
const initialValue = await getText(editable);
Expand Down

0 comments on commit 64626ab

Please sign in to comment.