chore: Fix test without ID
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user