Skip to content

Commit 2e7cd1d

Browse files
committed
fix: dammit blank lines
1 parent 8f91153 commit 2e7cd1d

8 files changed

+17
-16
lines changed

e2e/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ dist
107107

108108
# TernJS port file
109109
.tern-port
110-
.DS_Store
110+
.DS_Store

e2e/helper/checkout_helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@ module.exports = {
8989
informPhoneNumber,
9090
informVatNumber,
9191
goToCheckoutNextPage
92-
}
92+
}

e2e/helper/data_helper.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ const vat_information = () => {
1818
}
1919

2020

21-
const address_infomration = () => {
21+
const address_information = () => {
2222
return {
23-
fisrt_address_line: faker.address.street(),
23+
first_address_line: faker.address.street(),
2424
second_address_line: faker.address.secondaryAddress(),
2525
third_address_line: faker.address.streetAddress(),
2626
four_address_line: faker.address.street(),
@@ -43,6 +43,6 @@ const credit_card_information_valid = () => {
4343
module.exports = {
4444
user_information,
4545
vat_information,
46-
address_infomration,
46+
address_information,
4747
credit_card_information_valid
48-
}
48+
}

e2e/helper/pagarme_helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ module.exports = {
4545
selectExpireDate,
4646
informCVV,
4747
finalizeCheckout
48-
}
48+
}

e2e/helper/product_helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ module.exports = {
2626
selectProduct,
2727
addToCart,
2828
proceedCheckout
29-
}
29+
}

e2e/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@
2424
"test:e2e:headed": "npx playwright test --project e2e --config playwright.config.js --headed",
2525
"test:e2e:ci": "npx test:e2e --workers 2"
2626
}
27-
}
27+
}
28+

e2e/playwright.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ module.exports = {
3737
}
3838
}
3939
]
40-
}
40+
}

e2e/tests/cartao-de-credito.e2e.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const { selectCreditCardOPtion,
2121
informCVV,
2222
finalizeCheckout } = require('../helper/pagarme_helper')
2323
const { user_information,
24-
address_infomration,
24+
address_information,
2525
vat_information,
2626
credit_card_information_valid } = require('../helper/data_helper')
2727

@@ -33,7 +33,7 @@ test.describe('Cartão de Crédito', () => {
3333

3434
test('Criar pedido com CPF', async ({page}) => {
3535
const user = user_information();
36-
const address = address_infomration();
36+
const address = address_information();
3737
const credit_card = credit_card_information_valid();
3838
const vat = vat_information();
3939
await searchProduct(page, process.env.PRODUCT)
@@ -43,7 +43,7 @@ test.describe('Cartão de Crédito', () => {
4343
await informEmail(page, user.email)
4444
await informFirstAndLastName(page, user.first_name, user.last_name)
4545
await informCompany(page, user.company)
46-
await informAddress(page, address.fisrt_address_line, address.second_address_line, address.third_address_line, address.four_address_line)
46+
await informAddress(page, address.first_address_line, address.second_address_line, address.third_address_line, address.four_address_line)
4747
await selectCountry(page, address.country)
4848
await selectState(page, address.state)
4949
await informCity(page, address.state)
@@ -62,7 +62,7 @@ test.describe('Cartão de Crédito', () => {
6262

6363
test('Criar pedido com CNPJ', async ({page}) => {
6464
const user = user_information();
65-
const address = address_infomration();
65+
const address = address_information();
6666
const credit_card = credit_card_information_valid();
6767
const vat = vat_information();
6868
await searchProduct(page, 'Pastel')
@@ -72,7 +72,7 @@ test.describe('Cartão de Crédito', () => {
7272
await informEmail(page, user.email)
7373
await informFirstAndLastName(page, user.first_name, user.last_name)
7474
await informCompany(page, user.company)
75-
await informAddress(page, address.fisrt_address_line, address.second_address_line, address.third_address_line, address.four_address_line)
75+
await informAddress(page, address.first_address_line, address.second_address_line, address.third_address_line, address.four_address_line)
7676
await selectCountry(page, address.country)
7777
await selectState(page, address.state)
7878
await informCity(page, address.state)
@@ -88,4 +88,4 @@ test.describe('Cartão de Crédito', () => {
8888
await finalizeCheckout(page)
8989
await expect(page.getByText('Thank you for your purchase!')).toBeVisible();
9090
})
91-
})
91+
})

0 commit comments

Comments
 (0)