Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion cypress/e2e/tests/vue.spec.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,22 @@ describe('Test Login Scenario', () => {
})

it('Use the search feature', ()=>{
cy.get(data.searchButton).should('be.visible').click()
cy.get(data.searchField).should('exist').type('Dynamic Naming{enter}')
cy.get(data.searchedHeader).should('be.visible').and('contain.text', 'Dynamic Argument Syntax Constraints')
})

it('Pick Quick Start from the Doc list and handle a tab redirect', ()=>{
cy.get(data.docTab).should('be.visible').trigger('mouseenter')
cy.get(data.quickStartOption).contains('Quick Start').should('be.visible').click()
cy.get(data.quickStartHeader).should('be.visible').and('contain.text', 'Quick Start')
cy.get(data.playgroundLink).invoke('attr','target','_self').click()
cy.get(data.playgroundHeader).should('be.visible').and('contain.text', 'Vue SFC Playground')
})

it('Pick Quick Start from the Doc list', () => {
it('Pick Examples from the Doc list', () => {
cy.get(data.docTab).should('be.visible').trigger('mouseenter')
cy.get(data.exampleOption).should('be.visible').contains('Examples').click()
cy.get(data.APIref).contains('API Preference').click()
})
})