Skip to content

Commit

Permalink
fix filepath to test student data csv
Browse files Browse the repository at this point in the history
  • Loading branch information
ksmontville committed Oct 16, 2024
1 parent d4aebda commit 21f6766
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { navigateToPageFromMenubar } from '../../../../support/helper-functions/

const timeout = Cypress.env('timeout');
const selector = '.p-datatable-thead > tr > :nth-child';
const filepath = 'cypress/fixtures/super-admin/testStudentData.csv';

// This function clicks the dropdown menu, which is indexed by int, then clicks the field.
function selectField(int, fieldName) {
Expand All @@ -26,7 +27,10 @@ describe(

navigateToPageFromMenubar('Users', 'Register students');

cy.get('input[type=file]').selectFile('cypress/fixtures/testStudentData.csv', { force: true, timeout: 10000 });
cy.get('input[type=file]').selectFile(filepath, {
force: true,
timeout: 10000,
});

selectField(1, 'Student Username');
selectField(2, 'Password');
Expand Down

0 comments on commit 21f6766

Please sign in to comment.