Skip to content

Commit

Permalink
fix(report-viewer): fix regex for e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
euberdeveloper authored Aug 28, 2024
1 parent c300fc1 commit 37bfdc6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions report-viewer/tests/e2e/OpenComparisonTest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ interface DataSet {
secondSubmissionName: string
}

const regexpPathSeparator = '(\\\\|\\/)';

const testSets: DataSet[] = [
{
datasetName: 'fileSingleRoot-report.zip',
Expand Down Expand Up @@ -41,13 +43,13 @@ const testSets: DataSet[] = [
},
{
datasetName: 'singleNewSubmission-report.zip',
firstSubmissionName: '2023\\\\|/QSort2023.java',
secondSubmissionName: '2022\\\\|/QSort2022.java'
firstSubmissionName: `2023${regexpPathSeparator}QSort2023.java`,
secondSubmissionName: `2022${regexpPathSeparator}QSort2022.java`,
},
{
datasetName: 'submissionsWithSameName-report.zip',
firstSubmissionName: '2023\\\\|/gr1',
secondSubmissionName: '2023\\\\|/gr2'
firstSubmissionName: `2020${regexpPathSeparator}gr1`,
secondSubmissionName: `2020${regexpPathSeparator}gr2`
},
{
datasetName: 'python-report.zip',
Expand Down

0 comments on commit 37bfdc6

Please sign in to comment.