-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Dockerfile, Cypress, code generation
- Loading branch information
Showing
2 changed files
with
70 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,64 @@ | ||
const isV2 = false; | ||
const isV3 = true; | ||
|
||
describe('Studio UI spec', () => { | ||
beforeEach(() => { | ||
cy.visit('/'); | ||
}); | ||
|
||
it('Button "Settings" should be visible in the UI', () => { | ||
cy.get('[data-testid="button-settings"]').should('be.visible'); | ||
it('Button "Navigation" should be visible in the UI', () => { | ||
cy.get('[data-test="button-navigation"]').should('be.visible'); | ||
}); | ||
|
||
it('Button "Navigation" should display tooltip "Navigation" on hover', () => { | ||
cy.get('[data-test="button-navigation"]').trigger('mouseenter'); | ||
cy.contains('Navigation').should('be.visible'); | ||
}); | ||
|
||
it('Button "Editor" should be visible in the UI', () => { | ||
cy.get('[data-test="button-editor"]').should('be.visible'); | ||
}); | ||
|
||
it('Button "Editor" should display tooltip "Editor" on hover', () => { | ||
cy.get('[data-test="button-editor"]').trigger('mouseenter'); | ||
cy.contains('Editor').should('be.visible'); | ||
}); | ||
|
||
it('Button "HTML preview" should be visible in the UI', () => { | ||
cy.get('[data-test="button-html-preview"]').should('be.visible'); | ||
}); | ||
|
||
it('Button "HTML preview" should display tooltip "HTML preview" on hover', () => { | ||
cy.get('[data-test="button-html-preview"]').trigger('mouseenter'); | ||
cy.contains('HTML preview').should('be.visible'); | ||
}); | ||
|
||
if (isV2) { | ||
it('Button "Blocks visualiser" should be visible in the UI', () => { | ||
cy.get('[data-test="button-visualiser"]').should('be.visible'); | ||
}); | ||
|
||
it('Button "Blocks visualiser" should display tooltip "Blocks visualiser" on hover', () => { | ||
cy.get('[data-test="button-visualiser"]').trigger('mouseenter'); | ||
cy.contains('Blocks visualiser').should('be.visible'); | ||
}); | ||
} | ||
|
||
it('Button "New file" should be visible in the UI', () => { | ||
cy.get('[data-test="button-new-file"]').should('be.visible'); | ||
}); | ||
|
||
it('Button "New file" should display tooltip "New file" on hover', () => { | ||
cy.get('[data-test="button-new-file"]').trigger('mouseenter'); | ||
cy.contains('New file').should('be.visible'); | ||
}); | ||
|
||
it('Button "Studio settings" should be visible in the UI', () => { | ||
cy.get('[data-test="button-settings"]').should('be.visible'); | ||
}); | ||
|
||
it('Button "Settings" should display tooltip "Studio settings" on hover', () => { | ||
cy.get('[data-testid="button-settings"]').trigger('mouseenter'); | ||
it('Button "Studio settings" should display tooltip "Studio settings" on hover', () => { | ||
cy.get('[data-test="button-studio-settings"]').trigger('mouseenter'); | ||
cy.contains('Studio settings').should('be.visible'); | ||
}); | ||
}); |
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