feat(Feature/TouristAttractionsAutoJs): Adiciona data test
BIN
src/assets/images/ajax-loader.gif
Normal file
After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 107 KiB |
Before Width: | Height: | Size: 337 KiB |
Before Width: | Height: | Size: 88 KiB |
Before Width: | Height: | Size: 255 KiB |
Before Width: | Height: | Size: 116 KiB |
Before Width: | Height: | Size: 397 KiB |
Before Width: | Height: | Size: 136 KiB |
Before Width: | Height: | Size: 460 KiB |
@ -77,13 +77,13 @@ export class TouristAttractions {
|
||||
|
||||
this.list.forEach((i) => {
|
||||
spotStructure += `
|
||||
<li class="wrapper-cards__li">
|
||||
<li class="wrapper-cards__li" data-test="item-list">
|
||||
<figure class="container-card__img">
|
||||
<img class="result-card__img" src="${i.image}"/>
|
||||
<img class="result-card__img" data-test="image-item-list" src="${i.image}"/>
|
||||
</figure>
|
||||
<div class="container-texto">
|
||||
<h3 class="result-card__title">${i.titulo}</h3>
|
||||
<p class="result-card__description">${i.description}</p>
|
||||
<h3 class="result-card__title" data-test="title-item-list">${i.titulo}</h3>
|
||||
<p class="result-card__description" data-test="description-item-list">${i.description}</p>
|
||||
</div>
|
||||
</li>`;
|
||||
});
|
||||
@ -111,6 +111,7 @@ export class TouristAttractions {
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
addProperty (e) {
|
||||
e.preventDefault();
|
||||
|
||||
|
@ -20,14 +20,14 @@
|
||||
<label class="label-input" for="input__img" tabIndex="0">
|
||||
<span class="input__span"></span>
|
||||
</label>
|
||||
<input id="input__img" type="file" accept="image/*" data-test="input-image">
|
||||
<input id="input__img" data-test="input-image" type="file" accept="image/*">
|
||||
</div>
|
||||
|
||||
<div class="wrapper-input__text">
|
||||
<input name="input-title" class="input-text__titulo" type="text" accept="text" placeholder="Titulo" data-test="input-titulo">
|
||||
<input name="input-description" class="input-text__descricao" type="text" accept="text" placeholder="Descrição" data-test="input-descrição">
|
||||
<input name="input-title" class="input-text__titulo" data-test="input-titulo" type="text" accept="text" placeholder="Titulo">
|
||||
<input name="input-description" class="input-text__descricao" data-test="input-descrição" type="text" accept="text" placeholder="Descrição">
|
||||
<div class="wrapper-button-submit">
|
||||
<button class="button-submit__input" type="submit" data-test="button-submit">Adicionar</button>
|
||||
<button class="button-submit__input" data-test="button-submit" type="submit">Adicionar</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -37,9 +37,9 @@
|
||||
</div>
|
||||
|
||||
<div class="container-cards">
|
||||
<h1 data-test="title-list" class="page-titulo__img__spot">Pontos Turísticos</h1>
|
||||
<h1 class="page-titulo__img__spot" data-test="title-list">Pontos Turísticos</h1>
|
||||
|
||||
<ul class="wrapper-ul__cards"></ul>
|
||||
<ul class="wrapper-ul__cards" data-test="container-item-list"></ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|