development #8

Merged
WellingtonDuarteSantos merged 2 commits from development into main 2022-12-19 02:51:12 +00:00
Showing only changes of commit e542ebe874 - Show all commits

View File

@ -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");