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

feat: add e2e tests #135

Merged
merged 22 commits into from
Oct 24, 2022
Merged

feat: add e2e tests #135

merged 22 commits into from
Oct 24, 2022

Conversation

wama-tw
Copy link
Contributor

@wama-tw wama-tw commented Oct 24, 2022

No description provided.

AuthModule,
// AuthModule,
Copy link
Member

Choose a reason for hiding this comment

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

Don't do this.

course.departmentId = 'csie';
await this.courseRepository.save(course);

for (let i = 0; i < 200; i++) {
Copy link
Member

Choose a reason for hiding this comment

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

Do you need so much fake data?

Copy link
Contributor

@juliaouo juliaouo Oct 24, 2022

Choose a reason for hiding this comment

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

Because I need to test changing the courses pages.

Copy link
Member

Choose a reason for hiding this comment

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

Would the test pass if we only have 100 courses? You should consider the minimal test data.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can help that

cypress.config.ts Outdated Show resolved Hide resolved
) {}

async seedCourse() {
await this.courseRepository.clear();
Copy link
Member

Choose a reason for hiding this comment

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

Could you extract it into the npm script?

wama-tw and others added 2 commits October 24, 2022 11:00
Co-authored-by: ppodds <oscar20020629@gmail.com>
@ppodds ppodds added the test label Oct 24, 2022
@ppodds ppodds merged commit b320293 into NCU-Plus:master Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants