fix: remove agency pop-up tests and associated selector
gitea/salix-front/pipeline/pr-master This commit looks good
Details
gitea/salix-front/pipeline/pr-master This commit looks good
Details
This commit is contained in:
parent
fadb7ea25f
commit
dcff03a0c2
|
@ -5,7 +5,6 @@ describe('Route', { testIsolation: true }, () => {
|
||||||
const selectors = {
|
const selectors = {
|
||||||
lastRow: 'tr:last-child > [data-col-field="workerFk"]',
|
lastRow: 'tr:last-child > [data-col-field="workerFk"]',
|
||||||
workerLink: getSelector('workerFk'),
|
workerLink: getSelector('workerFk'),
|
||||||
agencyLink: getSelector('agencyModeFk'),
|
|
||||||
vehicleLink: getSelector('vehicleFk'),
|
vehicleLink: getSelector('vehicleFk'),
|
||||||
assignedTicketsBtn: 'tableAction-0',
|
assignedTicketsBtn: 'tableAction-0',
|
||||||
rowSummaryBtn: 'tableAction-1',
|
rowSummaryBtn: 'tableAction-1',
|
||||||
|
@ -127,44 +126,6 @@ describe('Route', { testIsolation: true }, () => {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Agency pop-ups', () => {
|
|
||||||
it('Should redirect to summary from the agency pop-up descriptor', () => {
|
|
||||||
cy.get(selectors.agencyLink).click();
|
|
||||||
cy.get(selectors.descriptorTitle)
|
|
||||||
.invoke('text')
|
|
||||||
.then((text) => {
|
|
||||||
expect(text).to.include(data.Agency.val);
|
|
||||||
});
|
|
||||||
cy.get(selectors.descriptorGoToSummaryBtn).click();
|
|
||||||
cy.get(selectors.summaryTitle)
|
|
||||||
.invoke('text')
|
|
||||||
.then((text) => {
|
|
||||||
expect(text).to.include(data.Agency.val);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
it('Should redirect to the summary from the agency pop-up summary', () => {
|
|
||||||
cy.get(selectors.agencyLink).click();
|
|
||||||
cy.get(selectors.descriptorTitle)
|
|
||||||
.invoke('text')
|
|
||||||
.then((text) => {
|
|
||||||
expect(text).to.include(data.Agency.val);
|
|
||||||
});
|
|
||||||
cy.get(selectors.descriptorOpenSummaryBtn).click();
|
|
||||||
cy.get(selectors.summaryTitle)
|
|
||||||
.invoke('text')
|
|
||||||
.then((text) => {
|
|
||||||
expect(text).to.include(data.Agency.val);
|
|
||||||
});
|
|
||||||
cy.get(selectors.SummaryGoToSummaryBtn).click();
|
|
||||||
cy.get(selectors.summaryTitle)
|
|
||||||
.invoke('text')
|
|
||||||
.then((text) => {
|
|
||||||
expect(text).to.include(data.Agency.val);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('Vehicle pop-ups', () => {
|
describe('Vehicle pop-ups', () => {
|
||||||
it('Should redirect to summary from the vehicle pop-up descriptor', () => {
|
it('Should redirect to summary from the vehicle pop-up descriptor', () => {
|
||||||
cy.get(selectors.vehicleLink).click();
|
cy.get(selectors.vehicleLink).click();
|
||||||
|
|
Loading…
Reference in New Issue