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(client): Add Cypress end-to-end test and configure webpack-dev-server for Cypress #85

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mertcanaltin
Copy link
Member

This commit introduces an end-to-end test using Cypress to ensure the overall functionality of the project. Additionally, webpack-dev-server has been configured specifically for Cypress component tests, enabling faster and more efficient testing of individual components. These updates enhance the testing capabilities of the project and improve the overall development workflow fyi @kayraberktuncer 👨‍🚀

@mertcanaltin mertcanaltin changed the title feat: Add Cypress end-to-end test and configure webpack-dev-server for Cypress feat(client): Add Cypress end-to-end test and configure webpack-dev-server for Cypress Jun 10, 2023

export default defineConfig({
e2e: {
baseUrl: 'http://localhost:3000',
Copy link
Member

Choose a reason for hiding this comment

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

you can use environment variables for these kind of texts

Copy link
Member

Choose a reason for hiding this comment

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

beforeEach(() => {
cy.visit('/');
cy.fixture('login.json').then((loginData) => {
cy.login(loginData.email, loginData.password);
Copy link
Member

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants