#8220 created items e2e #1039
No reviewers
Labels
No Milestone
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix-front#1039
Loading…
Reference in New Issue
No description provided.
Delete Branch "8220-ItemsE2E"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
#8220 created items e2eto WIP: #8220 created items e2eWIP: #8220 created items e2eto #8220 created items e2e#8220 created items e2eto WIP: #8220 created items e2eWIP: #8220 created items e2eto #8220 created items e2e@ -23,2 +26,3 @@
const route = useRoute();
const validPriorities = ref([]);
const itemConfigs = (data) => {
Se puede simplificar con menos lineas y variables
@ -298,6 +306,7 @@ const columns = computed(() => [
</script>
<template>
<FetchData url="ItemConfigs" @on-fetch="(data) => itemConfigs(data)" auto-load />
se puede simplificar el uso de on-fetch
OK, propuesta para simplificar @on-fetch="([{ validPriorities: data }]) => (validPriorities = data)"
@ -316,3 +326,3 @@
:create="{
urlCreate: 'Items',
urlCreate: 'Items/new',
title: t('Create Item'),
No hay traduccion
@ -37,6 +37,7 @@ onMounted(async () => {
:label="t('Latin species name')"
v-model="data.name"
:required="true"
data-cy="AddSpeciesInput"
Revisate VnInput
@ -199,6 +199,7 @@ onMounted(async () => {
dense
outlined
rounded
data-cy="ItemFilterCategorySelect"
Revísate el componente VnSelect porque tiene algo también
@ -0,0 +10,4 @@
it('should throw an error if the barcode exists', () => {
cy.get('[href="#/item/1/barcode"]').click();
cy.get('.q-card > .q-btn > .q-btn__content > .q-icon').click();
cy.get(
y porque no haces dataCy?
Aquí y en el resto de ocurrencias
Opcion a: cy.dataCy('Code_input').eq(4).type
Opcion b: cy.get('[data-cy="Code_input"]').eq(4).type
@ -0,0 +15,4 @@
).type('Tallos');
cy.get('.q-menu .q-item').contains('Tallos').click();
cy.get(
':nth-child(8) > [label="Value"] > .q-field > .q-field__inner > .q-field__control > .q-field__control-container > [data-cy="Value_input"]'
Usar dataCy?
@ -0,0 +10,4 @@
it('should modify the tax for Spain', () => {
cy.get('[href="#/item/1/tax"]').click();
cy.get(
':nth-child(1) > .q-select > .q-field__inner > .q-field__control > .q-field__control-container > .q-field__native > [data-cy="Class_select"]'
copy paste de lo anterior
Los e2e los has tirado?
Porque me salen errores, por ejemplo commands.js>writeSearchbar command not found
Añadir en itemTag la funcionalidad de eliminar
.
@ -320,2 +329,4 @@
onDataSaved: ({ id }) => tableRef.redirect(`${id}/basic-data`),
formInitialData: {
editorFk: entityId,
tag: 56,
Los valores por defecto hay que sacarlos de ItemConfigs
0c592946e6/modules/item/front/create/index.js (L13)
@ -0,0 +3,4 @@
beforeEach(() => {
cy.viewport(1920, 1080);
cy.login('developer');
cy.visit(`/#/item/list`);
Pots ficar
item/1/botanical
i ja no cal posar cy.get('[href="#/item/1/botanical"]').click();@ -0,0 +3,4 @@
beforeEach(() => {
cy.viewport(1920, 1080);
cy.login('developer');
cy.visit(`/#/item/list`);
Aci igual pots ficar item/1/summary
@ -0,0 +3,4 @@
beforeEach(() => {
cy.viewport(1920, 1080);
cy.login('developer');
cy.visit(`/#/item/list`);
aci item/1/tax