Browse Source

fix(test): Moved playwright folder from nc-gui

pull/4376/head
Muhammed Mustafa 2 years ago
parent
commit
aa5fbdffd4
  1. 2
      package.json
  2. 0
      tests/playwright/.env.example
  3. 0
      tests/playwright/.eslintrc.json
  4. 0
      tests/playwright/.gitignore
  5. 0
      tests/playwright/.lintstagedrc.json
  6. 0
      tests/playwright/.prettierignore
  7. 0
      tests/playwright/.prettierrc.js
  8. 0
      tests/playwright/README.md
  9. 0
      tests/playwright/constants/index.ts
  10. 0
      tests/playwright/fixtures/expectedBaseDownloadData.txt
  11. 0
      tests/playwright/fixtures/expectedBaseDownloadDataPg.txt
  12. 0
      tests/playwright/fixtures/expectedData.txt
  13. 0
      tests/playwright/fixtures/expectedDataSqlite.txt
  14. 0
      tests/playwright/fixtures/sampleFiles/1.json
  15. 0
      tests/playwright/fixtures/sampleFiles/2.json
  16. 0
      tests/playwright/fixtures/sampleFiles/3.json
  17. 0
      tests/playwright/fixtures/sampleFiles/4.json
  18. 0
      tests/playwright/fixtures/sampleFiles/5.json
  19. 0
      tests/playwright/fixtures/sampleFiles/6.json
  20. 0
      tests/playwright/fixtures/sampleFiles/simple.xlsx
  21. 0
      tests/playwright/fixtures/template.spec.ts
  22. 0
      tests/playwright/package-lock.json
  23. 0
      tests/playwright/package.json
  24. 0
      tests/playwright/pages/Base.ts
  25. 0
      tests/playwright/pages/Dashboard/ExpandedForm/index.ts
  26. 0
      tests/playwright/pages/Dashboard/Form/index.ts
  27. 0
      tests/playwright/pages/Dashboard/Gallery/index.ts
  28. 0
      tests/playwright/pages/Dashboard/Grid/Column/LTAR/ChildList.ts
  29. 0
      tests/playwright/pages/Dashboard/Grid/Column/LTAR/LinkRecord.ts
  30. 0
      tests/playwright/pages/Dashboard/Grid/Column/SelectOptionColumn.ts
  31. 0
      tests/playwright/pages/Dashboard/Grid/Column/index.ts
  32. 0
      tests/playwright/pages/Dashboard/Grid/index.ts
  33. 0
      tests/playwright/pages/Dashboard/Import/Airtable.ts
  34. 0
      tests/playwright/pages/Dashboard/Import/ImportTemplate.ts
  35. 0
      tests/playwright/pages/Dashboard/Kanban/index.ts
  36. 0
      tests/playwright/pages/Dashboard/Settings/Acl.ts
  37. 0
      tests/playwright/pages/Dashboard/Settings/AppStore.ts
  38. 0
      tests/playwright/pages/Dashboard/Settings/Audit.ts
  39. 0
      tests/playwright/pages/Dashboard/Settings/Erd.ts
  40. 0
      tests/playwright/pages/Dashboard/Settings/Metadata.ts
  41. 0
      tests/playwright/pages/Dashboard/Settings/Miscellaneous.ts
  42. 0
      tests/playwright/pages/Dashboard/Settings/Teams.ts
  43. 0
      tests/playwright/pages/Dashboard/Settings/index.ts
  44. 0
      tests/playwright/pages/Dashboard/SurveyForm/index.ts
  45. 0
      tests/playwright/pages/Dashboard/TreeView.ts
  46. 2
      tests/playwright/pages/Dashboard/ViewSidebar/index.ts
  47. 0
      tests/playwright/pages/Dashboard/WebhookForm/index.ts
  48. 0
      tests/playwright/pages/Dashboard/common/Cell/AttachmentCell.ts
  49. 0
      tests/playwright/pages/Dashboard/common/Cell/CheckboxCell.ts
  50. 0
      tests/playwright/pages/Dashboard/common/Cell/RatingCell.ts
  51. 0
      tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts
  52. 0
      tests/playwright/pages/Dashboard/common/Cell/index.ts
  53. 0
      tests/playwright/pages/Dashboard/common/ProjectMenu/index.ts
  54. 0
      tests/playwright/pages/Dashboard/common/Toolbar/Actions/Erd.ts
  55. 0
      tests/playwright/pages/Dashboard/common/Toolbar/Actions/index.ts
  56. 0
      tests/playwright/pages/Dashboard/common/Toolbar/AddEditKanbanStack.ts
  57. 0
      tests/playwright/pages/Dashboard/common/Toolbar/Fields.ts
  58. 0
      tests/playwright/pages/Dashboard/common/Toolbar/Filter.ts
  59. 0
      tests/playwright/pages/Dashboard/common/Toolbar/ShareView.ts
  60. 0
      tests/playwright/pages/Dashboard/common/Toolbar/Sort.ts
  61. 0
      tests/playwright/pages/Dashboard/common/Toolbar/StackBy.ts
  62. 0
      tests/playwright/pages/Dashboard/common/Toolbar/ViewMenu.ts
  63. 0
      tests/playwright/pages/Dashboard/common/Toolbar/index.ts
  64. 0
      tests/playwright/pages/Dashboard/commonBase/Erd.ts
  65. 0
      tests/playwright/pages/Dashboard/index.ts
  66. 0
      tests/playwright/pages/LoginPage/index.ts
  67. 0
      tests/playwright/pages/ProjectsPage/index.ts
  68. 0
      tests/playwright/pages/SharedForm/index.ts
  69. 0
      tests/playwright/pages/SignupPage/index.ts
  70. 0
      tests/playwright/playwright.config.ts
  71. 0
      tests/playwright/quickTests/commonTest.ts
  72. 2
      tests/playwright/quickTests/quickTests.spec.ts
  73. 2
      tests/playwright/scripts/docker-compose-mysql-playwright.yml
  74. 2
      tests/playwright/scripts/docker-compose-pg-pw-quick.yml
  75. 2
      tests/playwright/scripts/docker-compose-pg.yml
  76. 0
      tests/playwright/scripts/docker-compose-playwright-pg.yml
  77. 0
      tests/playwright/setup/db.ts
  78. 0
      tests/playwright/setup/index.ts
  79. 0
      tests/playwright/setup/server.ts
  80. 0
      tests/playwright/setup/sqliteExec.ts
  81. 0
      tests/playwright/startPlayWrightServer.sh
  82. 0
      tests/playwright/storageState.json
  83. 0
      tests/playwright/tests/01-webhook.spec.ts
  84. 0
      tests/playwright/tests/authChangePassword.spec.ts
  85. 0
      tests/playwright/tests/baseShare.spec.ts
  86. 0
      tests/playwright/tests/columnAttachments.spec.ts
  87. 0
      tests/playwright/tests/columnDuration.spec.ts
  88. 0
      tests/playwright/tests/columnFormula.spec.ts
  89. 0
      tests/playwright/tests/columnLinkToAnotherRecord.spec.ts
  90. 0
      tests/playwright/tests/columnLookupRollup.spec.ts
  91. 0
      tests/playwright/tests/columnMultiSelect.spec.ts
  92. 0
      tests/playwright/tests/columnRelationalExtendedTests.spec.ts
  93. 0
      tests/playwright/tests/columnSingleSelect.spec.ts
  94. 0
      tests/playwright/tests/erd.spec.ts
  95. 0
      tests/playwright/tests/expandedFormUrl.spec.ts
  96. 0
      tests/playwright/tests/import.spec.ts
  97. 0
      tests/playwright/tests/language.spec.ts
  98. 0
      tests/playwright/tests/metaSync.spec.ts
  99. 0
      tests/playwright/tests/pagination.spec.ts
  100. 0
      tests/playwright/tests/projectOperations.spec.ts
  101. Some files were not shown because too many files have changed in this diff Show More

