Skip to content

Commit

Permalink
Fix problem e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nanasess committed Mar 14, 2024
1 parent 302f86f commit 0419c74
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 16 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"doctrine/instantiator": "~1.0.5",
"fzaninotto/faker": "^1.8",
"nanasess/ec-cube2-class-extends-stubs": "^1.0",
"nanasess/eccube2-fixture-generator": "^1.1",
"nanasess/eccube2-fixture-generator": "^1.2",
"php5friends/phpunit48": ">=4.8.41",
"phpdocumentor/reflection-docblock": "~2.0.5",
"symfony/yaml": "^2.8 || ^3.4 || ^4.4"
Expand Down
19 changes: 11 additions & 8 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions e2e-tests/test/admin/system/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ test.describe.serial('システム設定>メンバー管理画面を確認を
});

const name = faker.name.lastName();
const department = faker.company.companyName();
const department = faker.company.name();
const user = fakerEn.internet.password();
const password = fakerEn.fake('{{internet.password}}{{datatype.number}}');
const password = fakerEn.helpers.fake('{{internet.password}}{{datatype.number}}');
test('メンバー登録を確認します', async () => {
popup.on('dialog', dialog => dialog.accept());
await popup.fill('input[name=name]', name);
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/test/front_guest/entry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ test.describe.serial('会員登録のテストをします', () => {
await page.fill('input[name=name02]', faker.name.firstName());
await page.fill('input[name=kana01]', 'イシ');
await page.fill('input[name=kana02]', 'キュウブ');
await page.fill('input[name=company_name]', faker.company.companyName());
await page.fill('input[name=company_name]', faker.company.name());
await page.fill('input[name=zip01]', faker.address.zipCode('###'));
await page.fill('input[name=zip02]', faker.address.zipCode('####'));
await page.selectOption('select[name=pref]', { label: faker.address.state() });
Expand Down
4 changes: 2 additions & 2 deletions e2e-tests/test/front_guest/shopping.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ test.describe.serial('購入フロー(ゲスト)のテストをします', () =>
await page.fill('input[name=order_name02]', faker.name.firstName());
await page.fill('input[name=order_kana01]', 'イシ');
await page.fill('input[name=order_kana02]', 'キュウブ');
await page.fill('input[name=order_company_name]', faker.company.companyName());
await page.fill('input[name=order_company_name]', faker.company.name());
await page.fill('input[name=order_zip01]', faker.address.zipCode('###'));
await page.fill('input[name=order_zip02]', faker.address.zipCode('####'));
await page.selectOption('select[name=order_pref]', { label: faker.address.state() });
Expand Down Expand Up @@ -86,7 +86,7 @@ test.describe.serial('購入フロー(ゲスト)のテストをします', () =>
await page.fill('input[name=shipping_name02]', faker.name.firstName());
await page.fill('input[name=shipping_kana01]', 'イシ');
await page.fill('input[name=shipping_kana02]', 'キュウブ');
await page.fill('input[name=shipping_company_name]', faker.company.companyName());
await page.fill('input[name=shipping_company_name]', faker.company.name());
await page.fill('input[name=shipping_zip01]', faker.address.zipCode('###'));
await page.fill('input[name=shipping_zip02]', faker.address.zipCode('####'));
await page.selectOption('select[name=shipping_pref]', { label: faker.address.state() });
Expand Down
4 changes: 2 additions & 2 deletions e2e-tests/test/installer/installer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ test.describe.serial('インストーラのテストをします', () => {
await expect(page.locator('h2').first()).toHaveText('ECサイトの設定');
adminDirectory = faker.datatype.uuid().substring(0, 8);
user = faker.internet.userName();
password = faker.fake('{{internet.password}}{{datatype.number}}');
await page.fill('input[name=shop_name]', faker.company.companyName());
password = faker.helpers.fake('{{internet.password}}{{datatype.number}}');
await page.fill('input[name=shop_name]', faker.company.name());
await page.fill('input[name=admin_mail]', faker.internet.exampleEmail());
await page.fill('input[name=login_id]', user);
await page.fill('input[name=login_pass]', password);
Expand Down

0 comments on commit 0419c74

Please sign in to comment.