mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
Fix cypress texts
This commit is contained in:
@@ -1,55 +1,55 @@
|
||||
const baseUrl = 'http://localhost:5173/'
|
||||
|
||||
describe('Open each page: tableview and detailview', () => {
|
||||
describe('Open each page, table view and detail view, and check at least some correct text appears', () => {
|
||||
beforeEach(() => {
|
||||
cy.visit(baseUrl)
|
||||
})
|
||||
it('Frontpage contains text', () => {
|
||||
it('Front page works', () => {
|
||||
cy.contains('construction')
|
||||
})
|
||||
it('Can open locality table and it shows data', () => {
|
||||
it('Locality works', () => {
|
||||
cy.contains('Locality').click()
|
||||
cy.contains('Dmanisi')
|
||||
cy.get('[data-cy="detailview-button"]').first().click()
|
||||
cy.contains('Dating method')
|
||||
cy.contains('bahean')
|
||||
})
|
||||
it('Can open species table and it shows data', () => {
|
||||
it('Species works', () => {
|
||||
cy.contains('Species').click()
|
||||
cy.contains('Rodentia')
|
||||
cy.get('[data-cy="detailview-button"]').first().click()
|
||||
cy.contains('Class')
|
||||
cy.contains('Simplomys')
|
||||
})
|
||||
it('Can open reference table and it shows data', () => {
|
||||
it('Reference works', () => {
|
||||
cy.contains('Reference').click()
|
||||
cy.contains('A Concise Geologic Time')
|
||||
cy.get('[data-cy="detailview-button"]').first().click()
|
||||
cy.contains('Reference type')
|
||||
cy.contains('A new geomagnetic polarity time scale for the Late Cretaceous and Cenozoic')
|
||||
})
|
||||
it('Can open time unit table and it shows data', () => {
|
||||
it('Time Unit works', () => {
|
||||
cy.contains('Time Unit').click()
|
||||
cy.contains('Langhian')
|
||||
cy.get('[data-cy="detailview-button"]').first().click()
|
||||
cy.contains('Sequence')
|
||||
cy.contains('chlma')
|
||||
})
|
||||
it('Can open region table and it shows data', () => {
|
||||
it('Region works', () => {
|
||||
cy.contains('Region').click()
|
||||
cy.contains('region 4452477e')
|
||||
cy.get('[data-cy="detailview-button"]').first().click()
|
||||
cy.contains('Regional Coordinators')
|
||||
cy.contains('prs')
|
||||
})
|
||||
it('Can open project table and it shows data', () => {
|
||||
it('Project works', () => {
|
||||
cy.contains('Project').click()
|
||||
cy.contains('Workgroup on Insectivores')
|
||||
cy.get('[data-cy="detailview-button"]').first().click()
|
||||
cy.contains('Coordinator')
|
||||
cy.contains('NOW Database')
|
||||
})
|
||||
it('Can open time bound table and it shows data', () => {
|
||||
it('Time Bound works', () => {
|
||||
cy.contains('Time Bound').click()
|
||||
cy.contains('C2N-y')
|
||||
cy.get('[data-cy="detailview-button"]').first().click()
|
||||
|
||||
Reference in New Issue
Block a user