Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/test speedup #523

Merged
merged 16 commits into from
Sep 28, 2020
Merged

Feature/test speedup #523

merged 16 commits into from
Sep 28, 2020

Conversation

tobias-wiese
Copy link
Contributor

@tobias-wiese tobias-wiese commented Sep 25, 2020

Description

Reason for this PR

  • Using cypress for setting up the test objects is not necessary

Changes in this PR

  • replace cypress procedures for creating accounts and courses with functions (that use the API calls) that are called in the before hook

Type of change (remove all that don't apply)

  • Testing

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Frontend: (remove all that don't apply)
    • Development build
  • Backend: (remove all that don't apply)
    • deployed development build

Checklist: (remove all that don't apply)

  • I have performed a self-review of my own code
  • My changes generate no new linting warnings or console warnings
  • I have updated the CHANGELOG.md to include any changes made in this PR (add WIP to the top, if there is none already)

@tobias-wiese tobias-wiese marked this pull request as ready for review September 25, 2020 15:32
tests/e2e/adminCourseManagement.spec.ts Outdated Show resolved Hide resolved
tests/e2e/courseListFiltering.spec.ts Outdated Show resolved Hide resolved
tests/e2e/lecturerCourseLists.spec.ts Outdated Show resolved Hide resolved
Comment on lines 42 to 47
var today = new Date();
var monthPadded = ("00" + (today.getMonth() + 1)).substr(-2);
var dayPadded = ("00" + today.getDate()).substr(-2);
var random2 = Math.floor(Math.random() * 999).toString();
var randomPadded = ("000" + random2).substr(-3);
student.matriculationId = monthPadded + dayPadded + randomPadded;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should add a method for this in a helper "getRandomMatriculationId()"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

tests/e2e/passwordChanging.spec.ts Outdated Show resolved Hide resolved
tests/e2e/privateProfile.spec.ts Outdated Show resolved Hide resolved
tests/e2e/publicProfile.spec.ts Outdated Show resolved Hide resolved
tests/e2e/studentCourseView.spec.ts Outdated Show resolved Hide resolved
tobias-wiese and others added 8 commits September 28, 2020 10:18
Co-authored-by: Bastian Haverkamp <bastihav@mail.upb.de>
Co-authored-by: Bastian Haverkamp <bastihav@mail.upb.de>
Co-authored-by: Bastian Haverkamp <bastihav@mail.upb.de>
Co-authored-by: Bastian Haverkamp <bastihav@mail.upb.de>
Co-authored-by: Bastian Haverkamp <bastihav@mail.upb.de>
Co-authored-by: Bastian Haverkamp <bastihav@mail.upb.de>
Co-authored-by: Bastian Haverkamp <bastihav@mail.upb.de>
@tobias-wiese tobias-wiese merged commit 599d7c3 into develop Sep 28, 2020
@tobias-wiese tobias-wiese deleted the feature/test_speedup branch September 28, 2020 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace not needed E2E test procedures with API calls
2 participants