Skip to content

Commit a605272

Browse files
authored
Merge pull request #9454 from GilbertCherrie/fix_report_cypress_tests
Fix report cypress tests
2 parents 50907f6 + f07bc6f commit a605272

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cypress/e2e/ui/Overview/reports.cy.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,17 @@ describe('Overview > Reports Tests', () => {
1919
cy.get(list.children()[0]).click();
2020
});
2121
});
22+
2223
// Fill out report information
2324
cy.get('#name').type('Cypress Test Report', { force: true });
2425
cy.get('#title').type('Cypress test report title', { force: true });
2526

2627
let basedOn = '';
2728
let columns = [];
2829
let tableName = '';
29-
cy.get(':nth-child(4) > .col-md-8 > .btn-group > .btn').click({force: true});
30-
cy.get(':nth-child(4) > .col-md-8 > .btn-group > .open > .dropdown-menu > [data-original-index="1"] > a').then((option) => {
30+
31+
cy.get(':nth-child(3) > .col-md-8 > .btn-group > .btn').click({force: true});
32+
cy.get(':nth-child(3) > .col-md-8 > .btn-group > .open > .dropdown-menu > [data-original-index="1"] > a').then((option) => {
3133
cy.get(option).click({ force: true });
3234
basedOn = option[0].innerText;
3335
tableName = basedOn.substring(0, basedOn.length - 1).replace(' ', '');

0 commit comments

Comments
 (0)