-
Notifications
You must be signed in to change notification settings - Fork 64
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(testcafé) : Drive Sharing scenario #1425
Conversation
5255a66
to
754781e
Compare
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.
Thanks! I really like the test structure, but I think a few minor things need to change :)
@@ -28,6 +28,7 @@ const UploadButton = ({ label, disabled, onUpload, className }) => ( | |||
<Icon icon="upload" /> | |||
<span>{label}</span> | |||
<input | |||
data-test-id="uploadButton" |
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.
no camelCase for our ids
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.
toujours pas corrigé
9842701
to
6f5c5ad
Compare
|
||
const breadcrumbEnd = await this.getbreadcrumb() | ||
await t.expect(breadcrumbEnd).eql(partialBreacrumbStart) | ||
} | ||
} |
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.
I think you can start thinking about how managing this file in a near future and how you can divide / separate responsibilities since the file will grow again and again (not part of this PR)
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.
see comments
9a91644
to
9562360
Compare
9562360
to
53de592
Compare
|
||
//Chrome:headless does not download file in the download Folder by default | ||
//This function set the path for the download folder | ||
export async function setDownloadPath(downloadFolderPath) { |
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 👍
fixture`Drive : Access a folder public link`.page`${TESTCAFE_DRIVE_URL}/` | ||
.beforeEach(async t => { | ||
await t.useRole(Role.anonymous()) | ||
await setDownloadPath(`${homedir()}/Downloads`) |
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.
top !
53de592
to
f9acb17
Compare
chore: Add homedir as a dependancy
🎁 Click here to download the latest Android APK |
f9acb17
to
8a2b321
Compare
🎁 Click here to download the latest Android APK |
🎁 Click here to download the latest Android APK |
CI KO car les data-test-id ajoutés ne sont pas présents sur le serveur. |
One commit with all the new data-test-id
One commit with new tests and data (Check trello card for expected steps)
One step is still missing from this scenario : copy the shared link, so for the moment the public shared tests are supposed to run on local environnement. I'm working on fixing that, but as the PR is quite long, i wanted to post the work already done for review while working on copy-paste problem