tldraw/e2e/test/specs
Steve Ruiz a722e3e6f0
[fix] various text (#1350)
This PR updates tests for the text shape, as well as updating the logic
of `getTextLines`. We now:

- allow leading whitespace
- allow white space to cause line breaks, trim the whitespace off of the
end of the line. Crazy times!
- fix a bug with geo shapes changes width when growY changes

Note that this is not a "full solution" to line breaks that are caused
by whitespace + wrapping. AFAIK this is impossible to fix in SVG-land
without measuring the SVG element in order to collapse whitespace in the
same way that it collapses in HTML layout.

### Change Type

- [x] `patch` — Bug Fix
- [ ] `minor` — New Feature
- [ ] `major` — Breaking Change

- [ ] `dependencies` — Dependency Update (publishes a `patch` release,
for devDependencies use `internal`)

- [ ] `documentation` — Changes to the documentation only (will not
publish a new version)
- [ ] `tests` — Changes to any testing-related code only (will not
publish a new version)
- [ ] `internal` — Any other changes that don't affect the published
package (will not publish a new version)

### Test Plan

- [x] Webdriver tests

### Release Notes

- Allow leading whitespace
2023-05-11 22:15:24 +00:00
..
arrange.ts Added initial webdriver tests (#1337) 2023-05-09 20:21:45 +00:00
camera.ts Added initial webdriver tests (#1337) 2023-05-09 20:21:45 +00:00
constants.ts Added initial webdriver tests (#1337) 2023-05-09 20:21:45 +00:00
export.ts Added initial webdriver tests (#1337) 2023-05-09 20:21:45 +00:00
grouping.ts Added initial webdriver tests (#1337) 2023-05-09 20:21:45 +00:00
index.ts Added initial webdriver tests (#1337) 2023-05-09 20:21:45 +00:00
pages.ts Added initial webdriver tests (#1337) 2023-05-09 20:21:45 +00:00
reorder.ts Added initial webdriver tests (#1337) 2023-05-09 20:21:45 +00:00
screenshots.ts Added initial webdriver tests (#1337) 2023-05-09 20:21:45 +00:00
shortcuts.ts Added initial webdriver tests (#1337) 2023-05-09 20:21:45 +00:00
smoke.ts Added initial webdriver tests (#1337) 2023-05-09 20:21:45 +00:00
styling.ts Added initial webdriver tests (#1337) 2023-05-09 20:21:45 +00:00
text.ts [fix] various text (#1350) 2023-05-11 22:15:24 +00:00