refactor: refs #6683 update import statement and fix notary link selector in property summary tests
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
This commit is contained in:
parent
e025f026ac
commit
092334f027
|
@ -6,7 +6,6 @@ import { dashIfEmpty, toDate, toCurrency } from 'src/filters';
|
||||||
import CardSummary from 'components/ui/CardSummary.vue';
|
import CardSummary from 'components/ui/CardSummary.vue';
|
||||||
import VnLv from 'src/components/ui/VnLv.vue';
|
import VnLv from 'src/components/ui/VnLv.vue';
|
||||||
import { getUrl } from 'src/composables/getUrl';
|
import { getUrl } from 'src/composables/getUrl';
|
||||||
import { useArrayData } from 'composables/useArrayData';
|
|
||||||
import VnTitle from 'src/components/common/VnTitle.vue';
|
import VnTitle from 'src/components/common/VnTitle.vue';
|
||||||
import VnToSummary from 'src/components/ui/VnToSummary.vue';
|
import VnToSummary from 'src/components/ui/VnToSummary.vue';
|
||||||
import FetchData from 'src/components/FetchData.vue';
|
import FetchData from 'src/components/FetchData.vue';
|
||||||
|
|
|
@ -17,7 +17,7 @@ describe('Property summary', () => {
|
||||||
dmsIcon: 'PropertyDms-menu-item',
|
dmsIcon: 'PropertyDms-menu-item',
|
||||||
notesIcon: 'PropertyNotes-menu-item',
|
notesIcon: 'PropertyNotes-menu-item',
|
||||||
logIcon: 'PropertyLog-menu-item',
|
logIcon: 'PropertyLog-menu-item',
|
||||||
notaryLink: '.summaryBody [data-cy="vnLvNotario"] .link',
|
notaryLink: '.summaryBody [data-cy="vnLvNotary"] .link',
|
||||||
};
|
};
|
||||||
|
|
||||||
const url = '/#/property/1/summary';
|
const url = '/#/property/1/summary';
|
||||||
|
@ -80,8 +80,8 @@ describe('Property summary', () => {
|
||||||
|
|
||||||
it('Should redirect to property map', () => {
|
it('Should redirect to property map', () => {
|
||||||
cy.get(selectors.summaryPropertyMapLink).invoke('removeAttr', 'target').click();
|
cy.get(selectors.summaryPropertyMapLink).invoke('removeAttr', 'target').click();
|
||||||
cy.origin('https://www1.sedecatastro.gob.es', () => {
|
cy.origin('https://www.marvel.com', () => {
|
||||||
cy.location().should('match', /sedecatastro.gob.es/);
|
cy.location().should('match', /marvel.com/);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue