-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
1,185 additions
and
48 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 |
---|---|---|
|
@@ -14,3 +14,4 @@ docs/src/exampleMenus | |
docs/dist/ | ||
node_modules/ | ||
tmp/ | ||
cypress/screenshots/ |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"eyesTimeout": 60000, | ||
"video": false | ||
} |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"mocha": true | ||
}, | ||
"globals": { | ||
"cy": true | ||
}, | ||
"plugins": [ | ||
"mocha" | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
describe('Visual Regression - Smoke Tests', () => { | ||
const examples = [ | ||
'button-example-button', | ||
'container-example-container', | ||
'divider-example-divider', | ||
'flag-example-flag', | ||
'header-example-page', | ||
'icon-example-size', | ||
'image-example-image', | ||
'input-example-input', | ||
'label-example-label', | ||
'list-example-basic', | ||
'rail-example-rail', | ||
'segment-example-segment', | ||
'step-example-step', | ||
'breadcrumb-example-standard', | ||
'form-example-form', | ||
'grid-example-grid', | ||
'menu-example-basic', | ||
'message-example-message', | ||
'table-example-pagination', | ||
'card-example-card', | ||
'comment-example-comment', | ||
'feed-example-basic', | ||
'item-example-items', | ||
'statistic-example-statistic', | ||
'accordion-example-standard', | ||
'checkbox-example-checkbox', | ||
'dimmer-example-dimmer', | ||
'dropdown-example-dropdown', | ||
'embed-example-youtube', | ||
'progress-example-standard', | ||
'rating-example-rating', | ||
'search-example-standard', | ||
'sidebar-example-visible', | ||
'tab-example-basic', | ||
'pagination-example-pagination', | ||
'radio-example-radio', | ||
'responsive-example-responsive', | ||
'select-example', | ||
'text-area-example-text-area', | ||
] | ||
|
||
examples.forEach((example) => { | ||
it(example, () => { | ||
cy.visit(`http://localhost:3000/maximize/${example}/`) | ||
.eyesOpen({ | ||
appName: 'Semantic UI React Docs', | ||
testName: example, | ||
browser: [ | ||
{ | ||
name: 'chrome', | ||
width: 1280, | ||
height: 800, | ||
}, | ||
{ | ||
name: 'firefox', | ||
width: 1280, | ||
height: 800, | ||
}, | ||
], | ||
showLogs: true, | ||
}) | ||
.eyesCheckWindow({ | ||
sizeMode: 'selector', | ||
selector: '#root > *:first-child', | ||
}) | ||
.eyesClose() | ||
}) | ||
}) | ||
}) |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// *********************************************************** | ||
// This example plugins/index.js can be used to load plugins | ||
// | ||
// You can change the location of this file or turn off loading | ||
// the plugins file with the 'pluginsFile' configuration option. | ||
// | ||
// You can read more here: | ||
// https://on.cypress.io/plugins-guide | ||
// *********************************************************** | ||
|
||
// This function is called when a project is opened or re-opened (e.g. due to | ||
// the project's config changing) | ||
|
||
module.exports = () => { | ||
// `on` arg is used to hook into various events Cypress emits | ||
// `config` arg is the resolved Cypress config | ||
} | ||
|
||
require('@applitools/eyes.cypress')(module) |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// *********************************************** | ||
// This example commands.js shows you how to | ||
// create various custom commands and overwrite | ||
// existing commands. | ||
// | ||
// For more comprehensive examples of custom | ||
// commands please read more here: | ||
// https://on.cypress.io/custom-commands | ||
// *********************************************** | ||
// | ||
// | ||
// -- This is a parent command -- | ||
// Cypress.Commands.add("login", (email, password) => { ... }) | ||
// | ||
// | ||
// -- This is a child command -- | ||
// Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... }) | ||
// | ||
// | ||
// -- This is a dual command -- | ||
// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... }) | ||
// | ||
// | ||
// -- This is will overwrite an existing command -- | ||
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... }) |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// *********************************************************** | ||
// This example support/index.js is processed and | ||
// loaded automatically before your test files. | ||
// | ||
// This is a great place to put global configuration and | ||
// behavior that modifies Cypress. | ||
// | ||
// You can change the location of this file or turn off | ||
// automatically serving support files with the | ||
// 'supportFile' configuration option. | ||
// | ||
// You can read more here: | ||
// https://on.cypress.io/configuration | ||
// *********************************************************** | ||
|
||
// Import commands.js using ES2015 syntax: | ||
|
||
import '@applitools/eyes.cypress/commands' | ||
|
||
import './commands' | ||
|
||
// Alternatively you can use CommonJS syntax: | ||
// require('./commands') |
4 changes: 2 additions & 2 deletions
4
...elements/Label/Types/LabelExampleBasic.js → ...elements/Label/Types/LabelExampleLabel.js
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,10 +1,10 @@ | ||
import React from 'react' | ||
import { Icon, Label } from 'semantic-ui-react' | ||
|
||
const LabelExampleBasic = () => ( | ||
const LabelExampleLabel = () => ( | ||
<Label> | ||
<Icon name='mail' /> 23 | ||
</Label> | ||
) | ||
|
||
export default LabelExampleBasic | ||
export default LabelExampleLabel |
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
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
Oops, something went wrong.