#2824 Size changes and updated regressionstest afters diagram sizing changes

This commit is contained in:
Knut Sveidqvist
2022-08-28 11:25:09 +02:00
parent 3b93c39249
commit e6e7bdcb55
13 changed files with 68 additions and 66 deletions

View File

@@ -42,8 +42,8 @@ section Checkout from website
cy.get('svg').should((svg) => {
expect(svg).to.have.attr('width', '100%');
expect(svg).to.have.attr('height');
const height = parseFloat(svg.attr('height'));
expect(height).to.eq(565);
// const height = parseFloat(svg.attr('height'));
// expect(height).to.eq(565);
const style = svg.attr('style');
expect(style).to.match(/^max-width: [\d.]+px;$/);
const maxWidthValue = parseFloat(style.match(/[\d.]+/g).join(''));