gristlabs_grist-core/test/nbrowser
Paul Fitzpatrick f59c1edf16 (core) start migrating old tests to work with newer selenium
Summary:
We have an important batch of old browser tests that depend on a pseudo-promise manager selenium's node client used to have. That manager was dropped in v4 (see changelog https://github.com/SeleniumHQ/selenium/blob/trunk/javascript/node/selenium-webdriver/CHANGES.md).

I tried porting some wholesale to our newer style of writing tests, and it is a bit of a bear (and would also be hard work to review). So instead I tried something else: remapping the `webdriverjq` implementation to work with mocha-webdriver. This works pretty well. Some API differences are hard to reconcile, but so far most test code just needs async/await changes to port, meaning a lot less thinking, and probably easier to review overall.

The important property of the ports tests is that they no longer import or require `selenium-webdriver`. mocha-webdriver depends on selenium-webdriver, but a newer version.

I haven't tried dealing with types, since that doesn't matter much - these tests aren't under active development, they are just important for preventing regressions.

Follow up work would be porting the remainder of the tests which, while a slog, I'm hoping is no longer a quagmire. Once the tests are ported, I'd propose moving them to `core`.

Test Plan: Test porting

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D3825
2023-03-27 12:10:25 -04:00
..
aclTestUtils.ts (core) Preserving cursor position when linked state is removed. 2023-02-08 21:54:55 +01:00
ActionLog.ts Fixing flaky tests. 2022-12-09 20:15:08 +01:00
AttachmentsLinking.ts (core) Fix linking of new records when attachment is the first thing added. 2023-03-09 08:54:36 -05:00
ChoiceList.ts feat(TypeConversion): allow converting list of string with quotes to ChoiceList (#397) 2023-01-12 23:13:26 -05:00
customUtil.ts (core) Moving widget tests to core 2022-09-06 17:17:14 +02:00
CustomView.ts Fixing flaky tests. 2022-12-09 20:15:08 +01:00
CustomWidgets.ts Fixing flaky tests. 2022-12-09 20:15:08 +01:00
CustomWidgetsConfig.ts (core) Moving widget tests to core 2022-09-06 17:17:14 +02:00
DescriptionColumn.ts fix(ColumnDesc): tooltip show multiline description + remove useless variable + remove outline style 2023-02-15 16:41:58 +01:00
DocTutorial.ts (core) Draft version of AI assistant 2023-03-24 10:07:26 +01:00
DuplicateDocument.ts (core) tweak duplicate document test to be more reliable 2022-09-22 14:26:56 -04:00
Fork.ts (core) Persist forks in home db 2023-02-20 22:46:36 -05:00
gristUtils.ts (core) start migrating old tests to work with newer selenium 2023-03-27 12:10:25 -04:00
HomeIntro.ts (core) Fix popup dismissal in HomeIntro test 2023-02-01 12:27:24 -05:00
homeUtil.ts (core) Hide tips in grist-core 2022-12-20 14:37:41 -05:00
LanguageSettings.ts (core) Fix missing placeholder flag icon 2023-02-26 22:23:04 -05:00
Localization.ts Adding new flags for supported locales (#420) 2023-02-03 18:56:24 -05:00
MultiColumn.ts (core) Fixing multicolumn bug on a card view 2022-11-14 21:05:39 +01:00
Pages.ts (core) Add overflowTooltip() tool, and use for long tables in widget picker, and long page names. 2023-03-13 21:47:35 -04:00
ReferenceColumns.ts (core) Preserving cursor position when linked state is removed. 2023-02-08 21:54:55 +01:00
ReferenceList.ts (core) Update sort and filter UI 2022-11-17 15:33:45 -05:00
RefTransforms.ts (core) Fix bug preventing changes to ref list table 2022-10-17 07:49:54 -07:00
RightPanel.ts (core) Preserving cursor position when linked state is removed. 2023-02-08 21:54:55 +01:00
RightPanelSelectBy.ts (core) Preserving cursor position when linked state is removed. 2023-02-08 21:54:55 +01:00
RowMenu.ts (core) Fix hidden columns bug when editing data selection 2022-10-18 08:36:11 -07:00
saveViewSection.ts Update saveViewSection test for grist-core (#323) 2022-10-24 16:19:09 -04:00
SelectBy.ts (core) Preserving cursor position when linked state is removed. 2023-02-08 21:54:55 +01:00
SelectByRefList.ts (core) Preserving cursor position when linked state is removed. 2023-02-08 21:54:55 +01:00
SelectByRightPanel.ts (core) Preserving cursor position when linked state is removed. 2023-02-08 21:54:55 +01:00
SelectBySummary.ts (core) Preserving cursor position when linked state is removed. 2023-02-08 21:54:55 +01:00
SelectBySummaryRef.ts (core) Preserving cursor position when linked state is removed. 2023-02-08 21:54:55 +01:00
SelectionSummary.ts (core) Moving nbrowser tests to grist-core 2022-10-25 17:22:54 +02:00
Smoke.ts (core) Remove code for unused welcome flows 2022-02-28 13:21:28 -08:00
testServer.ts improve how server.restart functions in tests (#338) 2022-11-01 20:01:15 -04:00
testUtils.ts (core) Fixing click-away bug for the cell color widget 2022-10-24 16:21:14 +02:00
ToggleColumns.ts (core) When a checkbox is clicked on a new record, set default values determined by linking 2022-11-10 14:34:40 -05:00