Skip to content

Commit

Permalink
test: update given
Browse files Browse the repository at this point in the history
  • Loading branch information
PraveenAsokan committed Jul 29, 2024
1 parent bad1ce9 commit 9e6b790
Show file tree
Hide file tree
Showing 11 changed files with 2,579 additions and 1,358 deletions.
20 changes: 9 additions & 11 deletions browserstack.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,27 @@
"browsers": [
{
"browser": "chrome",
"os": "Windows 10",
"os": "OS X Monterey",
"versions": ["latest"]
},
{
"browser": "firefox",
"os": "OS X Monterey",
"versions": ["latest"]
},
{
"browser": "edge",
"os": "Windows 10",
"versions": ["latest"]
}
],

"run_settings": {
"cypress_config_file": "./cypress.config.js",
"npm_dependencies": {
"@badeball/cypress-cucumber-preprocessor": "^15.1.4",
"@bahmutov/cypress-esbuild-preprocessor": "^2.2.0",
"browserstack-cypress-cli": "^1.29.2",
"@bahmutov/cypress-esbuild-preprocessor": "2.2.0",
"browserstack-cypress-cli": "^1.30.0",
"allure-commandline": "^2.27.0",
"allure-cypress": "^2.15.1",
"@percy/cypress": "3.1.2",
"cypress": "^12.15.0"
"cypress": "12.15.0",
"esbuild": "0.17.10"
},
"cypress_version": "10",
"project_name": "muon-regression",
Expand All @@ -36,13 +32,15 @@
"nonGlobalStepDefinitions": true
}
},
"spec_timeout": 5,
"parallels": "4",
"exclude": ["packages/*","allure-results/*"]
"exclude": []
},
"connection_settings": {
"local": true,
"local_mode": "always-on",
"local_identifier": "CypressLocalConnection"
},
"disable_usage_reporting": false
"disable_usage_reporting": false,
"key": "auth"
}
2 changes: 2 additions & 0 deletions cucumber-messages.ndjson
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{"testRunStarted":{"timestamp":{"seconds":1722208183,"nanos":640000000}}}
{"testRunFinished":{"timestamp":{"seconds":1722208236,"nanos":504000000}}}
48 changes: 48 additions & 0 deletions cucumber-report.html

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion cypress/e2e/component_tests/muon_cta/muon_cta.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@

import {Then} from '@badeball/cypress-cucumber-preprocessor';
import {Given, Then} from '@badeball/cypress-cucumber-preprocessor';

Given('Launch the {string} component {string} type in the browser', (component, type) => {
cy.launchComponent(component, type);
cy.wait(3000)
});

Then('Validate the elements and attributes in the {string} component', (type) => {

Expand Down
5 changes: 5 additions & 0 deletions cypress/e2e/component_tests/muon_detail/muon_detail.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor';


Given('Launch the {string} component {string} type in the browser', (component, type) => {
cy.launchComponent(component, type);
cy.wait(3000)
});

When('User clicks to expand the detail', () => {
cy.get('muon-detail').find('div[slot="heading"]').click();
});
Expand Down
5 changes: 5 additions & 0 deletions cypress/e2e/component_tests/muon_icon/muon_icon.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
/* eslint-disable no-undef */
import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';

Given('Launch the {string} component {string} type in the browser', (component, type) => {
cy.launchComponent(component, type);
cy.wait(3000)
});


Then('Validate the svg element', () => {
cy.get('muon-icon')
Expand Down
6 changes: 6 additions & 0 deletions cypress/e2e/component_tests/muon_image/muon_image.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
import { Given, Then } from '@badeball/cypress-cucumber-preprocessor';
import {imageElement} from '../../../support/web_elements';


Given('Launch the {string} component {string} type in the browser', (component, type) => {
cy.launchComponent(component, type);
cy.wait(3000)
});

Then('Validate the image src and elements in {string} type', (type) => {

const placeholder = '(src).thumb.48.48.png';
Expand Down
6 changes: 6 additions & 0 deletions cypress/e2e/component_tests/muon_inputter/muon_inputter.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor';
import {inputElement} from '../../../support/web_elements';


Given('Launch the {string} component {string} type in the browser', (component, type) => {
cy.launchComponent(component, type);
cy.wait(3000)
});


When('User enter the input', () => {
cy.clearInput();
cy.enterValue('Cypress test');
Expand Down
554 changes: 554 additions & 0 deletions npm_install_debug.log

Large diffs are not rendered by default.

Loading

0 comments on commit 9e6b790

Please sign in to comment.