Skip to content

Commit

Permalink
Merge branch 'ref/318/query-composables' into ref/318/query-composabl…
Browse files Browse the repository at this point in the history
…es-student-report
  • Loading branch information
maximilianoertel committed Sep 24, 2024
2 parents 82db028 + 9bcb262 commit dd680ba
Show file tree
Hide file tree
Showing 9 changed files with 79 additions and 558 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,39 @@
// const testUserList = Cypress.env('testUserList');
// const testAssignments = Cypress.env('testAssignmentsList');
// const headers = ['School'];
//

// function checkUrl() {
// cy.login(testPartnerAdminUsername, testPartnerAdminPassword);
// cy.navigateTo('/');
// cy.url({ timeout: 3 * timeout }).should('eq', `${baseUrl}/`);
// }

//

// function clickProgressButton(adminId) {
// cy.get('button', { timeout: timeout }).contains('Progress').first().click();
// cy.url({ timeout: 3 * timeout }).should('eq', `${baseUrl}/administration/${adminId}/district/${testDistrictId}`);
// }

//

// function setFilterBySchool(school) {
// cy.get('[data-cy="filter-by-school"]', { timeout: timeout }).click();
// cy.get('ul > li', { timeout: timeout }).contains(school).click();
// cy.wait(0.05 * timeout);
// }

//

// function setFilterByGrade(grade) {
// cy.get('[data-cy="filter-by-grade"]', { timeout: timeout }).click();
// cy.get('ul > li', { timeout: timeout }).contains(grade).click();
// cy.get('body').type('{esc}');
// cy.wait(0.05 * timeout);
// }

//

// function setFilterByProgressCategory(header, category) {
// cy.contains('div.p-column-header-content', header).find('button').click();
// cy.get('[data-cy="progress-filter-dropdown"]', { timeout: timeout }).click();
Expand All @@ -50,6 +58,7 @@
// cy.get('button').contains('Apply').click();
// cy.wait(0.05 * timeout);
// }

//
// function checkTableColumn(headers, value) {
// cy.get('[data-cy="roar-data-table"] thead th').then(($header) => {
Expand All @@ -58,6 +67,7 @@
// headers.forEach((header) => {
// const headerIndex = tableHeaders.indexOf(header);
//

// if (headerIndex !== -1) {
// cy.get('[data-cy="roar-data-table"] tbody tr').each(($row) => {
// cy.wrap($row)
Expand All @@ -71,6 +81,7 @@
// });
// });
// }

//
// function checkProgressTags(headers) {
// cy.get('[data-cy="roar-data-table"] thead th').then(($header) => {
Expand All @@ -79,6 +90,7 @@
// headers.forEach((header) => {
// const headerIndex = tableHeaders.indexOf(header);
//

// if (headerIndex !== -1) {
// cy.get('[data-cy="roar-data-table"] tbody tr', { timeout: timeout }).each(($row) => {
// cy.wrap($row)
Expand All @@ -92,7 +104,9 @@
// });
// });
// }

//

// describe('The partner admin can view progress reports for a given administration and filter by school.', () => {
// it('Selects an administration and views its score report, then accesses the filter bar to filter by school.', () => {
// checkUrl();
Expand All @@ -102,7 +116,9 @@
// checkTableColumn(headers, 'Cypress Test School');
// });
// });

//

// describe('The partner admin can view progress reports for a given administration and filter by grade', () => {
// it('Selects an administration, views its progress report, then accesses the filter bar to filter by grade', () => {
// checkUrl();
Expand All @@ -112,7 +128,9 @@
// checkTableColumn(['Grade'], '1');
// });
// });

//

// describe('The partner admin can view progress reports for a given administration and filter by both school and grade', () => {
// it('Selects an administration, views its progress report, then accesses the filter bar to filter by both school grade', () => {
// checkUrl();
Expand All @@ -124,7 +142,9 @@
// checkTableColumn(['Grade'], '1');
// });
// });

//

// describe('The partner admin can view progress reports for a given administration and filter by progress status', () => {
// it('Selects an administration, views its score report, then accesses the column filter to filter by progress status', () => {
// checkUrl();
Expand All @@ -134,7 +154,9 @@
// checkTableColumn(['Username'], 'CypressTestStudent0');
// });
// });

//

// describe('The partner admin can view progress reports for a given administration and filter by grade and progress status', () => {
// it('Selects an administration, views its score report, then accesses the column filter to filter by grade and support level', () => {
// checkUrl();
Expand All @@ -145,7 +167,9 @@
// checkTableColumn(['Username'], 'CypressTestStudent0');
// });
// });

//

