Skip to content

Commit 75d7bd2

Browse files
renovate[bot]hiroppy
authored andcommitted
chore(deps): update dependency testcontainers to v10.20.0 (#491)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 6ee6404 commit 75d7bd2

File tree

8 files changed

+35
-15
lines changed

8 files changed

+35
-15
lines changed

.internal/setup/questions/sample-code.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ export const modifiedFiles = /** @type {const} */ ([
4545
const removedDeps = /** @type {const} */ [
4646
"@hookform/resolvers",
4747
"react-hook-form",
48-
"@testing-library/react",
4948
];
5049

5150
export async function sampleCode(answer, isSkipQuestion) {

.internal/tests/common.test.mjs.snapshot

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,8 +666,16 @@ exports[`common > should update e2e/models/TopPage.ts 1`] = `
666666
" );",
667667
"",
668668
" await this.buttonAddItemLocator.click();",
669-
" await this.page.fill(\\"#input-content\\", content);",
670-
" await expect(this.page.locator(\\"#input-content-error\\")).not.toBeVisible();",
669+
"",
670+
" const inputCreateContentLocator = this.page.locator(",
671+
" 'input[name=\\"content\\"]',",
672+
" );",
673+
" const inputCreateContentErrorLocator = this.page.locator(",
674+
" \`#\${await inputCreateContentLocator.getAttribute(\\"id\\")}-error\`,",
675+
" );",
676+
"",
677+
" await inputCreateContentLocator.fill(content);",
678+
" await expect(inputCreateContentErrorLocator).not.toBeVisible();",
671679
" await this.page.keyboard.press(\\"Enter\\");",
672680
"",
673681
" await this.page.waitForLoadState(\\"networkidle\\");",

.internal/tests/no-sample-code.test.mjs.snapshot

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ exports[`no-sample-code > should put files 1`] = `
8282
"internal-tests-output-no-sample-code/src/app/_components/PaymentButton.tsx",
8383
"internal-tests-output-no-sample-code/src/app/_components/SignInButton.tsx",
8484
"internal-tests-output-no-sample-code/src/app/_components/SignOutButton.tsx",
85+
"internal-tests-output-no-sample-code/src/app/_hooks/useFormId.test.ts",
86+
"internal-tests-output-no-sample-code/src/app/_hooks/useFormId.ts",
8587
"internal-tests-output-no-sample-code/src/app/_schemas/users.test.ts",
8688
"internal-tests-output-no-sample-code/src/app/_schemas/users.ts",
8789
"internal-tests-output-no-sample-code/src/app/_utils/date.test.ts",

.internal/tests/no-stripe.test.mjs.snapshot

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ exports[`no-stripe > should put files 1`] = `
6767
"internal-tests-output-no-stripe/src/app/_components/Input.tsx",
6868
"internal-tests-output-no-stripe/src/app/_components/SignInButton.tsx",
6969
"internal-tests-output-no-stripe/src/app/_components/SignOutButton.tsx",
70+
"internal-tests-output-no-stripe/src/app/_hooks/useFormId.test.ts",
71+
"internal-tests-output-no-stripe/src/app/_hooks/useFormId.ts",
7072
"internal-tests-output-no-stripe/src/app/_hooks/useOnlineStatus.test.ts",
7173
"internal-tests-output-no-stripe/src/app/_hooks/useOnlineStatus.ts",
7274
"internal-tests-output-no-stripe/src/app/_schemas/items.test.ts",

e2e/models/MePage.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ import { Base } from "./Base";
33

44
export class MePage extends Base {
55
inputNameLocator: Locator;
6-
inputNameErrorLocator: Locator;
76
buttonSubmitLocator: Locator;
87

98
constructor(page: Page) {
109
super(page);
1110

1211
this.inputNameLocator = this.page.locator('input[name="name"]');
13-
this.inputNameErrorLocator = this.page.locator("#input-name-error");
1412
this.buttonSubmitLocator = this.page.locator('button[type="submit"]');
1513
}
1614

@@ -33,7 +31,10 @@ export class MePage extends Base {
3331
}
3432

3533
async expectInputNameErrorUI() {
36-
await expect(this.inputNameErrorLocator).toBeVisible();
37-
await expect(this.inputNameErrorLocator).toHaveText("name is too short");
34+
const id = await this.inputNameLocator.getAttribute("id");
35+
const inputNameErrorLocator = this.page.locator(`#${id}-error`);
36+
37+
await expect(inputNameErrorLocator).toBeVisible();
38+
await expect(inputNameErrorLocator).toHaveText("name is too short");
3839
}
3940
}

e2e/models/TopPage.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,16 @@ export class TopPage extends Base {
7878
);
7979

8080
await this.buttonAddItemLocator.click();
81-
await this.page.fill("#input-content", content);
82-
await expect(this.page.locator("#input-content-error")).not.toBeVisible();
81+
82+
const inputCreateContentLocator = this.page.locator(
83+
'input[name="content"]',
84+
);
85+
const inputCreateContentErrorLocator = this.page.locator(
86+
`#${await inputCreateContentLocator.getAttribute("id")}-error`,
87+
);
88+
89+
await inputCreateContentLocator.fill(content);
90+
await expect(inputCreateContentErrorLocator).not.toBeVisible();
8391
await this.page.keyboard.press("Enter");
8492

8593
await this.page.waitForLoadState("networkidle");

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"prettier": "3.5.3",
6363
"prisma-erd-generator": "2.0.4",
6464
"tailwindcss": "4.0.14",
65-
"testcontainers": "10.19.0",
65+
"testcontainers": "10.20.0",
6666
"typescript": "5.8.2",
6767
"vitest": "3.0.8"
6868
},

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)