mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
updated data-cy names in tests
This commit is contained in:
@@ -75,13 +75,13 @@ describe('Button Tests', () => {
|
|||||||
it('Links between localities and species work', () => {
|
it('Links between localities and species work', () => {
|
||||||
cy.visit('/locality/21050')
|
cy.visit('/locality/21050')
|
||||||
cy.get('[role=tablist]').contains('Species').click()
|
cy.get('[role=tablist]').contains('Species').click()
|
||||||
cy.get('[data-cy="add-button-21426"]').click()
|
cy.get('[data-cy="details-button-21426"]').click()
|
||||||
cy.url().should('contain', '/species/21426')
|
cy.url().should('contain', '/species/21426')
|
||||||
cy.contains('Amblycoptus indet.')
|
cy.contains('Amblycoptus indet.')
|
||||||
cy.contains('Mammalia')
|
cy.contains('Mammalia')
|
||||||
cy.contains('Diet')
|
cy.contains('Diet')
|
||||||
cy.get('[role=tablist]').contains('Localities').click()
|
cy.get('[role=tablist]').contains('Localities').click()
|
||||||
cy.get('[data-cy="add-button-21050"]').click()
|
cy.get('[data-cy="details-button-21050"]').click()
|
||||||
cy.url().should('contain', '/locality/21050')
|
cy.url().should('contain', '/locality/21050')
|
||||||
cy.contains('Dmanisi')
|
cy.contains('Dmanisi')
|
||||||
cy.contains('Dating method')
|
cy.contains('Dating method')
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ describe('Broadly test what different user rights see', () => {
|
|||||||
cy.get('div[id="/admin-menu-button"]').click()
|
cy.get('div[id="/admin-menu-button"]').click()
|
||||||
cy.contains('Regions').click()
|
cy.contains('Regions').click()
|
||||||
cy.contains('region 4452477e')
|
cy.contains('region 4452477e')
|
||||||
cy.get('[data-cy="add-button-1"]').first().click()
|
cy.get('[data-cy="details-button-1"]').first().click()
|
||||||
cy.contains('Regional Coordinators')
|
cy.contains('Regional Coordinators')
|
||||||
cy.contains('prs')
|
cy.contains('prs')
|
||||||
cy.get('[id="edit-button"]').should('exist')
|
cy.get('[id="edit-button"]').should('exist')
|
||||||
@@ -31,7 +31,7 @@ describe('Broadly test what different user rights see', () => {
|
|||||||
cy.get('div[id="/admin-menu-button"]').click()
|
cy.get('div[id="/admin-menu-button"]').click()
|
||||||
cy.get('a[id="/project-menu-link"]').click()
|
cy.get('a[id="/project-menu-link"]').click()
|
||||||
cy.contains('Workgroup on Insectivores')
|
cy.contains('Workgroup on Insectivores')
|
||||||
cy.get('[data-cy="add-button-3"]').first().click()
|
cy.get('[data-cy="details-button-3"]').first().click()
|
||||||
cy.contains('Coordinator')
|
cy.contains('Coordinator')
|
||||||
cy.contains('NOW Database')
|
cy.contains('NOW Database')
|
||||||
cy.get('[id="edit-button"]').should('exist')
|
cy.get('[id="edit-button"]').should('exist')
|
||||||
@@ -41,7 +41,7 @@ describe('Broadly test what different user rights see', () => {
|
|||||||
it('Time Bound view shows correctly', () => {
|
it('Time Bound view shows correctly', () => {
|
||||||
cy.contains('Time Bounds').click()
|
cy.contains('Time Bounds').click()
|
||||||
cy.contains('C2N-y')
|
cy.contains('C2N-y')
|
||||||
cy.get('[data-cy="add-button-11"]').first().click()
|
cy.get('[data-cy="details-button-11"]').first().click()
|
||||||
cy.contains('Bound')
|
cy.contains('Bound')
|
||||||
cy.contains('1.778')
|
cy.contains('1.778')
|
||||||
cy.get('[id="edit-button"]').should('exist')
|
cy.get('[id="edit-button"]').should('exist')
|
||||||
|
|||||||
Reference in New Issue
Block a user