forked from M3-Academy/m3-academy-template-checkout
chore(comments): excluindo linhas de codigo comentadas
This commit is contained in:
parent
b21b765b5c
commit
e542ebe874
@ -7,21 +7,15 @@ export default class Footer {
|
|||||||
|
|
||||||
async init() {
|
async init() {
|
||||||
await this.selectors();
|
await this.selectors();
|
||||||
//this.onUpdate();
|
|
||||||
// await this.hideCartTitle();
|
|
||||||
this.addCreditCards();
|
this.addCreditCards();
|
||||||
this.addCredits();
|
this.addCredits();
|
||||||
this.createPrateleira();
|
this.createPrateleira();
|
||||||
await this.addCarrossel();
|
await this.addCarrossel();
|
||||||
// this.changeButtonText();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async selectors() {
|
async selectors() {
|
||||||
//Para verificar se o carrinho está vazio e remover a prateleira de produtos:
|
|
||||||
// vocês devem olhar a doc fornecida no Desafio para aprender a usar o waitElement
|
|
||||||
this.checkoutVazio = await waitElement(".empty-cart-content");
|
this.checkoutVazio = await waitElement(".empty-cart-content");
|
||||||
this.checkoutTitle = await waitElement("#cart-title");
|
this.checkoutTitle = await waitElement("#cart-title");
|
||||||
// this.productName = await waitElement("#product-name");
|
|
||||||
|
|
||||||
this.creditCardSection = await waitElement(".footerCheckout__stamps");
|
this.creditCardSection = await waitElement(".footerCheckout__stamps");
|
||||||
this.creditsSection = await waitElement(".footerCheckout__developedBy");
|
this.creditsSection = await waitElement(".footerCheckout__developedBy");
|
||||||
|
Loading…
Reference in New Issue
Block a user