feature/footer #2

Merged
ednabarboza merged 4 commits from feature/footer into development 2022-12-19 02:26:44 +00:00
Showing only changes of commit 2473a6c1b9 - Show all commits

View File

@ -10,12 +10,16 @@ export default class Header {
await this.selectors();
this.progressBarInnerHTML();
await this.removeCartTitle();
await this.alterarCartChooseProducts();
await this.alterarEmptyCartTitle();
}
async selectors() {
this.header = await waitElement(".headerCheckout");
this.progressBar = document.querySelector(".progress-bar");
this.cartChooseProducts = document.querySelector("#cart-choose-products");
this.emptyCartTitle = document.querySelector(".empty-cart-title");
}
async progressBarInnerHTML() {
@ -69,6 +73,14 @@ export default class Header {
this.ctitle.style.display = "none";
}
async alterarCartChooseProducts() {
this.cartChooseProducts.innerHTML = "Continuar comprando";
}
async alterarEmptyCartTitle() {
this.emptyCartTitle.innerHTML = "Seu carrinho está vazio";
}
// async progressBarProgress(){
// if(this.progressBar && window.innerWidth > 1024){
// const progressBarLista = document.querySelectorAll("#progressBar ul li");