(core) Moving nbrowser tests to grist-core

Summary:
Moving bulk of nbrowser tests to core. Some tests were split and only part of them were moved.
Tests that are left are either: not suitable for grist-core (like billing) or are failing during browser tests (are not reliable).
Four fixtures directory (uploads, docs, exports-csv/excel) where completely moved to grist-core and are linked as folders.
Those changes allows to add an nbrowser test in grist-core or in the main test folder without any need to link it or link a fixture document.

Other changes:
- testrun.sh has been modified, now it runs tests from both folders (test and core/test),
- TestServer used in grist-core is now adding sample orgs and users (kiwi and others),

Test modified
- SelectionSummary: now it is run on a bigScreen, it was failing randomly
- Billing.ts: relative paths were used
- DateEditor: added waitForServer - it was failing in browser mode
- FrozenColumns, ImportFromGDrive, Printing: updated import paths
- UserManager.ts: was split into two parts (it assumed limited products)
- ViewLayoutResize.ts: this test is still in main repo, it is still failing in browser mode tests

Test Plan: Existing

Reviewers: paulfitz

Reviewed By: paulfitz

Subscribers: dsagal, paulfitz

Differential Revision: https://phab.getgrist.com/D3664
This commit is contained in:
Jarosław Sadziński
2022-10-21 23:34:26 +02:00
parent 3145af36c6
commit 64710b60f3
154 changed files with 13627 additions and 1090 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

3
test/fixtures/export-csv/choice.csv vendored Normal file
View File

@@ -0,0 +1,3 @@
TextBox,Spinner
foo,foo
bar,Baz
1 TextBox Spinner
2 foo foo
3 bar Baz

3
test/fixtures/export-csv/date.csv vendored Normal file
View File

@@ -0,0 +1,3 @@
YYYY-MM-DD,MM-DD-YYYY,MM/DD/YYYY,MM-DD-YY,MM/DD/YY,"MMMM Do, YYYY",DD-MM-YYYY,Custom YYYY-MM
2016-12-01,12-03-2016,12/08/2016,12-13-16,12/23/16,"December 1st, 2016",08-12-2016,2016-12
2016-12-22,12-28-2016,12/28/2016,12-11-16,12/11/16,"December 26th, 2016",25-12-2016,2016-11
1 YYYY-MM-DD MM-DD-YYYY MM/DD/YYYY MM-DD-YY MM/DD/YY MMMM Do, YYYY DD-MM-YYYY Custom YYYY-MM
2 2016-12-01 12-03-2016 12/08/2016 12-13-16 12/23/16 December 1st, 2016 08-12-2016 2016-12
3 2016-12-22 12-28-2016 12/28/2016 12-11-16 12/11/16 December 26th, 2016 25-12-2016 2016-11

3
test/fixtures/export-csv/datetime.csv vendored Normal file
View File

@@ -0,0 +1,3 @@
h:mma,h:mma z,HH:mm,HH:mm z,HH:mm:ss,HH:mm:ss z
2016-12-08 7:00pm,2016-12-01 11:08pm WAT,2016-12-09 00:00,2016-12-28 03:00 -02,2016-12-08 13:33:00,2016-12-08 12:45:12 EST
2016-12-29 5:07am,2016-12-29 4:00am WAT,2016-12-31 08:00,2016-12-06 21:00 -02,2016-12-07 13:33:55,2016-12-28 10:52:34 EST
1 h:mma h:mma z HH:mm HH:mm z HH:mm:ss HH:mm:ss z
2 2016-12-08 7:00pm 2016-12-01 11:08pm WAT 2016-12-09 00:00 2016-12-28 03:00 -02 2016-12-08 13:33:00 2016-12-08 12:45:12 EST
3 2016-12-29 5:07am 2016-12-29 4:00am WAT 2016-12-31 08:00 2016-12-06 21:00 -02 2016-12-07 13:33:55 2016-12-28 10:52:34 EST

View File

@@ -0,0 +1,4 @@
Text Formula,MM-DD-YY
a,04-14-17
"b ,d",04-03-17
a,05-15-17
1 Text Formula MM-DD-YY
2 a 04-14-17
3 b ,d 04-03-17
4 a 05-15-17

View File

@@ -0,0 +1,4 @@
A,B
"John, Bob",John
"Bob, Alice",Alice
Bob,
1 A B
2 John, Bob John
3 Bob, Alice Alice
4 Bob

View File

@@ -0,0 +1,3 @@
Color,Place,Height
yellow,springfield,100
red,cambridge,200
1 Color Place Height
2 yellow springfield 100
3 red cambridge 200