// describe('The partner admin can view progress reports for a given administration and a not applicable filter returns an empty message', () => {
// it('Selects an administration, views its score report, then accesses the column filter to filter by a non-returnable filter', () => {
// checkUrl();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,45 +12,56 @@
// const timeout = Cypress.env('timeout');
// const baseUrl = Cypress.env('baseUrl');
// const headers = ['School'];

//

// function checkUrl() {
// cy.login(testPartnerAdminUsername, testPartnerAdminPassword);
// cy.navigateTo('/');
// cy.url({ timeout: timeout }).should('eq', `${baseUrl}/`);
// }

//

// function clickScoreButton(adminId) {
// cy.get('button', { timeout: timeout }).contains('Scores').first().click();
// cy.url({ timeout: timeout }).should('eq', `${baseUrl}/scores/${adminId}/district/${roarDemoDistrictId}`);
// }

//

// function setFilterBySchool(school) {
// cy.get('[data-cy="filter-by-school"]', { timeout: timeout }).click();
// cy.get('ul > li', { timeout: timeout }).contains(school).click();
// cy.wait(0.05 * timeout);
// }

//

// function setFilterByGrade(grade) {
// cy.get('[data-cy="filter-by-grade"]', { timeout: timeout }).click();
// cy.get('ul > li', { timeout: timeout }).contains(grade).click();
// cy.wait(0.05 * timeout);
// }
//

// function setFilterByProgressCategory(header, category) {
// cy.contains('div.p-column-header-content', header).find('button').click();
// cy.get('[data-cy="score-filter-dropdown"]', { timeout: timeout }).click();
// cy.get('ul>li').find('.p-tag-value', { timeout: timeout }).contains(category).click();
// cy.get('button').contains('Apply').click();
// cy.wait(0.05 * timeout);
// }

//

// function setFilterByScoreCategory(header, category) {
// cy.contains('div.p-column-header-content', header).find('button').click();
// cy.get('[data-cy="score-filter-dropdown"]', { timeout: timeout }).click();
// cy.get('ul > li', { timeout: timeout }).contains(category).click();
// cy.get('button').contains('Apply').click();
// cy.wait(0.05 * timeout);
// }

//
// function checkTableColumn(headers, value) {
// cy.get('[data-cy="roar-data-table"] thead th').then(($header) => {
Expand All @@ -59,6 +70,7 @@
// headers.forEach((header) => {
// const headerIndex = tableHeaders.indexOf(header);
//

// if (headerIndex !== -1) {
// cy.get('[data-cy="roar-data-table"] tbody').each(($row) => {
// cy.wrap($row).find('tr').should('contain', value);
Expand All @@ -67,7 +79,7 @@
// });
// });
// }
//

// describe('The partner admin can view score reports for a given administration and filter by school.', () => {
// it('Selects an administration and views its score report, then accesses the filter bar to filter by school.', () => {
// checkUrl();
Expand All @@ -77,7 +89,7 @@
// checkTableColumn(headers, 'Cypress Test School');
// });
// });
//

// describe('The partner admin can view score reports for a given administration and filter by grade', () => {
// it('Selects an administration, views its score report, then accesses the filter bar to filter by grade', () => {
// checkUrl();
Expand All @@ -87,7 +99,7 @@
// checkTableColumn(['Grade'], '3');
// });
// });
//

// describe('The partner admin can view score reports for a given administration and filter by both school and grade', () => {
// it('Selects an administration, views its score report, then accesses the filter bar to filter by both school grade', () => {
// checkUrl();
Expand All @@ -99,7 +111,7 @@
// checkTableColumn(['Grade'], '5');
// });
// });
//

// describe('The partner admin can view score reports for a given administration and filter by support level', () => {
// it('Selects an administration, views its score report, then accesses the column filter to filter by support level', () => {
// checkUrl();
Expand All @@ -109,7 +121,7 @@
// checkTableColumn(['Username'], 'CypressTestStudent0');
// });
// });
//

// describe('The partner admin can view score reports for a given administration filter by school, grade, and progress status: completed', () => {
// it('Selects an administration, views its score report, then accesses the column filter to filter by school, grade, and completed', () => {
// checkUrl();
Expand All @@ -121,7 +133,7 @@
// checkTableColumn(['Username'], 'CypressTestStudent0');
// });
// });
//

// describe('The partner admin can view score reports for a given administration and filter by Assessed', () => {
// it('Selects an administration, views its score report, then accesses the column filter to filter by assessed', () => {
// checkUrl();
Expand All @@ -131,7 +143,7 @@
// checkTableColumn(['Username'], 'CypressTestStudent0');
// });
// });
//

// describe('The partner admin can view score reports for a given administration and a not applicable filter returns an empty message', () => {
// it('Selects an administration, views its score report, then accesses the column filter to filter by a non-returnable filter', () => {
// checkUrl();
Expand Down
Loading

0 comments on commit dd680ba

Please sign in to comment.