chore: Fix test without ID

This commit is contained in:
Sidharth Vinod
2023-09-26 11:32:40 +05:30
parent 4fda534c6a
commit 8cb7bffc28
2 changed files with 5 additions and 7 deletions
+4 -6
View File
@@ -63,14 +63,12 @@ describe('Auto sync tests', () => {
cy.visit(
'/edit#pako:eNpljjEKwzAMRa8SNOcEnlt6gK5eVFvYJsgOqkwpIXevg9smEE1PnyfxF3DFExgISW-CczQ2D21cYU7a-SGYXRwyvTp9jUhuKlVP-eHy7zA-leQsMEmg_QOM0BLG5FujZVMsaCQmC6ahR5ks2Lw2r84ela4-aREwKpVGwKrl_s7ut3fnkjAIcg_XDzuaUhs'
);
cy.get('#errorContainer').should('not.exist');
cy.contains('Diagram syntax error').should('not.exist');
typeInEditor(`branch test`, { bottom: true, newline: true });
cy.get('#editor').contains('branch test').should('exist');
cy.get('#errorContainer')
.contains(
'Error: Trying to checkout branch which is not yet created. (Help try using "branch master")'
)
.should('exist');
cy.contains(
'Error: Trying to checkout branch which is not yet created. (Help try using "branch master")'
).should('exist');
});
it('should update diagram after entire text is removed', () => {
+1 -1
View File
@@ -128,7 +128,7 @@
<div class="flex flex-col h-full">
<div bind:this={divEl} id="editor" class="overflow-hidden flex-grow h-full" />
{#if $stateStore.error instanceof Error}
<div class="flex flex-col text-sm text-neutral-100" id="errorContainer">
<div class="flex flex-col text-sm text-neutral-100">
<div class="flex gap-2 items-center bg-red-700 p-2">
<i class="fa fa-exclamation-circle w-4" aria-hidden="true" />
<p>Diagram syntax error</p>