-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #591 from centrica-engineering/fix/allure
test: update dependencies
- Loading branch information
Showing
27 changed files
with
3,022 additions
and
2,171 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"nonGlobalStepDefinitions": true, | ||
"stepDefinitions": [ | ||
"cypress/**/*.{js,ts}" | ||
], | ||
"html": { | ||
"enabled": true | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
const { defineConfig } = require('cypress') | ||
var cucumber = require('cypress-cucumber-preprocessor').default; | ||
var allureWriter = require('@shelex/cypress-allure-plugin/writer'); | ||
const createBundler = require("@bahmutov/cypress-esbuild-preprocessor"); | ||
const preprocessor = require("@badeball/cypress-cucumber-preprocessor"); | ||
const createEsbuildPlugin = require("@badeball/cypress-cucumber-preprocessor/esbuild"); | ||
const { allureCypress } = require("allure-cypress/reporter"); | ||
|
||
module.exports = defineConfig({ | ||
e2e: { | ||
async setupNodeEvents(on, config){ | ||
on('file:preprocessor', cucumber()); | ||
allureWriter(on, config); | ||
await preprocessor.addCucumberPreprocessorPlugin(on, config); | ||
on('file:preprocessor', | ||
createBundler({ | ||
plugins: [createEsbuildPlugin.default(config)], | ||
}) | ||
) | ||
allureCypress(on, { | ||
resultsDir: "./allure-results", | ||
}); | ||
return config; | ||
}, | ||
includeShadowDom: true, | ||
experimentalRunAllSpecs : true, | ||
supportFile: 'cypress/support/index.js', | ||
specPattern: ['cypress/integration/component_tests/*.feature','cypress/integration/example_app_tests/*.feature'], | ||
supportFile: 'cypress/support/e2e.js', | ||
specPattern: ['cypress/e2e/component_tests/*.feature','cypress/e2e/example_app_tests/*.feature'], | ||
}, | ||
}) |
File renamed without changes.
4 changes: 1 addition & 3 deletions
4
...on/component_tests/muon_card/muon_card.js → ...2e/component_tests/muon_card/muon_card.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
File renamed without changes.
7 changes: 2 additions & 5 deletions
7
...tion/component_tests/muon_cta/muon_cta.js → .../e2e/component_tests/muon_cta/muon_cta.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
File renamed without changes.
5 changes: 1 addition & 4 deletions
5
...omponent_tests/muon_detail/muon_detail.js → ...omponent_tests/muon_detail/muon_detail.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
File renamed without changes.
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
File renamed without changes.
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,10 @@ | ||
/* eslint-disable no-undef */ | ||
import { Given, Then } from '@badeball/cypress-cucumber-preprocessor'; | ||
|
||
|
||
Then('Validate the svg element', () => { | ||
cy.get('muon-icon') | ||
.shadow() | ||
.find('svg') | ||
.should('be.visible'); | ||
}); |
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
Oops, something went wrong.