-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add ui tests for copying / moving to share folders #2032
Conversation
Your Render PR Server URL is https://chainsafe-components-stage-pr-2032.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c8sip2jvog4pa8qkqvf0. |
Your Render PR Server URL is https://storage-ui-stage-pr-2032.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c8sip3jvog4pa8qkqvjg. |
Your Render PR Server URL is https://files-ui-stage-pr-2032.onrender.com. Follow its progress at https://dashboard.render.com/static/srv-c8sip4jvog4pa8qkr010. |
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.
great stuff 🥇
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.
Awesome! I left a couple nit suggestions
cy.get("@fileName").then(($fileName) => { | ||
sharedPage.fileItemName().contains(`${$fileName}`).should("be.visible") |
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.
A little more elegant IMHO. Feel free to ignore if you feel it's too complex
cy.get("@fileName").then(($fileName) => { | |
sharedPage.fileItemName().contains(`${$fileName}`).should("be.visible") | |
cy.get<string>("@fileName").then((fileName) => { | |
sharedPage.fileItemName().contains(fileName).should("be.visible") |
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.
@Tbaut I like it. Thanks for the suggestion, I'm always thankful and appreciative of these tips to write cleaner code.
I've gone ahead and used it as suggested and I also updated all the other places where we are doing similar things. It looks and reads better 👍
…files-ui into mnt/add-share-copy-tests-2029
closes #2029
adds coverage for the 4 scenarios when copying / moving files to new / existing shares and preserving / deleting the original