Skip to content

Commit

Permalink
Replace deprecated type method of playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
inokawa committed Oct 25, 2023
1 parent 2dd1410 commit d253f48
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions e2e/VList.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ test.describe("check if it works when children change", () => {
const updateButton = page.getByRole("button", { name: "update" });

// add many
input.type("1000");
input.fill("1000");
await updateButton.click();
await component.waitForElementState("stable");

Expand Down Expand Up @@ -397,7 +397,7 @@ test.describe("check if scrollToIndex works", () => {
);

await clearInput(input);
await input.type("700");
await input.fill("700");
await button.click();

await component.waitForElementState("stable");
Expand Down Expand Up @@ -428,15 +428,15 @@ test.describe("check if scrollToIndex works", () => {
);

await clearInput(input);
await input.type("500");
await input.fill("500");
await button.click();

await component.waitForElementState("stable");

await expect(await component.innerText()).toContain("500");

await clearInput(input);
await input.type("0");
await input.fill("0");
await button.click();

await component.waitForElementState("stable");
Expand Down Expand Up @@ -466,7 +466,7 @@ test.describe("check if scrollToIndex works", () => {
);

await clearInput(input);
await input.type("999");
await input.fill("999");
await button.click();

await component.waitForElementState("stable");
Expand Down Expand Up @@ -498,7 +498,7 @@ test.describe("check if scrollToIndex works", () => {
);

await clearInput(input);
await input.type("700");
await input.fill("700");
await button.click();

const called = await component.evaluate((c) => {
Expand Down Expand Up @@ -555,7 +555,7 @@ test.describe("check if scrollToIndex works", () => {
);

await clearInput(input);
await input.type("700");
await input.fill("700");
await button.click();

await component.waitForElementState("stable");
Expand Down Expand Up @@ -586,15 +586,15 @@ test.describe("check if scrollToIndex works", () => {
);

await clearInput(input);
await input.type("500");
await input.fill("500");
await button.click();

await component.waitForElementState("stable");

await expect(await component.innerText()).toContain("500");

await clearInput(input);
await input.type("0");
await input.fill("0");
await button.click();

await component.waitForElementState("stable");
Expand Down Expand Up @@ -624,7 +624,7 @@ test.describe("check if scrollToIndex works", () => {
);

await clearInput(input);
await input.type("999");
await input.fill("999");
await button.click();

await component.waitForElementState("stable");
Expand Down Expand Up @@ -656,7 +656,7 @@ test.describe("check if scrollToIndex works", () => {
);

await clearInput(input);
await input.type("700");
await input.fill("700");
await button.click();

const called = await component.evaluate((c) => {
Expand Down Expand Up @@ -715,7 +715,7 @@ test.describe("check if scrollTo works", () => {

// scroll down
await clearInput(input);
await input.type("5000");
await input.fill("5000");
await button.click();

await component.waitForElementState("stable");
Expand All @@ -727,7 +727,7 @@ test.describe("check if scrollTo works", () => {

// scroll up
await clearInput(input);
await input.type("1000");
await input.fill("1000");
await button.click();

await component.waitForElementState("stable");
Expand Down Expand Up @@ -761,7 +761,7 @@ test.describe("check if scrollBy works", () => {

// scroll down
await clearInput(input);
await input.type("1234");
await input.fill("1234");
await button.click();

await component.waitForElementState("stable");
Expand All @@ -770,7 +770,7 @@ test.describe("check if scrollBy works", () => {

// scroll up
await clearInput(input);
await input.type("-234");
await input.fill("-234");
await button.click();

await component.waitForElementState("stable");
Expand Down

0 comments on commit d253f48

Please sign in to comment.