Merge pull request 'development' (#8) from development into main

Reviewed-on: #8
This commit is contained in:
Wellington Duarte Santos 2022-12-19 02:51:12 +00:00
commit 4c9d72341c

View File

@ -7,21 +7,15 @@ export default class Footer {
async init() {
await this.selectors();
//this.onUpdate();
// await this.hideCartTitle();
this.addCreditCards();
this.addCredits();
this.createPrateleira();
await this.addCarrossel();
// this.changeButtonText();
}
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.checkoutTitle = await waitElement("#cart-title");
// this.productName = await waitElement("#product-name");
this.creditCardSection = await waitElement(".footerCheckout__stamps");
this.creditsSection = await waitElement(".footerCheckout__developedBy");