From e7d22f55961abab4a3164a0ffb13fc0cc12b605b Mon Sep 17 00:00:00 2001 From: Bhargav Garlapati <16038883+bhargav-garlapati@users.noreply.github.com> Date: Sat, 23 Nov 2024 13:21:06 -0800 Subject: [PATCH 1/2] feat(smartui): code in wip - smartui by lambda --- ...datest_ui_test_using_dynamic_content.cy.js | 25 ++++++++++++++++++ lambdatest-config.json | 26 +++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 cypress/e2e/lambdatest_ui_test_using_dynamic_content.cy.js create mode 100644 lambdatest-config.json diff --git a/cypress/e2e/lambdatest_ui_test_using_dynamic_content.cy.js b/cypress/e2e/lambdatest_ui_test_using_dynamic_content.cy.js new file mode 100644 index 0000000..049c698 --- /dev/null +++ b/cypress/e2e/lambdatest_ui_test_using_dynamic_content.cy.js @@ -0,0 +1,25 @@ +describe('Welcome to the-internet', () => { + const data = require('../fixtures/content.json'); + + it('UI Test using Dynamic content', () => { + + // Visit dynamic_content page + cy.visitPage('/dynamic_content?with_content=static'); + + // Check h3 text + cy.get('h3') + .contains(data.dynamicContent); + + // Check content row 1 and take snapshot + cy.get('[id="content"] [class="row"]').eq(0).should('be.visible'); + cy.screenshot('Static Content Row 1'); + + // Check content row 2 and take snapshot + cy.get('[id="content"] [class="row"]').eq(1).should('be.visible'); + cy.screenshot('Static Content Row 2'); + + // Check content row 3 and take snapshot + cy.get('[id="content"] [class="row"]').eq(2).should('be.visible'); + cy.screenshot('Dynamic Content Row 3'); + }) +}) \ No newline at end of file diff --git a/lambdatest-config.json b/lambdatest-config.json new file mode 100644 index 0000000..f20ce27 --- /dev/null +++ b/lambdatest-config.json @@ -0,0 +1,26 @@ +{ + "lambdatest_auth": { + "username": "bhargavk.garlapati", + "access_key": "mgoSYSnpLRh474YyjiTl1EQKwKXubFme1M6wHbTcSnVpMVILV1" + }, + "browsers": [{ + "browser": "Chrome", + "versions": ["130.0"], + "platform": "Windows 10" + }], + "run_settings": { + "reporter_config_file": "reporter-config.json", + "specs": "cypress/e2e/lambdatest_ui_test_using_dynamic_content.cy.js", + "ignore_files": "", + "feature_file_suppport": false, + "network": false, + "headless": false, + "npm_dependencies": { + "cypress": "^13.15.1" + }, + "parallels": 1, + "smart_ui": { + "project": "smart_ui_cypress_example_e2e" + } + } +} \ No newline at end of file From 8e44f31f45c644f64ccf5c5257f5a7502b6ae2b1 Mon Sep 17 00:00:00 2001 From: Bhargav Garlapati <16038883+bhargav-garlapati@users.noreply.github.com> Date: Mon, 25 Nov 2024 12:04:26 -0800 Subject: [PATCH 2/2] feat(lambdatest): smartUI support for Cypress test --- README.md | 2 +- cypress.config.js | 12 +- ...datest_ui_test_using_dynamic_content.cy.js | 34 +- cypress/support/e2e.js | 2 +- package-lock.json | 20 +- package.json | 7 +- smart-ui-results.json | 365 ++++++++++++++++++ smartui-web.json | 33 ++ 8 files changed, 454 insertions(+), 21 deletions(-) create mode 100644 smart-ui-results.json create mode 100644 smartui-web.json diff --git a/README.md b/README.md index 8e3bacc..3036804 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ The tests are automatically triggered on every push request, with the results di - Handling JS Alerts, Confirm, and Prompt - Login Flow test - Upload file - - UI Visual Testing using Percy (smart UI, Applitools Eyes are coming soon...) + - UI Visual Testing using Percy & LambdaTest Smart UI (Applitools Eyes are coming soon...) Each test can be run individually or as part of the complete test suite. You can view the test execution results here: diff --git a/cypress.config.js b/cypress.config.js index c9ee45f..3ae0ffa 100644 --- a/cypress.config.js +++ b/cypress.config.js @@ -23,6 +23,13 @@ module.exports = defineConfig({ // We've imported your old cypress plugins here. // You may want to clean this up later by importing these. setupNodeEvents(on, config) { + // on task event to log messages is required for the @lambdatest/cypress-driver plugin to work + on('task', { + log(message) { + console.log(message); + return null; + }, + }); config.env.ENV = process.env.ENV || 'production'; console.log(`Cypress running in ${config.env.ENV} environment`); const environmentConfig = require(`./cypress/plugins/config/${config.env.ENV}.json`); @@ -34,7 +41,4 @@ module.exports = defineConfig({ }; }, }, -}); - - - \ No newline at end of file +}); \ No newline at end of file diff --git a/cypress/e2e/lambdatest_ui_test_using_dynamic_content.cy.js b/cypress/e2e/lambdatest_ui_test_using_dynamic_content.cy.js index 049c698..2447560 100644 --- a/cypress/e2e/lambdatest_ui_test_using_dynamic_content.cy.js +++ b/cypress/e2e/lambdatest_ui_test_using_dynamic_content.cy.js @@ -1,7 +1,15 @@ +// This script uses LambdaTest SmartUI Cypress SDK and LambdaTest Cypress CLI to run the tests using dynamic content on the-internet.herokuapp.com. +// To setup at the LambdaTest dasboard +// Step 1: https://smartui.lambdatest.com/projects, +// Step 2: Create new project, Select CLI option +// Step 3: Create new project name and continue +// Step 4: Follow the instructions to install the LambdaTest CLI and run the tests + + describe('Welcome to the-internet', () => { const data = require('../fixtures/content.json'); - it('UI Test using Dynamic content', () => { + it('UI Test using Dynamic content 1', () => { // Visit dynamic_content page cy.visitPage('/dynamic_content?with_content=static'); @@ -11,15 +19,27 @@ describe('Welcome to the-internet', () => { .contains(data.dynamicContent); // Check content row 1 and take snapshot - cy.get('[id="content"] [class="row"]').eq(0).should('be.visible'); - cy.screenshot('Static Content Row 1'); + cy.get('[id="content"] [class="row"]').eq(1).should('be.visible'); + cy.smartuiSnapshot('Row-1', { + element: { + cssSelector: '[id="content"] > .row:nth-of-type(1)', + } + }); // Check content row 2 and take snapshot - cy.get('[id="content"] [class="row"]').eq(1).should('be.visible'); - cy.screenshot('Static Content Row 2'); + cy.get('[id="content"] [class="row"]').eq(2).should('be.visible'); + cy.smartuiSnapshot('Row-2', { + element: { + cssSelector: '[id="content"] > .row:nth-of-type(2)', + } + }); // Check content row 3 and take snapshot - cy.get('[id="content"] [class="row"]').eq(2).should('be.visible'); - cy.screenshot('Dynamic Content Row 3'); + cy.get('[id="content"] [class="row"]').eq(3).should('be.visible'); + cy.smartuiSnapshot('Row-3', { + element: { + cssSelector: '[id="content"] > .row:nth-of-type(3)', + } + }); }) }) \ No newline at end of file diff --git a/cypress/support/e2e.js b/cypress/support/e2e.js index 443d082..64a217d 100644 --- a/cypress/support/e2e.js +++ b/cypress/support/e2e.js @@ -18,7 +18,7 @@ import "./global-commands"; import 'cypress-iframe'; import '@percy/cypress'; import 'cypress-axe'; - +import '@lambdatest/cypress-driver'; // Alternatively you can use CommonJS syntax: // require('./commands') diff --git a/package-lock.json b/package-lock.json index b9058f9..209c5de 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,12 +13,13 @@ "@commitlint/cli": "^17.4.4", "@commitlint/config-angular": "^17.4.4", "@cypress/grep": "^4.0.2", - "@lambdatest/smartui-cli": "^4.0.10", + "@lambdatest/cypress-driver": "^1.0.8", + "@lambdatest/smartui-cli": "^4.0.11", "@percy/cli": "^1.30.2", "@percy/cypress": "^3.1.3-beta.0", "ansi-regex": ">=5.0.1", "commitizen": "^4.3.0", - "cypress": "^13.15.1", + "cypress": "^13.16.0", "cypress-axe": "^1.5.0", "cypress-email-results": "^1.0.0", "cypress-iframe": "^1.0.1", @@ -1716,6 +1717,15 @@ "@jridgewell/sourcemap-codec": "^1.4.10" } }, + "node_modules/@lambdatest/cypress-driver": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@lambdatest/cypress-driver/-/cypress-driver-1.0.8.tgz", + "integrity": "sha512-XpTl7fK2JLzMEsTn4VzuV6Lh1nkuJS9p3U5cwbaQc8Z1VGQfG5aoq47aKu+PcNwnIS7k95MJGW5qikIpk0a8Rg==", + "dev": true, + "peerDependencies": { + "cypress": ">=10" + } + }, "node_modules/@lambdatest/node-tunnel": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/@lambdatest/node-tunnel/-/node-tunnel-4.0.8.tgz", @@ -1730,9 +1740,9 @@ } }, "node_modules/@lambdatest/smartui-cli": { - "version": "4.0.10", - "resolved": "https://registry.npmjs.org/@lambdatest/smartui-cli/-/smartui-cli-4.0.10.tgz", - "integrity": "sha512-hCabAi4OYcu1CaiBaWH3Qxp2cFGRS2bIzxYd7PekHqBu/P7ojEAjfAOJX74V4iu4uBPNCE4bAELKr9of/esTvw==", + "version": "4.0.11", + "resolved": "https://registry.npmjs.org/@lambdatest/smartui-cli/-/smartui-cli-4.0.11.tgz", + "integrity": "sha512-LFhSjejK9tQxf8fzNuBy7EH1Ps8V/KT9qC4lT4fac7AcaRM9zNBLPQBJxkmnA0qy0cgu9oKYNLaVgzpNONdudw==", "dev": true, "dependencies": { "@playwright/browser-chromium": "^1.47.2", diff --git a/package.json b/package.json index 14ff407..046dcd9 100644 --- a/package.json +++ b/package.json @@ -7,12 +7,13 @@ "@commitlint/cli": "^17.4.4", "@commitlint/config-angular": "^17.4.4", "@cypress/grep": "^4.0.2", - "@lambdatest/smartui-cli": "^4.0.10", + "@lambdatest/cypress-driver": "^1.0.8", + "@lambdatest/smartui-cli": "^4.0.11", "@percy/cli": "^1.30.2", "@percy/cypress": "^3.1.3-beta.0", "ansi-regex": ">=5.0.1", "commitizen": "^4.3.0", - "cypress": "^13.15.1", + "cypress": "^13.16.0", "cypress-axe": "^1.5.0", "cypress-email-results": "^1.0.0", "cypress-iframe": "^1.0.1", @@ -56,7 +57,7 @@ "cypress:staging": "ENV=staging npm run cypress:open", "cypress:production": "ENV=production npm run cypress:open", "cypress:percy": "npx percy exec -- cypress run --spec cypress/e2e/ui_test_using_dynamic_content.cy.js", - "cypress:lambda": "lambdatest-cypress run --lcf lambdatest-config.json" + "cypress:lambda": "npx smartui --config smartui-web.json exec --fetch-results smart-ui-results.json -- npx cypress run --spec cypress/e2e/lambdatest_ui_test_using_dynamic_content.cy.js --headed" }, "author": "Bhargav Garlapati", "license": "ISC" diff --git a/smart-ui-results.json b/smart-ui-results.json new file mode 100644 index 0000000..fa37499 --- /dev/null +++ b/smart-ui-results.json @@ -0,0 +1,365 @@ +{ + "screenshots": { + "Row-1": [ + { + "screenshot_name": "Row-1", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-1_chrome_1920x0.png", + "browser_name": "chrome", + "viewport": "1920", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-1", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-1_safari_iPhone_14_portrait.png", + "browser_name": "webkit", + "viewport": "iPhone 14 (portrait)", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-1", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-1_safari_1366x0.png", + "browser_name": "webkit", + "viewport": "1366", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-1", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-1_chrome_1366x0.png", + "browser_name": "chrome", + "viewport": "1366", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-1", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-1_edge_1028x0.png", + "browser_name": "edge", + "viewport": "1028", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-1", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-1_safari_1028x0.png", + "browser_name": "webkit", + "viewport": "1028", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-1", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-1_firefox_1366x0.png", + "browser_name": "firefox", + "viewport": "1366", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-1", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-1_edge_1920x0.png", + "browser_name": "edge", + "viewport": "1920", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-1", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-1_edge_1366x0.png", + "browser_name": "edge", + "viewport": "1366", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-1", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-1_chrome_Galaxy_S24_portrait.png", + "browser_name": "chrome", + "viewport": "Galaxy S24 (portrait)", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-1", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-1_firefox_1920x0.png", + "browser_name": "firefox", + "viewport": "1920", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-1", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-1_safari_1920x0.png", + "browser_name": "webkit", + "viewport": "1920", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-1", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-1_chrome_1028x0.png", + "browser_name": "chrome", + "viewport": "1028", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-1", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-1_firefox_1028x0.png", + "browser_name": "firefox", + "viewport": "1028", + "mismatch_percentage": 0, + "status": "new-screenshot" + } + ], + "Row-2": [ + { + "screenshot_name": "Row-2", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-2_safari_1028x0.png", + "browser_name": "webkit", + "viewport": "1028", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-2", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-2_chrome_1028x0.png", + "browser_name": "chrome", + "viewport": "1028", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-2", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-2_firefox_1366x0.png", + "browser_name": "firefox", + "viewport": "1366", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-2", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-2_safari_1920x0.png", + "browser_name": "webkit", + "viewport": "1920", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-2", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-2_edge_1920x0.png", + "browser_name": "edge", + "viewport": "1920", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-2", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-2_chrome_1920x0.png", + "browser_name": "chrome", + "viewport": "1920", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-2", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-2_edge_1366x0.png", + "browser_name": "edge", + "viewport": "1366", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-2", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-2_edge_1028x0.png", + "browser_name": "edge", + "viewport": "1028", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-2", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-2_firefox_1920x0.png", + "browser_name": "firefox", + "viewport": "1920", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-2", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-2_chrome_1366x0.png", + "browser_name": "chrome", + "viewport": "1366", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-2", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-2_safari_1366x0.png", + "browser_name": "webkit", + "viewport": "1366", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-2", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-2_firefox_1028x0.png", + "browser_name": "firefox", + "viewport": "1028", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-2", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-2_safari_iPhone_14_portrait.png", + "browser_name": "webkit", + "viewport": "iPhone 14 (portrait)", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-2", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-2_chrome_Galaxy_S24_portrait.png", + "browser_name": "chrome", + "viewport": "Galaxy S24 (portrait)", + "mismatch_percentage": 0, + "status": "new-screenshot" + } + ], + "Row-3": [ + { + "screenshot_name": "Row-3", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-3_safari_1920x0.png", + "browser_name": "webkit", + "viewport": "1920", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-3", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-3_edge_1920x0.png", + "browser_name": "edge", + "viewport": "1920", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-3", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-3_firefox_1920x0.png", + "browser_name": "firefox", + "viewport": "1920", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-3", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-3_firefox_1366x0.png", + "browser_name": "firefox", + "viewport": "1366", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-3", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-3_edge_1028x0.png", + "browser_name": "edge", + "viewport": "1028", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-3", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-3_edge_1366x0.png", + "browser_name": "edge", + "viewport": "1366", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-3", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-3_chrome_1366x0.png", + "browser_name": "chrome", + "viewport": "1366", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-3", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-3_firefox_1028x0.png", + "browser_name": "firefox", + "viewport": "1028", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-3", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-3_chrome_Galaxy_S24_portrait.png", + "browser_name": "chrome", + "viewport": "Galaxy S24 (portrait)", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-3", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-3_safari_iPhone_14_portrait.png", + "browser_name": "webkit", + "viewport": "iPhone 14 (portrait)", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-3", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-3_safari_1366x0.png", + "browser_name": "webkit", + "viewport": "1366", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-3", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-3_chrome_1028x0.png", + "browser_name": "chrome", + "viewport": "1028", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-3", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-3_chrome_1920x0.png", + "browser_name": "chrome", + "viewport": "1920", + "mismatch_percentage": 0, + "status": "new-screenshot" + }, + { + "screenshot_name": "Row-3", + "captured_image": "https://automation-dotlapse-artefact.lambdatest.com/org-2196999/c7d3d53e-2d2b-4337-a3c6-e7e936518de0/0784c1bd-e6de-4013-aeb2-2a1515e14736/base-screenshots/Row-3_safari_1028x0.png", + "browser_name": "webkit", + "viewport": "1028", + "mismatch_percentage": 0, + "status": "new-screenshot" + } + ] + }, + "build": { + "build_id": "0784c1bd-e6de-4013-aeb2-2a1515e14736", + "baseline": false, + "build_type": "smartui-cli", + "build_status_ind": "completed", + "build_status": "pending-approval", + "commitId": "04bf779", + "branch": "smart-ui", + "commitAuthor": "Bhargav Garlapati", + "commitMessage": "Merge branch 'main' into smart-ui" + }, + "project": { + "project_id": "c7d3d53e-2d2b-4337-a3c6-e7e936518de0", + "name": "Smart-UI-Cypress-example", + "username": "bhargavk.garlapati", + "project_type": "smartui-cli", + "projectCategory": "web", + "platform": "cli" + } +} \ No newline at end of file diff --git a/smartui-web.json b/smartui-web.json new file mode 100644 index 0000000..a68368e --- /dev/null +++ b/smartui-web.json @@ -0,0 +1,33 @@ +{ + "web": { + "browsers": [ + "chrome", + "firefox", + "safari", + "edge" + ], + "viewports": [ + [ + 1920 + ], + [ + 1366 + ], + [ + 1028 + ] + ] + }, + "mobile": { + "devices": [ + "iPhone 14", + "Galaxy S24" + ], + "fullPage": true, + "orientation": "portrait" + }, + "waitForTimeout": 1000, + "enableJavaScript": false, + "allowedHostnames": [], + "smartIgnore": false +}