test: refs #8626 addTestCases #1422

Merged
jtubau merged 40 commits from 8626-addTestCasesInRouteListTest into dev 2025-03-17 11:43:39 +00:00
1 changed files with 15 additions and 6 deletions
Showing only changes of commit b5b863bc4f - Show all commits

View File

@ -32,14 +32,14 @@ describe('Route', () => {
cy.typeSearchbar('{enter}');
});
xit('Should list routes', () => {
it('Should list routes', () => {
jtubau marked this conversation as resolved Outdated
Outdated
Review

Skips?

Skips?
cy.get('.q-table')
.children()
.should('be.visible')
.should('have.length.greaterThan', 0);
});
xit('Should create new route', () => {
it('Should create new route', () => {
cy.addBtnClick();
cy.fillInForm(data);
@ -55,7 +55,7 @@ describe('Route', () => {
});
});
xit('Should open route summary by clicking a route', () => {
it('Should open route summary by clicking a route', () => {
cy.get(selectors.lastRow).should('be.visible').click();
cy.url().should('include', summaryUrl);
cy.get(selectors.summaryTitle)
@ -65,9 +65,9 @@ describe('Route', () => {
});
});
xit('Should redirect to the summary from the route pop-up summary', () => {
it('Should redirect to the summary from the route pop-up summary', () => {
cy.dataCy(selectors.rowSummaryBtn).last().should('be.visible').click();
cy.get(selectors.descriptorTitle)
cy.get(selectors.summaryTitle)
.invoke('text')
.then((text) => {
expect(text).to.include(data.Description.val);
@ -80,6 +80,15 @@ describe('Route', () => {
});
});
it('Should redirect to the route assigned tickets from the row assignedTicketsBtn', () => {
cy.dataCy(selectors.assignedTicketsBtn).first().should('be.visible').click();
cy.url().should('include', '1/tickets');
cy.get('.q-table')
.children()
.should('be.visible')
.should('have.length.greaterThan', 0);
});
describe('Worker pop-ups', () => {
it('Should redirect to summary from the worker pop-up descriptor', () => {
cy.get(selectors.workerLink).click();
@ -156,7 +165,7 @@ describe('Route', () => {
});
});
describe.only('Vehicle pop-ups', () => {
describe('Vehicle pop-ups', () => {
it('Should redirect to summary from the vehicle pop-up descriptor', () => {
cy.get(selectors.vehicleLink).click();
cy.get(selectors.descriptorTitle)