2
0

chore(inputs): Add Button targets e2e tests

This commit is contained in:
Baptiste Arnaud
2022-01-12 09:57:00 +01:00
parent 659f50eb06
commit 13f72f5ff7
10 changed files with 168 additions and 13 deletions

View File

@ -1,3 +1,5 @@
import { userIds } from 'cypress/plugins/data'
describe('Dashboard page', () => {
before(() => {
cy.intercept({
@ -33,7 +35,7 @@ describe('Dashboard page', () => {
.should('have.attr', 'src')
.should(
'include',
'https://s3.eu-west-3.amazonaws.com/typebot/test1/avatar'
`https://s3.eu-west-3.amazonaws.com/typebot/${userIds[0]}/avatar`
)
cy.findByRole('button', { name: 'Save' }).should('exist').click()
cy.wait('@getUpdatedSession')
@ -43,7 +45,7 @@ describe('Dashboard page', () => {
.should('have.attr', 'src')
.should(
'include',
'https://s3.eu-west-3.amazonaws.com/typebot/test1/avatar'
`https://s3.eu-west-3.amazonaws.com/typebot/${userIds[0]}/avatar`
)
cy.findByRole('button', { name: 'Save' }).should('not.exist')
})