Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later

src/types/openapi/openapi.ts
17 changes: 15 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@ module.exports = {
'jsdoc/require-jsdoc': 'off',
'jsdoc/tag-lines': 'off',
'vue/first-attribute-linebreak': 'off',
'vue/max-attributes-per-line': 'off'
}
'vue/max-attributes-per-line': 'off',
},
overrides: [
{
files: ['cypress/**/*.js'],
env: {
mocha: true,
},
globals: {
cy: 'readonly',
Cypress: 'readonly',
expect: 'readonly',
},
},
],
}
8 changes: 2 additions & 6 deletions .github/workflows/cypress-custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,6 @@ jobs:
TESTING=true npm run build --if-present
composer i --no-dev


- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: ${{ matrix.node-version }}

- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # v2.36.0
with:
Expand Down Expand Up @@ -145,6 +139,7 @@ jobs:
with:
wait-on: '${{ env.CYPRESS_baseUrl }}'
working-directory: 'apps/${{ env.APP_NAME }}'
command: npm run test:e2e:cypress
config: defaultCommandTimeout=10000,video=false
env:
# https://github.com/cypress-io/github-action/issues/124
Expand Down Expand Up @@ -189,3 +184,4 @@ jobs:
steps:
- name: Summary status
run: if ${{ needs.cypress.result != 'success' && needs.cypress.result != 'skipped' }}; then exit 1; fi

79 changes: 79 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: MIT
name: Playwright

on:
pull_request:
push:
branches:
- main
- master
- stable*

concurrency:
group: playwright-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
APP_NAME: tables

jobs:
playwright:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
server-versions: ['stable33', 'master']

name: Playwright (${{ matrix.server-versions }})

steps:
- name: Checkout app
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false

- name: Set up Node
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
cache: 'npm'
node-version-file: 'package.json'

- name: Install dependencies
run: npm ci

- name: Build app
run: TESTING=true npm run build --if-present

- name: Install Playwright browsers
run: npx playwright install --with-deps chromium

- name: Run Playwright tests
run: npx playwright test
env:
SERVER_BRANCH: ${{ matrix.server-versions }}

- name: Upload test results
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
if: always()
with:
name: playwright-results-${{ matrix.server-versions }}
path: |
playwright/test-results/
test-results/
retention-days: 5

summary:
permissions:
contents: none
runs-on: ubuntu-latest-low
needs: playwright

if: always()

name: playwright-summary

steps:
- name: Summary status
run: if ${{ needs.playwright.result != 'success' && needs.playwright.result != 'skipped' }}; then exit 1; fi
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,9 @@ tests/unit/.phpunit.result.cache
.DS_Store
/cypress/videos
/cypress/downloads
/cypress/fixtures/test-import-update.csv
/playwright/test-results/
/playwright-report/
/vendor-bin/*/vendor
/lib/Vendor/
/test-results/
6 changes: 3 additions & 3 deletions REUSE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SPDX-FileCopyrightText = "2023 Nextcloud GmbH and Nextcloud contributors"
SPDX-License-Identifier = "AGPL-3.0-or-later"

[[annotations]]
path = ["tsconfig.json", "vendor-bin/openapi-extractor/composer.json", "cypress/e2e/ToDo list.json", "vendor-bin/openapi-extractor/composer.lock"]
path = ["tsconfig.json", "vendor-bin/openapi-extractor/composer.json", "playwright/e2e/ToDo list.json", "vendor-bin/openapi-extractor/composer.lock"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2024 Nextcloud GmbH and Nextcloud contributors"
SPDX-License-Identifier = "AGPL-3.0-or-later"
Expand Down Expand Up @@ -66,13 +66,13 @@ SPDX-FileCopyrightText = "2017 Nextcloud GmbH and Nextcloud contributors"
SPDX-License-Identifier = "AGPL-3.0-or-later"

[[annotations]]
path = ["cypress/styleguide/assets/img/filetypes/font.svg", "cypress/styleguide/assets/img/actions/star-rounded.svg", "cypress/fixtures/example.json", "cypress/fixtures/NC_server_test.pdf", "cypress/fixtures/photo-test-1.jpeg", "cypress/fixtures/test-import.csv", "docs/permissions-matrix.xlsx", "tests/stub.phpstub", "tests/integration/composer.json", "tests/integration/composer.lock", "tests/integration/base-query-count.txt"]
path = ["cypress/styleguide/assets/img/filetypes/font.svg", "cypress/styleguide/assets/img/actions/star-rounded.svg", "cypress/fixtures/example.json", "cypress/fixtures/NC_server_test.pdf", "cypress/fixtures/photo-test-1.jpeg", "cypress/fixtures/test-import.csv", "playwright/fixtures/example.json", "playwright/fixtures/NC_server_test.pdf", "playwright/fixtures/photo-test-1.jpeg", "playwright/fixtures/test-import.csv", "docs/permissions-matrix.xlsx", "tests/stub.phpstub", "tests/integration/composer.json", "tests/integration/composer.lock", "tests/integration/base-query-count.txt"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2023 Nextcloud GmbH and Nextcloud contributors"
SPDX-License-Identifier = "AGPL-3.0-or-later"

[[annotations]]
path = ["cypress/styleguide/assets/close.svg", "cypress/styleguide/assets/img/manifest.json", "img/material/meta.json", "cypress/fixtures/widgets/createRow.json", "cypress/fixtures/widgets/editRow.json", "cypress/fixtures/widgets/richObject.json"]
path = ["cypress/styleguide/assets/close.svg", "cypress/styleguide/assets/img/manifest.json", "img/material/meta.json", "cypress/fixtures/widgets/createRow.json", "cypress/fixtures/widgets/editRow.json", "cypress/fixtures/widgets/richObject.json", "playwright/fixtures/widgets/createRow.json", "playwright/fixtures/widgets/editRow.json", "playwright/fixtures/widgets/richObject.json"]
precedence = "aggregate"
SPDX-FileCopyrightText = "2024 Nextcloud GmbH and Nextcloud contributors"
SPDX-License-Identifier = "AGPL-3.0-or-later"
Expand Down
5 changes: 4 additions & 1 deletion cypress.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ import vue from '@vitejs/plugin-vue2'



const baseUrl = process.env.CYPRESS_baseUrl ?? 'http://127.0.0.1:8089/index.php/'

export default defineConfig({
projectId: 'ixbf9n',
e2e: {
baseUrl: 'http://nextcloud.local/index.php/',
baseUrl,
supportFile: 'cypress/support/e2e.js',
setupNodeEvents(on, config) {
on('file:preprocessor', vitePreprocessor({
plugins: [vue(), nodePolyfills()],
Expand Down
65 changes: 0 additions & 65 deletions cypress/e2e/column-datetime.cy.js

This file was deleted.

66 changes: 0 additions & 66 deletions cypress/e2e/column-datetimeDate.cy.js

This file was deleted.

60 changes: 0 additions & 60 deletions cypress/e2e/column-datetimeTime.cy.js

This file was deleted.

Loading
Loading