-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create modal to show timeline details (#499)
- Loading branch information
1 parent
fe45aa4
commit 48ea63a
Showing
3 changed files
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
describe('Painel de Controle - Página de timeline dos Espaços', () => { | ||
beforeEach(() => { | ||
cy.viewport(1920, 1080); | ||
cy.login('alessandrofeitoza@example.com', 'Aurora@2024'); | ||
cy.visit('/painel/espacos/69461af3-52f2-4c6b-ad30-ce92e478e9bd/timeline'); | ||
cy.login('henriquelopeslima@example.com', 'Aurora@2024'); | ||
cy.visit('painel/espacos/608756eb-4830-49f2-ae14-1160ca5252f4/timeline'); | ||
}); | ||
|
||
it('Garante que a página de timeline dos espaços existe', () => { | ||
cy.get('h2').contains('Espaços - SECULT - Timeline').should('be.visible'); | ||
it('Garante que a página de timeline dos espaços existe e que exibe os detalhes corretamente', () => { | ||
cy.get('h2').contains('Espaços - Galeria Caatinga - Timeline').should('be.visible'); | ||
cy.get('.d-flex > div > .btn').contains('Voltar').should('be.visible'); | ||
|
||
cy.get('tr > :nth-child(1) > a').contains('The resource was created').should('be.visible'); | ||
cy.get('tbody > tr > :nth-child(2)').contains(/\d{2}\/\d{2}\/\d{4}/).should('be.visible'); | ||
cy.get('tbody > tr > :nth-child(3)').contains('unknown').should('be.visible'); | ||
cy.get(':nth-child(5) > .btn').contains('Detalhes').should('be.visible') | ||
|
||
cy.get(':nth-child(1) > :nth-child(5) > .btn').click(); | ||
cy.get('.modal-body > .table > thead > tr > :nth-child(2)').contains('De'); | ||
cy.get('.modal-body > .table > thead > tr > :nth-child(3)').contains('Para'); | ||
cy.get('#modal-timeline-table-body > :nth-child(2) > :nth-child(2)').contains('N/A'); | ||
cy.get('#modal-timeline-table-body > :nth-child(2) > :nth-child(3)').contains('Galeria Caatinga'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters