Skip to content

Commit

Permalink
Merge pull request #407 from CirclesUBI/feature/app-460-fix-cypress-t…
Browse files Browse the repository at this point in the history
…ests-in-app2

adding cypress data flags
  • Loading branch information
jaensen authored Aug 22, 2023
2 parents d3d5c10 + c0f7ee4 commit 18d1a35
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/o-editors/src/PicturePreview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ function onkeydown(e: KeyboardEvent) {
<div class="text-center">
<div class="relative inline-flex">
<div
class="absolute z-10 text-center align-top list-none cursor-pointer top-1 right-2 inline-table "
class="absolute z-10 text-center align-top list-none cursor-pointer top-1 right-2 inline-table"
data-cy="editPhoto"
role="presentation"
on:click="{() => {
context.dirtyFlags[context.field] = true;
Expand All @@ -53,12 +54,7 @@ function onkeydown(e: KeyboardEvent) {
</span>
</div>
<div class="w-48 rounded-full w-92 h-92">
<img
class="m-auto rounded-full"
id="cropCanvas"
src="{context.data[context.field]}"
height="300"
alt="avatar" />
<img class="m-auto rounded-full" id="cropCanvas" src="{context.data[context.field]}" height="300" alt="avatar" />
</div>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions shell/src/dapps/o-marketlisting/pages/MyStore.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ function mapRecenter({ place }) {
<DropDown
selected="{business.businessCategory ? business.businessCategory : $_('dapps.o-marketlisting.pages.mystore.select-category')}"
items="{allCategories}"
dataCy="categorySelect"
id="filters"
key="id"
i18nKeys="{true}"
Expand Down
2 changes: 2 additions & 0 deletions shell/src/shared/molecules/DropDown.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export let key: string;
export let value: string;
export let id: string;
export let selected: string;
export let dataCy: string;
export let dropDownClass: string = "";
export let isButton: boolean = false;
export let isChevron: boolean = false;
Expand Down Expand Up @@ -38,6 +39,7 @@ function handleOnChange(e) {
class:selectAsButton="{isButton}"
class:border-secondary="{isButton}"
class:selectAsChevron="{isChevron}"
data-cy="{dataCy}"
on:change="{handleOnChange}"
use:clickOutside
on:click_outside="{() => eventDispatcher('dropDownClickedOutside')}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ function setPlaceByCoords(latLng, geocoderService) {
<div style="">
<input
id="pacInput"
data-cy="enterLocationInput"
class="w-full text-sm controls form-control input input-bordered"
type="text"
bind:value="{inputText}"
Expand Down

0 comments on commit 18d1a35

Please sign in to comment.