Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
avneet-raj committed Jan 10, 2024
1 parent 121c22e commit bef70c0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// <reference types="Cypress" />

import { AdminBarCheck, DarkBGCheck, LightBGChcek } from "../wp-module-support/siteGenBG.cy";
import { AdminBarCheck, DarkBGCheck, LightBGChcek, OptionsDetails } from "../wp-module-support/siteGen.cy";

describe( 'SiteGen Fork Step', function () {
before( () => {
Expand Down Expand Up @@ -31,19 +31,6 @@ describe( 'SiteGen Fork Step', function () {
cy.get( '.nfd-onboarding-step__heading__subtitle' ).should('be.visible');
} );

const OptionsDetails = (className,textValue,optionsValue) => {
cy.get(className)
.eq(optionsValue)
.find('.nfd-onboarding-sitegen-options__container__heading__title')
.invoke( 'text' )
.should('contain', textValue);
if(optionsValue!=2){ // Excluding the Last Option as it takes to new tab, just validating the title text
cy.get(className)
.eq(optionsValue)
.click();
};
};

it( 'Check for selection of different container options', () => {
let options = 0;
const className = '.nfd-onboarding-sitegen-options__container__options';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,16 @@ export const LightBGChcek = () => {
.click();
cy.get('.nfd-onboarding-sitegen-dark').should('be.visible');
};

export const OptionsDetails = (className,textValue,optionsValue) => {
cy.get(className)
.eq(optionsValue)
.find('.nfd-onboarding-sitegen-options__container__heading__title')
.invoke( 'text' )
.should('contain', textValue);
if(optionsValue!=2){ // Excluding the Last Option as it takes to new tab, just validating the title text
cy.get(className)
.eq(optionsValue)
.click();
};
};

0 comments on commit bef70c0

Please sign in to comment.