2
package.json

@ -36,7 +36,7 @@
]
},
"scripts": {
"lint:staged:playwright": "cd packages/nc-gui/tests/playwright; npx lint-staged; cd -",
"lint:staged:playwright": "cd ./tests/playwright; npx lint-staged; cd -",
"build:common": "cd ./packages/nocodb-sdk; npm install; npm run build",
"install:common": "cd ./packages/nocodb; npm install ../nocodb-sdk; cd ../nc-gui; npm install ../nocodb-sdk",
"start:api": "npm run build:common ; cd ./packages/nocodb; npm install ../nocodb-sdk; npm install; NC_DISABLE_CACHE=true NC_DISABLE_TELE=true npm run watch:run:cypress",

0
packages/nc-gui/tests/playwright/.env.example → tests/playwright/.env.example

0
packages/nc-gui/tests/playwright/.eslintrc.json → tests/playwright/.eslintrc.json

0
packages/nc-gui/tests/playwright/.gitignore → tests/playwright/.gitignore vendored

0
packages/nc-gui/tests/playwright/.lintstagedrc.json → tests/playwright/.lintstagedrc.json

0
packages/nc-gui/tests/playwright/.prettierignore → tests/playwright/.prettierignore

0
packages/nc-gui/tests/playwright/.prettierrc.js → tests/playwright/.prettierrc.js

0
packages/nc-gui/tests/playwright/README.md → tests/playwright/README.md

0
packages/nc-gui/tests/playwright/constants/index.ts → tests/playwright/constants/index.ts

0
packages/nc-gui/tests/playwright/fixtures/expectedBaseDownloadData.txt → tests/playwright/fixtures/expectedBaseDownloadData.txt

0
packages/nc-gui/tests/playwright/fixtures/expectedBaseDownloadDataPg.txt → tests/playwright/fixtures/expectedBaseDownloadDataPg.txt

0
packages/nc-gui/tests/playwright/fixtures/expectedData.txt → tests/playwright/fixtures/expectedData.txt

0
packages/nc-gui/tests/playwright/fixtures/expectedDataSqlite.txt → tests/playwright/fixtures/expectedDataSqlite.txt

0
packages/nc-gui/tests/playwright/fixtures/sampleFiles/1.json → tests/playwright/fixtures/sampleFiles/1.json

0
packages/nc-gui/tests/playwright/fixtures/sampleFiles/2.json → tests/playwright/fixtures/sampleFiles/2.json

0
packages/nc-gui/tests/playwright/fixtures/sampleFiles/3.json → tests/playwright/fixtures/sampleFiles/3.json

0
packages/nc-gui/tests/playwright/fixtures/sampleFiles/4.json → tests/playwright/fixtures/sampleFiles/4.json

0
packages/nc-gui/tests/playwright/fixtures/sampleFiles/5.json → tests/playwright/fixtures/sampleFiles/5.json

0
packages/nc-gui/tests/playwright/fixtures/sampleFiles/6.json → tests/playwright/fixtures/sampleFiles/6.json

0
packages/nc-gui/tests/playwright/fixtures/sampleFiles/simple.xlsx → tests/playwright/fixtures/sampleFiles/simple.xlsx

0
packages/nc-gui/tests/playwright/fixtures/template.spec.ts → tests/playwright/fixtures/template.spec.ts

0
packages/nc-gui/tests/playwright/package-lock.json → tests/playwright/package-lock.json generated

0
packages/nc-gui/tests/playwright/package.json → tests/playwright/package.json

0
packages/nc-gui/tests/playwright/pages/Base.ts → tests/playwright/pages/Base.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/ExpandedForm/index.ts → tests/playwright/pages/Dashboard/ExpandedForm/index.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/Form/index.ts → tests/playwright/pages/Dashboard/Form/index.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/Gallery/index.ts → tests/playwright/pages/Dashboard/Gallery/index.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/Grid/Column/LTAR/ChildList.ts → tests/playwright/pages/Dashboard/Grid/Column/LTAR/ChildList.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/Grid/Column/LTAR/LinkRecord.ts → tests/playwright/pages/Dashboard/Grid/Column/LTAR/LinkRecord.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/Grid/Column/SelectOptionColumn.ts → tests/playwright/pages/Dashboard/Grid/Column/SelectOptionColumn.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/Grid/Column/index.ts → tests/playwright/pages/Dashboard/Grid/Column/index.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/Grid/index.ts → tests/playwright/pages/Dashboard/Grid/index.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/Import/Airtable.ts → tests/playwright/pages/Dashboard/Import/Airtable.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/Import/ImportTemplate.ts → tests/playwright/pages/Dashboard/Import/ImportTemplate.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/Kanban/index.ts → tests/playwright/pages/Dashboard/Kanban/index.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/Settings/Acl.ts → tests/playwright/pages/Dashboard/Settings/Acl.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/Settings/AppStore.ts → tests/playwright/pages/Dashboard/Settings/AppStore.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/Settings/Audit.ts → tests/playwright/pages/Dashboard/Settings/Audit.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/Settings/Erd.ts → tests/playwright/pages/Dashboard/Settings/Erd.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/Settings/Metadata.ts → tests/playwright/pages/Dashboard/Settings/Metadata.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/Settings/Miscellaneous.ts → tests/playwright/pages/Dashboard/Settings/Miscellaneous.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/Settings/Teams.ts → tests/playwright/pages/Dashboard/Settings/Teams.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/Settings/index.ts → tests/playwright/pages/Dashboard/Settings/index.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/SurveyForm/index.ts → tests/playwright/pages/Dashboard/SurveyForm/index.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/TreeView.ts → tests/playwright/pages/Dashboard/TreeView.ts

2
packages/nc-gui/tests/playwright/pages/Dashboard/ViewSidebar/index.ts → tests/playwright/pages/Dashboard/ViewSidebar/index.ts

@ -1,5 +1,5 @@
import { expect, Locator } from '@playwright/test';
import { DashboardPage } from '../';
import { DashboardPage } from '..';
import BasePage from '../../Base';
export class ViewSidebarPage extends BasePage {

0
packages/nc-gui/tests/playwright/pages/Dashboard/WebhookForm/index.ts → tests/playwright/pages/Dashboard/WebhookForm/index.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/common/Cell/AttachmentCell.ts → tests/playwright/pages/Dashboard/common/Cell/AttachmentCell.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/common/Cell/CheckboxCell.ts → tests/playwright/pages/Dashboard/common/Cell/CheckboxCell.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/common/Cell/RatingCell.ts → tests/playwright/pages/Dashboard/common/Cell/RatingCell.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts → tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/common/Cell/index.ts → tests/playwright/pages/Dashboard/common/Cell/index.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/common/ProjectMenu/index.ts → tests/playwright/pages/Dashboard/common/ProjectMenu/index.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/common/Toolbar/Actions/Erd.ts → tests/playwright/pages/Dashboard/common/Toolbar/Actions/Erd.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/common/Toolbar/Actions/index.ts → tests/playwright/pages/Dashboard/common/Toolbar/Actions/index.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/common/Toolbar/AddEditKanbanStack.ts → tests/playwright/pages/Dashboard/common/Toolbar/AddEditKanbanStack.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/common/Toolbar/Fields.ts → tests/playwright/pages/Dashboard/common/Toolbar/Fields.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/common/Toolbar/Filter.ts → tests/playwright/pages/Dashboard/common/Toolbar/Filter.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/common/Toolbar/ShareView.ts → tests/playwright/pages/Dashboard/common/Toolbar/ShareView.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/common/Toolbar/Sort.ts → tests/playwright/pages/Dashboard/common/Toolbar/Sort.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/common/Toolbar/StackBy.ts → tests/playwright/pages/Dashboard/common/Toolbar/StackBy.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/common/Toolbar/ViewMenu.ts → tests/playwright/pages/Dashboard/common/Toolbar/ViewMenu.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/common/Toolbar/index.ts → tests/playwright/pages/Dashboard/common/Toolbar/index.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/commonBase/Erd.ts → tests/playwright/pages/Dashboard/commonBase/Erd.ts

0
packages/nc-gui/tests/playwright/pages/Dashboard/index.ts → tests/playwright/pages/Dashboard/index.ts

0
packages/nc-gui/tests/playwright/pages/LoginPage/index.ts → tests/playwright/pages/LoginPage/index.ts

0
packages/nc-gui/tests/playwright/pages/ProjectsPage/index.ts → tests/playwright/pages/ProjectsPage/index.ts

0
packages/nc-gui/tests/playwright/pages/SharedForm/index.ts → tests/playwright/pages/SharedForm/index.ts

0
packages/nc-gui/tests/playwright/pages/SignupPage/index.ts → tests/playwright/pages/SignupPage/index.ts

0
packages/nc-gui/tests/playwright/playwright.config.ts → tests/playwright/playwright.config.ts

0
packages/nc-gui/tests/playwright/quickTests/commonTest.ts → tests/playwright/quickTests/commonTest.ts

2
packages/nc-gui/tests/playwright/quickTests/quickTests.spec.ts → tests/playwright/quickTests/quickTests.spec.ts

@ -2,7 +2,7 @@ import { expect, test } from '@playwright/test';
import { DashboardPage } from '../pages/Dashboard';
import { LoginPage } from '../pages/LoginPage';
import { ProjectsPage } from '../pages/ProjectsPage';
import { quickVerify } from '../quickTests/commonTest';
import { quickVerify } from './commonTest';
import { NcContext } from '../setup';
test.describe('Quick tests', () => {

2
packages/nc-gui/tests/playwright/scripts/docker-compose-mysql-playwright.yml → tests/playwright/scripts/docker-compose-mysql-playwright.yml

@ -11,4 +11,4 @@ services:
environment:
MYSQL_ROOT_PASSWORD: password
volumes:
- ../../../../../packages/nocodb/tests/mysql-sakila-db:/docker-entrypoint-initdb.d
- ../../../packages/nocodb/tests/mysql-sakila-db:/docker-entrypoint-initdb.d

2
packages/nc-gui/tests/playwright/scripts/docker-compose-pg-pw-quick.yml → tests/playwright/scripts/docker-compose-pg-pw-quick.yml

@ -9,7 +9,7 @@ services:
ports:
- 5432:5432
volumes:
- ../../../../../packages/nocodb/tests/pg-cy-quick:/docker-entrypoint-initdb.d
- ../../../packages/nocodb/tests/pg-cy-quick:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s

2
packages/nc-gui/tests/playwright/scripts/docker-compose-pg.yml → tests/playwright/scripts/docker-compose-pg.yml

@ -9,7 +9,7 @@ services:
ports:
- 5432:5432
volumes:
- ../../../../../packages/nocodb/tests/pg-sakila-db:/docker-entrypoint-initdb.d
- ../../../packages/nocodb/tests/pg-sakila-db:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s

0
packages/nc-gui/tests/playwright/scripts/docker-compose-playwright-pg.yml → tests/playwright/scripts/docker-compose-playwright-pg.yml

0
packages/nc-gui/tests/playwright/setup/db.ts → tests/playwright/setup/db.ts

0
packages/nc-gui/tests/playwright/setup/index.ts → tests/playwright/setup/index.ts

0
packages/nc-gui/tests/playwright/setup/server.ts → tests/playwright/setup/server.ts

0
packages/nc-gui/tests/playwright/setup/sqliteExec.ts → tests/playwright/setup/sqliteExec.ts

0
packages/nc-gui/tests/playwright/startPlayWrightServer.sh → tests/playwright/startPlayWrightServer.sh

0
packages/nc-gui/tests/playwright/storageState.json → tests/playwright/storageState.json

0
packages/nc-gui/tests/playwright/tests/01-webhook.spec.ts → tests/playwright/tests/01-webhook.spec.ts

0
packages/nc-gui/tests/playwright/tests/authChangePassword.spec.ts → tests/playwright/tests/authChangePassword.spec.ts

0
packages/nc-gui/tests/playwright/tests/baseShare.spec.ts → tests/playwright/tests/baseShare.spec.ts

0
packages/nc-gui/tests/playwright/tests/columnAttachments.spec.ts → tests/playwright/tests/columnAttachments.spec.ts

0
packages/nc-gui/tests/playwright/tests/columnDuration.spec.ts → tests/playwright/tests/columnDuration.spec.ts

0
packages/nc-gui/tests/playwright/tests/columnFormula.spec.ts → tests/playwright/tests/columnFormula.spec.ts

0
packages/nc-gui/tests/playwright/tests/columnLinkToAnotherRecord.spec.ts → tests/playwright/tests/columnLinkToAnotherRecord.spec.ts

0
packages/nc-gui/tests/playwright/tests/columnLookupRollup.spec.ts → tests/playwright/tests/columnLookupRollup.spec.ts

0
packages/nc-gui/tests/playwright/tests/columnMultiSelect.spec.ts → tests/playwright/tests/columnMultiSelect.spec.ts

0
packages/nc-gui/tests/playwright/tests/columnRelationalExtendedTests.spec.ts → tests/playwright/tests/columnRelationalExtendedTests.spec.ts

0
packages/nc-gui/tests/playwright/tests/columnSingleSelect.spec.ts → tests/playwright/tests/columnSingleSelect.spec.ts

0
packages/nc-gui/tests/playwright/tests/erd.spec.ts → tests/playwright/tests/erd.spec.ts

0
packages/nc-gui/tests/playwright/tests/expandedFormUrl.spec.ts → tests/playwright/tests/expandedFormUrl.spec.ts

0
packages/nc-gui/tests/playwright/tests/import.spec.ts → tests/playwright/tests/import.spec.ts

0
packages/nc-gui/tests/playwright/tests/language.spec.ts → tests/playwright/tests/language.spec.ts

0
packages/nc-gui/tests/playwright/tests/metaSync.spec.ts → tests/playwright/tests/metaSync.spec.ts

0
packages/nc-gui/tests/playwright/tests/pagination.spec.ts → tests/playwright/tests/pagination.spec.ts

0
packages/nc-gui/tests/playwright/tests/projectOperations.spec.ts → tests/playwright/tests/projectOperations.spec.ts

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save