test: e2e for workflows (#9657)

* create test files

* add first e2e test

* finish first e2e test

* code clean up

* fix event type create button data-testid

* enable sandbox mode for non production environments

* comment out code for testing

* Revert "comment out code for testing"

This reverts commit 5553dacce23cd85c27e41b76f99fc31ce69499b7.

* clean up comments

* prettier

* use NEXT_PUBLIC_IS_E2E

* use todo fn

---------

Co-authored-by: CarinaWolli <[email protected]>
Co-authored-by: Alan <[email protected]>
Co-authored-by: Keith Williams <[email protected]>
Co-authored-by: Shivam Kalra <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-07-21 21:06:39 +05:30
1 parent 337192697f
commit 1aa3077706
8 files changed
+108 -2

No files matched your search

@@ -118,6 +118,7 @@ export default function WorkflowDetailsPage(props: Props) {
<div className="pl-2 pr-3 md:sticky md:top-6 md:h-0 md:pl-0">
<div className="mb-5">
<TextField
data-testid="workflow-name"
disabled={props.readOnly}
label={`${t("workflow_name")}:`}
type="text"
@@ -65,7 +65,7 @@ export default function WorkflowListPage({ workflows }: Props) {
<>
{workflows && workflows.length > 0 ? (
<div className="bg-default border-subtle overflow-hidden rounded-md border sm:mx-0">
<ul className="divide-subtle divide-y">
<ul className="divide-subtle divide-y" data-testid="workflow-list">
{workflows.map((workflow) => (
<li key={workflow.id}>
<div className="first-line:group hover:bg-muted flex w-full items-center justify-between p-4 sm:px-6">
@@ -274,6 +274,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
<Select
isSearchable={false}
className="text-sm"
id="trigger-select"
isDisabled={props.readOnly}
onChange={(val) => {
if (val) {