development #3

Merged
ednabarboza merged 7 commits from development into main 2022-12-19 02:29:15 +00:00
Showing only changes of commit 2473a6c1b9 - Show all commits

View File

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