View File

@@ -0,0 +1,4 @@
Color,Place,Height
green,kansas,50
green,earth,75
yellow,springfield,100
1 Color Place Height
2 green kansas 50
3 green earth 75
4 yellow springfield 100

View File

@@ -0,0 +1,4 @@
Id is Baz Label is this,Formula,Foo,Link
hello,a --- grist https://www.getgrist.com/,1,grist https://www.getgrist.com/
world,"b ,d --- https://www.getgrist.com/",2,https://www.getgrist.com/
,"the ""quote marks"" ? --- ",3,
1 Id is Baz Label is this Formula Foo Link
2 hello a --- grist https://www.getgrist.com/ 1 grist https://www.getgrist.com/
3 world b ,d --- https://www.getgrist.com/ 2 https://www.getgrist.com/
4 the "quote marks" ? --- 3

3
test/fixtures/export-csv/integer.csv vendored Normal file
View File

@@ -0,0 +1,3 @@
TextBox,Spinner
500,foo
200,4
1 TextBox Spinner
2 500 foo
3 200 4

4080
test/fixtures/export-csv/many-rows.csv vendored Normal file

File diff suppressed because it is too large Load Diff

4
test/fixtures/export-csv/numeric.csv vendored Normal file
View File

@@ -0,0 +1,4 @@
TextBox,Spinner,OneDecimal
1.33,5000,700.6
2.01,0,0.55
400.00,2000.55,0.0
1 TextBox Spinner OneDecimal
2 1.33 5000 700.6
3 2.01 0 0.55
4 400.00 2000.55 0.0

View File

@@ -0,0 +1,6 @@
Color,Place,Height
yellow,zoo,88
yellow,springfield,100
red,cambridge,200
green,kansas,50
green,earth,75
1 Color Place Height
2 yellow zoo 88
3 yellow springfield 100
4 red cambridge 200
5 green kansas 50
6 green earth 75

View File

@@ -0,0 +1,6 @@
Color,Place,Height
green,kansas,50
green,earth,75
red,cambridge,200
yellow,zoo,88
yellow,springfield,100
1 Color Place Height
2 green kansas 50
3 green earth 75
4 red cambridge 200
5 yellow zoo 88
6 yellow springfield 100

View File

@@ -0,0 +1,6 @@
Color,Place,Height
green,earth,75
green,kansas,50
red,cambridge,200
yellow,springfield,100
yellow,zoo,88
1 Color Place Height
2 green earth 75
3 green kansas 50
4 red cambridge 200
5 yellow springfield 100
6 yellow zoo 88

View File

@@ -0,0 +1,6 @@
Color,Place,Height
green,kansas,50
green,earth,75
yellow,zoo,88
yellow,springfield,100
red,cambridge,200
1 Color Place Height
2 green kansas 50
3 green earth 75
4 yellow zoo 88
5 yellow springfield 100
6 red cambridge 200

View File

@@ -0,0 +1,4 @@
Text Bar,Int Text,Text Formula
"the ""quote marks"" ?",Integer[500],a --- grist https://www.getgrist.com/
"b ,d",Integer[200],"b ,d --- https://www.getgrist.com/"
"the ""quote marks"" ?",,a --- grist https://www.getgrist.com/
1 Text Bar Int Text Text Formula
2 the "quote marks" ? Integer[500] a --- grist https://www.getgrist.com/
3 b ,d Integer[200] b ,d --- https://www.getgrist.com/
4 the "quote marks" ? a --- grist https://www.getgrist.com/

4
test/fixtures/export-csv/text.csv vendored Normal file
View File

@@ -0,0 +1,4 @@
Foo,Bar,Id is Baz Label is this,Link,Formula
1,a,hello,grist https://www.getgrist.com/,a --- grist https://www.getgrist.com/
2,"b ,d",world,https://www.getgrist.com/,"b ,d --- https://www.getgrist.com/"
3,"the ""quote marks"" ?",,,"the ""quote marks"" ? --- "
1 Foo Bar Id is Baz Label is this Link Formula
2 1 a hello grist https://www.getgrist.com/ a --- grist https://www.getgrist.com/
3 2 b ,d world https://www.getgrist.com/ b ,d --- https://www.getgrist.com/
4 3 the "quote marks" ? the "quote marks" ? ---

3
test/fixtures/export-csv/toggle.csv vendored Normal file
View File

@@ -0,0 +1,3 @@
TextBox,CheckBox
true,false
false,true
1 TextBox CheckBox
2 true false
3 false true