Skip to content

Commit

Permalink
Merge branch 'main' into fix/47-empty-title
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCoder authored Sep 20, 2023
2 parents b5a5468 + 2526bc1 commit 07ed643
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 10 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cypress/e2e/__image_snapshots__/Smoke test creation #0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cypress/e2e/__image_snapshots__/Smoke test fragment #0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cypress/e2e/__image_snapshots__/Smoke test fragmentIssue #0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cypress/e2e/__image_snapshots__/Smoke test interaction #0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified cypress/e2e/__image_snapshots__/Smoke test return #0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion cypress/e2e/creation.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import 'cypress-plugin-snapshots/commands';
describe('Smoke test', function () {
it('creation', function () {
cy.visit('http://127.0.0.1:8080/cy/smoke-creation.html');
cy.wait(1500);
// This line is to make sure the privacy icon is loaded
cy.get('.privacy>span>svg', { timeout: 5000 }).should('be.visible');
cy.document().toMatchImageSnapshot({
imageConfig: { threshold: 0.01 },
capture: 'viewport',
Expand Down
2 changes: 2 additions & 0 deletions cypress/e2e/defect-406.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ describe('Defect 406', function () {
it('Fragments under Creation', function () {
cy.visit('http://127.0.0.1:8080/cy/defect-406-alt-under-creation.html');
cy.get('[data-signature="m6"]', { timeout: 5000 }).should('be.visible');
// This line is to make sure the privacy icon is loaded
cy.get('.privacy>span>svg', { timeout: 5000 }).should('be.visible');
cy.document().toMatchImageSnapshot({
imageConfig: { threshold: 0.01 },
capture: 'viewport',
Expand Down
6 changes: 4 additions & 2 deletions cypress/e2e/fragment.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import 'cypress-plugin-snapshots/commands';
describe('Smoke test', function () {
it('fragmentIssue', function () {
cy.visit('http://127.0.0.1:8080/cy/smoke-fragment-issue.html');
cy.wait(1500);
// This line is to make sure the privacy icon is loaded
cy.get('.privacy>span>svg', { timeout: 5000 }).should('be.visible');
cy.document().toMatchImageSnapshot({
imageConfig: { threshold: 0.01 },
capture: 'viewport',
Expand All @@ -12,7 +13,8 @@ describe('Smoke test', function () {

it('fragment', function () {
cy.visit('http://127.0.0.1:8080/cy/smoke-fragment.html');
cy.wait(1500);
// This line is to make sure the privacy icon is loaded
cy.get('.privacy>span>svg', { timeout: 5000 }).should('be.visible');
cy.document().toMatchImageSnapshot({
imageConfig: { threshold: 0.02 },
capture: 'viewport',
Expand Down
3 changes: 2 additions & 1 deletion cypress/e2e/interaction.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import 'cypress-plugin-snapshots/commands';
describe('Smoke test', function () {
it('interaction', function () {
cy.visit('http://127.0.0.1:8080/cy/smoke-interaction.html');
cy.wait(1500);
// This line is to make sure the privacy icon is loaded
cy.get('.privacy>span>svg', { timeout: 5000 }).should('be.visible');
cy.document().toMatchImageSnapshot({
imageConfig: { threshold: 0.01 },
capture: 'viewport',
Expand Down
3 changes: 2 additions & 1 deletion cypress/e2e/return.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import 'cypress-plugin-snapshots/commands';
describe('Smoke test', function () {
it('return', function () {
cy.visit('http://127.0.0.1:8080/cy/smoke-return.html');
cy.wait(1500);
// This line is to make sure the privacy icon is loaded
cy.get('.privacy>span>svg', { timeout: 5000 }).should('be.visible');
cy.document().toMatchImageSnapshot({
imageConfig: { threshold: 0.01 },
capture: 'viewport',
Expand Down
2 changes: 2 additions & 0 deletions cypress/e2e/smoke.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ describe('Smoke test', function () {
it('should load the home page', function () {
cy.visit('http://127.0.0.1:8080/cy/smoke.html');
cy.get('[data-signature="append(line)"]', { timeout: 5000 }).should('be.visible');
// This line is to make sure the privacy icon is loaded
cy.get('.privacy>span>svg', { timeout: 5000 }).should('be.visible');
cy.document().toMatchImageSnapshot({
imageConfig: { threshold: 0.012 },
capture: 'viewport',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/mermaid-js/zenuml-core"
},
"scripts": {
"dev": "vite dev --port 8080",
"dev": "vite dev --port 8080 --host 127.0.0.1",
"build:site": "vite build",
"build": "vite build -c vite.config.lib.js",
"test": "vitest",
Expand Down
6 changes: 2 additions & 4 deletions src/components/DiagramFrame/Privacy/Privacy.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<template>
<div>
<div
class="tooltip bottom whitespace-normal flex items-center"
data-tooltip="We (the vendor) do not have access to your data. The diagram is generated in this browser."
>
<div class="privacy tooltip bottom whitespace-normal flex items-center"
data-tooltip="We (the vendor) do not have access to your data. The diagram is generated in this browser.">
<Icon name="privacy" icon-class="fill-current h-6 w-6 m-auto" />
</div>
</div>
Expand Down

0 comments on commit 07ed643

Please sign in to comment.