Skip to content

Commit

Permalink
more review modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Khadreal committed Feb 13, 2024
1 parent fa4d865 commit a5d5204
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 85 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
/backstop_data/bitmaps_test
/backstop_data/html_report
.DS_Store
.idea
.idea
backstop.json
80 changes: 0 additions & 80 deletions backstop.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,86 +8,6 @@
}
],
"scenarios": [
{
"label": "home",
"url": "https://e2e.rocketlabsqa.ovh/",
"referenceUrl": "",
"readyEvent": "",
"readySelector": "",
"delay": 0,
"hideSelectors": [],
"removeSelectors": [],
"hoverSelector": "",
"clickSelector": "",
"postInteractionWait": 0,
"selectors": [],
"selectorExpansion": true,
"expect": 0,
"misMatchThreshold": 0.1,
"requireSameDimensions": true,
"onReadyScript": "scrollToBottom.js",
"onBeforeScript": ""
},
{
"label": "llcss",
"url": "https://e2e.rocketlabsqa.ovh/lazyload_css_background_images",
"referenceUrl": "",
"readyEvent": "",
"readySelector": "",
"delay": 0,
"hideSelectors": [],
"removeSelectors": [],
"hoverSelector": "",
"clickSelector": "",
"postInteractionWait": 0,
"selectors": [],
"selectorExpansion": true,
"expect": 0,
"misMatchThreshold": 0.1,
"requireSameDimensions": true,
"onReadyScript": "scrollToBottom.js",
"onBeforeScript": ""
},
{
"label": "noJsLlcss",
"url": "https://e2e.rocketlabsqa.ovh/lazyload_css_background_images",
"referenceUrl": "",
"readyEvent": "",
"readySelector": "",
"delay": 0,
"hideSelectors": [],
"removeSelectors": [],
"hoverSelector": "",
"clickSelector": "",
"postInteractionWait": 0,
"selectors": [],
"selectorExpansion": true,
"expect": 0,
"misMatchThreshold": 0.1,
"requireSameDimensions": true,
"onReadyScript": "wait.js",
"onBeforeScript": "disableJavascript.js"
},
{
"label": "elementorLlcss",
"url": "https://e2e.rocketlabsqa.ovh/elementor-overlay",
"referenceUrl": "",
"readyEvent": "",
"readySelector": "",
"delay": 0,
"hideSelectors": [],
"removeSelectors": [],
"hoverSelector": "",
"clickSelector": "",
"postInteractionWait": 0,
"selectors": [],
"selectorExpansion": true,
"expect": 0,
"misMatchThreshold": 0.1,
"requireSameDimensions": true,
"onReadyScript": "scrollToBottom.js",
"onBeforeScript": ""
}
],
"paths": {
"bitmaps_reference": "backstop_data/bitmaps_reference",
Expand Down
4 changes: 2 additions & 2 deletions src/features/wpml-compatibility.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Feature: C14655 - Should LL Background work on main/sub language
When I go to 'wp-admin/options-general.php?page=wprocket#dashboard'
And I save settings 'media' 'lazyloadCssBgImg'
Given activate 'wpml-multilingual-cms' plugin
Given wpml has more than one languages
Given wpml directory is enabled
And wpml has more than one languages
And wpml directory is enabled

Scenario: Open the page with directory lanaguage
Then no error in the console different than nowprocket page 'llcss'
Expand Down
4 changes: 2 additions & 2 deletions src/support/steps/wpml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ Given('wpml has more than one languages', async function (this:ICustomWorld) {
/**
* Switch to another language
*/
When('switch to another language', async function () {
const getNextLanguageAnchor = await this.page.locator('.wpml-ls-slot-footer a:not(.wpml-ls-current-language)').first()
When('switch to another language', async function (this:ICustomWorld) {
const getNextLanguageAnchor = this.page.locator('.wpml-ls-slot-footer a:not(.wpml-ls-current-language)').first()
const getLink = await getNextLanguageAnchor.getAttribute('href');
await this.page.goto(getLink)

Expand Down

0 comments on commit a5d5204

Please sign in to comment.