-
Notifications
You must be signed in to change notification settings - Fork 249
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
New: Cypress task log added, cypress commands file added, cypress get… #3489
Conversation
…Data command added.
Co-authored-by: Cahir O'Doherty <41006337+cahirodoherty-learningpool@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to put the commands.js contents at the bottom of cypress.config.js?
I have improved a bit. Removing the need to import the commands file. Merging with Cahir's latest pr. Made the These two issues probably need fixing:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
The above are fixed.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job 👌
@oliverfoster @joe-allen-89 @oliverfoster Once this is merged, are there any more blockers outstanding or can the currently existing testing PRS be moved to their relevant plugins instead and reviewed there? |
I'm happy if @joe-allen-89 is. The only other blocker is to provide a similar interface for the unit testing. e2e tests can proceed after this pr is merged I think. I'm sure we'll see what other issues arise thereafter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@oliverfoster @cahirodoherty-learningpool yes happy to merge.
Thank you both! |
🎉 This PR is included in version 5.34.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
…Data command added.
Part 3 of the issue #3472
Description
/test/e2e/commands.js
file if available through thesupportFile
directive in the cypress configoutputdir
to be the fixtures root for cypress, such that any file can be loaded from theoutputdir
into the cypress environmentcy.getBuild()
to return theadapt/js/build.min.js
jsoncy.getConfig()
to return the{build.coursedir}/config.json
cy.getData(languagecode)
to return an array of all the data from{build.coursedir}/{languagecode}/
this.data
inside tests, containing all of the data items from the adapt course language folderthis.build, this.config, this.data.course, this.data.contentObjects, this.data.articles, this.data.blocks, this.data.components
as shorthands as they are in adaptcy.getBuild().then(build => {}), cy.getConfig().then(config => {}), cy.getData('en').then(data=> {})
New
Fix
Update