Skip to content

feat: Implement basic e2e scenario #7199

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

Closed
wants to merge 21 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Template upload
  • Loading branch information
mtojek committed Apr 19, 2023
commit 41e7cbb3c31d8e15e4ceed2ff797e099eb794b62
3 changes: 3 additions & 0 deletions site/e2e/pom/CreateTemplatePage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ export class CreateTemplatePage extends BasePom {
await this.createTemplateForm
.getByLabel("Description")
.fill("This is my first template.")
await this.createTemplateForm
.getByTestId("form-template-upload")
.setInputFiles("./e2e/testdata/docker.tar")

await this.createTemplateButton.click()
}
Expand Down
Binary file added site/e2e/testdata/docker.tar
Binary file not shown.
17 changes: 0 additions & 17 deletions site/e2e/tests/logout.spec.ts

This file was deleted.

1 change: 1 addition & 0 deletions site/src/pages/CreateTemplatePage/TemplateUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export const TemplateUpload: FC<TemplateUploadProps> = ({
ref={inputRef}
className={styles.input}
accept=".tar"
data-testid="form-template-upload"
onChange={(event) => {
const file = event.currentTarget.files?.[0]
if (file) {
Expand Down