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

test(other): migrate cypress to v12 #6008

Merged
merged 41 commits into from
Jun 6, 2023
Merged

test(other): migrate cypress to v12 #6008

merged 41 commits into from
Jun 6, 2023

Conversation

mahula
Copy link
Contributor

@mahula mahula commented Feb 21, 2023

🍰 Pullrequest

Upgrade the Cypress framework to v12

Issues

Todo

  • fix Cypress issue with finding model definitions for factories

@mahula mahula requested a review from Mogge February 22, 2023 14:03
@mahula mahula self-assigned this Feb 22, 2023
@mahula mahula changed the title [WIP] test(other): ugragde cypress to v10 [WIP] test(other): ugragde cypress to v12 Feb 22, 2023
@mahula mahula changed the title [WIP] test(other): ugragde cypress to v12 test(other): migrate cypress to v12 Feb 23, 2023
@mahula mahula linked an issue Mar 13, 2023 that may be closed by this pull request
5 tasks
@mahula mahula marked this pull request as draft April 12, 2023 18:13
@mahula mahula requested a review from Elweyn June 3, 2023 07:56
@mahula mahula marked this pull request as ready for review June 3, 2023 07:57
Copy link
Member

@Elweyn Elweyn left a comment

Choose a reason for hiding this comment

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

Works for me!
Just the import of gql can be removed!

…body_reported_the_following_posts.js

Co-authored-by: Hannes Heine <heine.hannes@gmail.com>
@ulfgebhardt
Copy link
Member

Try updating neode in root/package.json -> to avoid:

Image: typeof Cypress !== 'undefined' ? require('./Image.js') : require('./Image.js').default,

@mahula
Copy link
Contributor Author

mahula commented Jun 5, 2023

Try updating neode in root/package.json -> to avoid:

Image: typeof Cypress !== 'undefined' ? require('./Image.js') : require('./Image.js').default,

Updating Neode to v0.4.9 did not help avoiding

Image: typeof Cypress !== 'undefined' ? require('./Image.js') : require('./Image.js').default,

@mahula mahula requested a review from Elweyn June 6, 2023 07:46
@Tirokk
Copy link
Member

Tirokk commented Jun 6, 2023

I just tried it out to see if it runs on my machine and get this error:

Bildschirmfoto 2023-06-06 um 13 39 20

It works not with FireFox, Chrom, and Electron.

@mahula
Copy link
Contributor Author

mahula commented Jun 6, 2023

I just tried it out to see if it runs on my machine and get this error:

Bildschirmfoto 2023-06-06 um 13 39 20 It works not with FireFox, Chrom, and Electron.

It says there is a Node4j Driver errror. That is not in the scope of the changes in this PR.
Please try again on the following base:

# stop and turn off Ocelot docker containers
docker-compose down

# remove the node volumes
docker volume rm ocelot-social_backend_node_modules ocelot-social_webapp_node_modules

# check out current stage of the PR branch
git fetch --all
git pull
git checkout cypress-migrate-to-v10
git pull

# boot up the test applicaion 
docker-compose up

yarn
cd backend && yarn
cd ..
yarn run cypress:open

@Tirokk
Copy link
Member

Tirokk commented Jun 6, 2023

I couldn't solve the problem with locally running webapp, backend, and Neo4j.

If I run it with Docker the tests are working basicly, but I get a lot of timeouts.

@mahula mahula merged commit f040b2a into master Jun 6, 2023
21 checks passed
@mahula mahula deleted the cypress-migrate-to-v10 branch June 6, 2023 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
📒 Ocelot.social
Awaiting triage
Development

Successfully merging this pull request may close these issues.

💥 [DevOps] migrate Cypress to current version 12
4 participants