From f663898dfdf5380b62435feaab346cea43fefd65 Mon Sep 17 00:00:00 2001 From: jfh Date: Tue, 22 Sep 2020 00:18:52 +0200 Subject: [PATCH] add a small test in scenario.js --- badges/coverage-badge.svg | 2 +- badges/tests-badge.svg | 2 +- .../ui/__snapshots__/scenario.js.snap | 65 +++++++++++++++++++ cypress/integration/ui/scenario.js | 6 ++ 4 files changed, 73 insertions(+), 2 deletions(-) diff --git a/badges/coverage-badge.svg b/badges/coverage-badge.svg index c5aa6c72..4235aef8 100644 --- a/badges/coverage-badge.svg +++ b/badges/coverage-badge.svg @@ -1 +1 @@ -Statements 51.06%Statements 51.06%Branches 40.68%Branches 40.68%Lines 51.77%Lines 51.77%Functions 58.33%Functions 58.33% +Statements 51.19%Statements 51.19%Branches 40.89%Branches 40.89%Lines 51.91%Lines 51.91%Functions 58.65%Functions 58.65% diff --git a/badges/tests-badge.svg b/badges/tests-badge.svg index 3a714e8d..ecc8fc46 100644 --- a/badges/tests-badge.svg +++ b/badges/tests-badge.svg @@ -1 +1 @@ -TestsTests138/138138/138 \ No newline at end of file +TestsTests139/139139/139 \ No newline at end of file diff --git a/cypress/integration/ui/__snapshots__/scenario.js.snap b/cypress/integration/ui/__snapshots__/scenario.js.snap index 3802d721..d4d91bdb 100644 --- a/cypress/integration/ui/__snapshots__/scenario.js.snap +++ b/cypress/integration/ui/__snapshots__/scenario.js.snap @@ -297,3 +297,68 @@ exports[`use various parts of svg-edit > check tool_bold #0`] = ` `; + +exports[`use various parts of svg-edit > check change color #0`] = ` + + + Layer 1 + + + B + + + B + + + +`; diff --git a/cypress/integration/ui/scenario.js b/cypress/integration/ui/scenario.js index 459feefb..c84dbe11 100644 --- a/cypress/integration/ui/scenario.js +++ b/cypress/integration/ui/scenario.js @@ -67,4 +67,10 @@ describe('use various parts of svg-edit', function () { .click({force: true}); testSnapshot(); }); + it('check change color', function () { + cy.get('#svg_1').click({force: true}); + cy.get('[data-rgb="#ffff00"]') + .click({force: true}); + testSnapshot(); + }); });