Skip to content

Commit

Permalink
RISDEV-6042 First version of periodicals (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-deazevedo authored Jan 13, 2025
1 parent 551f98c commit 6d4fbe4
Show file tree
Hide file tree
Showing 37 changed files with 4,841 additions and 20 deletions.
14 changes: 14 additions & 0 deletions .talismanrc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,20 @@ fileignoreconfig:
checksum: fa217d4a34afcd967e6c35b10e139cd5c52711e41c190f477576441081b5cf99
- filename: LICENSE
checksum: 00de5fa1aad2fcb968beb5d1bbf09931fc9d3f160f11b945b24f3203ea025917
- filename: frontend/src/components/input/TextInput.vue
checksum: 9b2cf5af0630bc3b1023a5554859639d873d095fc0117f91357c43c90a9c0282
- filename: frontend/src/components/Tooltip.vue
checksum: f6255808b70650ad3d7d7445bf2e3165058accd88d942462e1a59353c22daa9e
- filename: .github/workflows/security-jobs.yml
checksum: 6bad26404f5327349658f52897d21982129df33d553ab12b9bb69caf6c9d168f
- filename: frontend/src/components/EditableList.vue
checksum: 8e3a8ec14d35dd35fc4f12da4a4c9327be2f76c9512669540de395118fac602d
- filename: frontend/src/components/ComboboxInput.vue
checksum: d8805af87c95764b578fb54f8d343620ea90674977449f62652f77753f93494a
- filename: frontend/src/components/ComboboxInput.spec.ts
checksum: 96f7bb558ec0b3bf49ca1dff60e2f8231d830813f0fccbe62d485f74a0f687ef
- filename: frontend/src/components/Tooltip.spec.ts
checksum: b97ac5af98399fe336c48252c68ba51e0c94faeb9f37581c3e6355c443d71d86

allowed_patterns:
# allow these specific patterns that include hex encoded text
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ test.describe('skip webkit', () => {
{ tag: ['@RISDEV-6042'] },
async ({ page }) => {
// given
await page.goto('/')
await page.goto('/fundstellen')
// when
await page.getByText('Neue Dokumentationseinheit').click()
// await page.getByText('Neue Dokumentationseinheit').click()
// then
expect(page.url()).toMatch(/.*\/fundstellen$/)
await expect(page.getByText('Fundstellen')).toHaveCount(1) // will become 2 once the nav bar exists
Expand All @@ -24,17 +24,17 @@ test.describe('skip webkit', () => {
// await expect(page.getByText('KSNR054920707')).toHaveCount(1)
// await expect(page.getByText('Platzhaltertext')).toHaveCount(1)
// await expect(page.getByText('Unveröffentlicht')).toHaveCount(1)
// await expect(page.getByText('Fundstellen')).toHaveCount(1)
// await expect(page.getByRole('button', { name: 'Speichern' })).toHaveCount(1)
await expect(page.getByText('Fundstellen')).toHaveCount(1)
// await expect(page.getByRole('button', { name: 'Speichern' })).toHaveCount(1)

// await expect(page.getByText('Periodikum')).toHaveCount(1)
// await expect(page.getByText('Zitierstelle')).toHaveCount(1)
await expect(page.getByText('Periodikum')).toHaveCount(1)
await expect(page.getByText('Zitatstelle')).toHaveCount(1)

// const optionElement = page.getByRole('option')
// await expect(optionElement).toHaveCount(1)
// expect(optionElement.selectOption({ label: "BAnz" }))

// await expect(page.getByRole("textbox")).toHaveCount(1)
await expect(page.getByRole("textbox")).toHaveCount(2)
},
)
})
17 changes: 15 additions & 2 deletions frontend/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import vueTsEslintConfig from '@vue/eslint-config-typescript'
import pluginVitest from '@vitest/eslint-plugin'
import pluginPlaywright from 'eslint-plugin-playwright'
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
import testingLibraryPlugin from 'eslint-plugin-testing-library'
import jestDomPlugin from "eslint-plugin-jest-dom"

export default [
{
Expand All @@ -17,15 +19,26 @@ export default [

...pluginVue.configs['flat/essential'],
...vueTsEslintConfig(),

{
...pluginVitest.configs.recommended,
files: ['src/**/__tests__/*'],
},

{
...pluginPlaywright.configs['flat/recommended'],
files: ['e2e/**/*.{test,spec}.{js,ts,jsx,tsx}'],
},

{
files: ["src/components/**/*.spec.ts"],
...testingLibraryPlugin.configs["flat/vue"],
},

{
files: ["src/**/*.spec.ts"],
...jestDomPlugin.configs["flat/recommended"],
},

skipFormatting,
]
Loading

0 comments on commit 6d4fbe4

Please sign in to comment.