@ -2,102 +2,68 @@ const {test, expect} =require('@playwright/test')
import { LoginPage } from '../pages/LoginPage' ;
import { LoginPage } from '../pages/LoginPage' ;
import { AppConfig } from '../pages/AppConfig' ;
import { AppConfig } from '../pages/AppConfig' ;
test ( 'AppConfig button is working or not' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
await page . waitForTimeout ( 5000 ) ;
const config = new AppConfig ( page ) ;
await config . openAppConf ( ) ;
await page . waitForTimeout ( 3000 )
await expect ( await page . locator ( config . notificationSoundLoop ) ) . toBeVisible ( ) ;
} )
test . beforeEach ( async ( { page } ) => {
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
} ) ;
test . skip ( 'complete AppConfig page to check API' , async ( { page , request } ) => {
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
await page . waitForTimeout ( 5000 ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'UAE dirham (د.إ;)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
//Merchant Verify that the selected currency symbol is displayed correctly(In Regression Suite)
test ( 'TC-AC-02: Select as Indonesian rupiah (Rp)' , async ( { page } ) => {
await page . close ( ) ;
//Navigate to App Config Page
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
//Assertions
const locator = page . locator ( "//select[@id='oba_appconfig_select_currency']" ) ;
await expect ( locator ) . toContainText ( 'Indonesian rupiah (Rp)' ) ;
await page . waitForTimeout ( 1000 ) ;
await page . close ( ) ;
} ) ;
const response = await request . get ( 'https://dev.orderbookings.com/api/config/919480707707?merchantCode=919480707707' )
console . log ( await response . json ( ) )
const res = await response . json ( ) ;
//(In Regression Suite)
test ( 'TC-AC-03: AppConfig button is working or not' , async ( { page } ) => {
//Navigate to Login Page
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
await login . loginWithCrtPassword ( ) ;
await config . openAppConf ( ) ;
expect . soft ( config . merchantCode ) . toContain ( res . data . merchantCode ) ;
const textBoxValue = await page . locator ( config . calltoactionAPI ) . inputValue ( ) ;
expect . soft ( textBoxValue ) . toContain ( res . data . call_to_action ) ;
//const currencyValue=await page.locator(config.currencyAPI).inputValue();
// expect.soft(currencyValue).toContain(res.data.currency_code);
const notificationLoop = await page . locator ( config . notificationSoundLoopAPI ) . inputValue ( ) ;
expect . soft ( notificationLoop ) . toContain ( ( res . data . notification_sound_loop ) . toString ( ) ) ;
const cancellationTillResponse = await page . locator ( config . cancellationTillAPI ) . inputValue ( ) ;
expect . soft ( cancellationTillResponse ) . toContain ( ( res . data . cancellation_till ) . toString ( ) ) ;
const minimumCartPrizeResponse = await page . locator ( config . minimumCartPrizeAPI ) . inputValue ( ) ;
expect . soft ( minimumCartPrizeResponse ) . toContain ( ( res . data . minimum_cart_price ) . toString ( ) ) ;
const deliveryChargeResponse = await page . locator ( config . deliveryChargeAPI ) . inputValue ( ) ;
expect . soft ( deliveryChargeResponse ) . toContain ( ( res . data . delivery_charge ) . toString ( ) ) ;
expect . soft ( config . areaSelection ) . toContain ( res . data . area_type ) ;
} )
await page . waitForTimeout ( 5000 ) ;
//Navigate to App Config Oage
const config = new AppConfig ( page ) ;
await config . openAppConf ( ) ;
/*-------------------------------------------------Currency Check-----------------------------------*/
await page . waitForTimeout ( 3000 )
//Merchant Verify that the selected currency symbol is displayed correctly
test ( 'Select as Indonesian rupiah (Rp)' , async ( { page } ) => {
//Assertions
await expect ( await page . locator ( config . notificationSoundLoop ) ) . toBeVisible ( ) ;
} )
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
const locator = page . locator ( "//select[@id='oba_appconfig_select_currency']" ) ;
await expect ( locator ) . toContainText ( 'Indonesian rupiah (Rp)' ) ;
await page . waitForTimeout ( 1000 ) ;
await page . close ( ) ;
} ) ;
/*-----------------------------Call to Action------------------------------------------------*/
/*-----------------------------Call to Action------------------------------------------------*/
//Call To Action for empty
//Call To Action for empty (In Regression Suite)
test . skip ( 'Action call for empty ' , async ( { page } ) => {
test . skip ( 'Action call for empty ' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '' , 'City' , 'Tamil Nadu' ) ;
// const locator = page.getByRole('Action Call');
// await expect(locator).toBeFocused();
// await page.waitForTimeout(3000);
await page . close ( ) ;
await page . close ( ) ;
} ) ;
} ) ;
//Call To Action contains numbers starting with 23
//Call To Action contains numbers starting with 23
test ( 'Action contains numbers starting with 23 ' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
test ( 'TC-AC-05: Action contains numbers starting with 23 ' , async ( { page } ) => {
//Navigate to config Page
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '2355456737' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '2355456737' , 'City' , 'Tamil Nadu' ) ;
//Assertions
const locator = page . locator ( "//input[@id='oba_appconfig_call_to_action']" ) ;
const locator = page . locator ( "//input[@id='oba_appconfig_call_to_action']" ) ;
await expect ( locator ) . toBeFocused ( ) ;
await expect ( locator ) . toBeFocused ( ) ;
await expect ( locator ) . toBeVisible ( ) ;
await expect ( locator ) . toBeVisible ( ) ;
@ -106,12 +72,13 @@ test.skip('complete AppConfig page to check API',async ({page,request})=>{
} ) ;
} ) ;
//Call To Action for Letters
//Call To Action for Letters
test ( 'Call To Action for Letters' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
test ( 'TC-AC-06: Call To Action for Letters' , async ( { page } ) => {
//Navigate to Config Page
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , 'AFHGDGJNBVJ' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , 'AFHGDGJNBVJ' , 'City' , 'Tamil Nadu' ) ;
//Assertions
const locator = page . locator ( "//input[@id='oba_appconfig_call_to_action']" ) ;
const locator = page . locator ( "//input[@id='oba_appconfig_call_to_action']" ) ;
await expect ( locator ) . toBeFocused ( ) ;
await expect ( locator ) . toBeFocused ( ) ;
await expect ( locator ) . toBeVisible ( ) ;
await expect ( locator ) . toBeVisible ( ) ;
@ -120,12 +87,13 @@ test.skip('complete AppConfig page to check API',async ({page,request})=>{
} ) ;
} ) ;
//Call to Action only 9 numbers
//Call to Action only 9 numbers
test ( 'Call to Action only 9 numbers' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
test ( 'TC-AC-07: Call to Action only 9 numbers' , async ( { page } ) => {
//Navigate to config page
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '956456737' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '956456737' , 'City' , 'Tamil Nadu' ) ;
//Assertions
const locator = page . locator ( "//input[@id='oba_appconfig_call_to_action']" ) ;
const locator = page . locator ( "//input[@id='oba_appconfig_call_to_action']" ) ;
await expect ( locator ) . toBeFocused ( ) ;
await expect ( locator ) . toBeFocused ( ) ;
await expect ( locator ) . toBeVisible ( ) ;
await expect ( locator ) . toBeVisible ( ) ;
@ -134,12 +102,13 @@ test.skip('complete AppConfig page to check API',async ({page,request})=>{
} )
} )
//call to action using specail chars
//call to action using specail chars
test ( 'call to action using specail characters' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
test ( 'TC-AC-08: call to action using special characters' , async ( { page } ) => {
//Navigate to App Configuration Page
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '95#5456737' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '95#5456737' , 'City' , 'Tamil Nadu' ) ;
//Assertions
const locator = page . locator ( "//input[@id='oba_appconfig_call_to_action']" ) ;
const locator = page . locator ( "//input[@id='oba_appconfig_call_to_action']" ) ;
await expect ( locator ) . toBeFocused ( ) ;
await expect ( locator ) . toBeFocused ( ) ;
await expect ( locator ) . toBeVisible ( ) ;
await expect ( locator ) . toBeVisible ( ) ;
@ -148,12 +117,13 @@ test.skip('complete AppConfig page to check API',async ({page,request})=>{
} )
} )
//call to Action using Space
//call to Action using Space
test ( 'space for action call' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
test ( 'TC-AC-09: space for action call' , async ( { page } ) => {
//Navigate to App Configuration Page
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , ' 965 526 ' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , ' 965 526 ' , 'City' , 'Tamil Nadu' ) ;
//Assertions
const locator = page . locator ( "//input[@id='oba_appconfig_call_to_action']" ) ;
const locator = page . locator ( "//input[@id='oba_appconfig_call_to_action']" ) ;
await expect ( locator ) . toBeFocused ( ) ;
await expect ( locator ) . toBeFocused ( ) ;
await expect ( locator ) . toBeVisible ( ) ;
await expect ( locator ) . toBeVisible ( ) ;
@ -162,12 +132,13 @@ test.skip('complete AppConfig page to check API',async ({page,request})=>{
} ) ;
} ) ;
//Merchant add International Number
//Merchant add International Number
test ( 'International Number' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
test ( 'TC-AC-10: International Number' , async ( { page } ) => {
//Navigate to App Configuration Page
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '456236216514' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '456236216514' , 'City' , 'Tamil Nadu' ) ;
//Assertions
const locator = page . locator ( "//input[@id='oba_appconfig_call_to_action']" ) ;
const locator = page . locator ( "//input[@id='oba_appconfig_call_to_action']" ) ;
await expect ( locator ) . toBeFocused ( ) ;
await expect ( locator ) . toBeFocused ( ) ;
await expect ( locator ) . toBeVisible ( ) ;
await expect ( locator ) . toBeVisible ( ) ;
@ -176,25 +147,27 @@ test.skip('complete AppConfig page to check API',async ({page,request})=>{
} )
} )
test ( 'Enter Alphabet' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
test ( 'TC-AC-11: Enter Alphabet' , async ( { page } ) => {
//Navigate to App Configuration Page
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , 'hjgfdjsfjk' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , 'hjgfdjsfjk' , 'City' , 'Tamil Nadu' ) ;
//Assertions
const locator = page . locator ( "//input[@id='oba_appconfig_call_to_action']" ) ;
const locator = page . locator ( "//input[@id='oba_appconfig_call_to_action']" ) ;
await expect ( locator ) . toBeFocused ( ) ;
await expect ( locator ) . toBeFocused ( ) ;
await expect ( locator ) . toBeVisible ( ) ;
await expect ( locator ) . toBeVisible ( ) ;
await page . waitForTimeout ( 3000 ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
await page . close ( ) ;
} )
} )
test ( '11 digits' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
test ( 'TC-AC-12: 11 digits' , async ( { page } ) => {
//Navigate to App Configuration Page
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '96548712396' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '96548712396' , 'City' , 'Tamil Nadu' ) ;
//Assertions
const locator = page . locator ( "//input[@id='oba_appconfig_call_to_action']" ) ;
const locator = page . locator ( "//input[@id='oba_appconfig_call_to_action']" ) ;
await expect ( locator ) . toBeFocused ( ) ;
await expect ( locator ) . toBeFocused ( ) ;
await expect ( locator ) . toBeVisible ( ) ;
await expect ( locator ) . toBeVisible ( ) ;
@ -202,39 +175,40 @@ test.skip('complete AppConfig page to check API',async ({page,request})=>{
await page . close ( ) ;
await page . close ( ) ;
} )
} )
test . skip ( '10 digits' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
test ( 'TC-AC-16: 10 digits' , async ( { page } ) => {
//Navigate to App Configuration Page
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
const actionNumber = await page . locator ( ( "//input[@id='oba_appconfig_call_to_action']" ) . textContent ( ) ) ;
expect . soft ( actionNumber ) . toContain ( '9565456737' ) ;
//Assertions
const PhoneNumber = await page . locator ( "//input[@id='oba_appconfig_call_to_action']" ) . inputValue ( ) ;
expect . soft ( PhoneNumber ) . toContain ( ( '9565456737' ) . toString ( ) ) ;
await page . close ( ) ;
await page . close ( ) ;
} )
} )
//Merchant add valid details
//Merchant add valid details
test . skip ( 'Valid Number starts with 6,7,8,9' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
test ( 'TC-AC-17: Valid Number starts with 6,7,8,9' , async ( { page } ) => {
//Navigate to App Configuration Page
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '6565456737' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '6565456737' , 'City' , 'Tamil Nadu' ) ;
const actionNumber = await page . locator ( ( "//input[@id='oba_appconfig_call_to_action']" ) . textContent ( ) ) ;
expect . soft ( actionNumber ) . toContain ( '9565456737' ) ;
//Assertions
const actionNumber = await page . locator ( "//input[@id='oba_appconfig_call_to_action']" ) . inputValue ( ) ;
expect . soft ( actionNumber ) . toContain ( ( '6565456737' ) . toString ( ) ) ;
await page . waitForTimeout ( 2000 ) ;
await page . close ( ) ;
await page . close ( ) ;
} )
} )
//Unable to assert
/*-----------------------------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------*/
@ -244,150 +218,162 @@ test.skip('complete AppConfig page to check API',async ({page,request})=>{
const login = new LoginPage ( page ) ;
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
await login . loginWithCrtPassword ( ) ;
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
const locator = page . locator ( "//option[@value='CITY']" ) ;
const locator = page . locator ( "//option[@value='CITY']" ) ;
await expect ( locator ) . toBeVisible ( ) ;
await expect ( locator ) . toBeVisible ( ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
} ) ;
} ) ;
//user select State
//user select State
test ( 'select State' , async ( { page } ) => {
test . skip ( 'select State' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
await login . loginWithCrtPassword ( ) ;
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
// const App = new Appconfig(page);
//await App.Appconfigdetails('Indonesian rupiah (Rp)','5','800','20','9480606707','State','Bijapur@-12');
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
} ) ;
} ) ;
//
//user select City
//user select City
test . skip ( 'select City' , async ( { page } ) => {
test . skip ( 'select City' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
await login . loginWithCrtPassword ( ) ;
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
const locator = page . locator ( ( "//option[@value='CITY']" ) . inputValue ( ) ) ;
const locator = page . locator ( ( "//option[@value='CITY']" ) . inputValue ( ) ) ;
await expect ( locator ) . toBeVisible ( ) ;
await expect ( locator ) . toBeVisible ( ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
} ) ;
} ) ;
//user select Pincode
//user select Pincode
test ( 'select Pincode' , async ( { page } ) => {
test . skip ( 'select Pincode' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
await login . loginWithCrtPassword ( ) ;
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
} ) ;
} ) ;
//user select Landmark
//user select Landmark
test ( 'select Landmark' , async ( { page } ) => {
test . skip ( 'select Landmark' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
await login . loginWithCrtPassword ( ) ;
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
} ) ;
} ) ;
//user select None
//user select None
test ( 'select None' , async ( { page } ) => {
test . skip ( 'select None' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
await login . loginWithCrtPassword ( ) ;
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
} ) ;
} ) ;
//user enter the less than cart value
//user enter the less than cart value
test ( 'less than cart value ' , async ( { page } ) => {
test . skip ( 'less than cart value ' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
await login . loginWithCrtPassword ( ) ;
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
} ) ;
} ) ;
//user enter the cart value equal to the value
//user enter the cart value equal to the value
test ( 'cart value equal to the value' , async ( { page } ) => {
test . skip ( 'cart value equal to the value' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
await login . loginWithCrtPassword ( ) ;
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
} ) ;
} ) ;
//user enter cart zero
//user enter cart zero
test ( 'enter cart zero ' , async ( { page } ) => {
test . skip ( 'enter cart zero ' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
await login . loginWithCrtPassword ( ) ;
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
} ) ;
} ) ;
//user enter the delivary charges as zero
//user enter the delivary charges as zero
test ( 'enter the delivary charges as zero' , async ( { page } ) => {
test . skip ( 'enter the delivary charges as zero' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
await login . loginWithCrtPassword ( ) ;
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
} ) ;
} ) ;
//user enter the Delivary chrages as more than given.
//user enter the Delivary chrages as more than given.
test ( 'Delivary chrages as more than given.' , async ( { page } ) => {
test . skip ( 'Delivary chrages as more than given.' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
await login . loginWithCrtPassword ( ) ;
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
} ) ;
} ) ;
//user enter the less cart value and add delivary charg to
//user enter the less cart value and add delivary charg to
@ -395,12 +381,13 @@ test.skip('complete AppConfig page to check API',async ({page,request})=>{
const login = new LoginPage ( page ) ;
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
await login . loginWithCrtPassword ( ) ;
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
} ) ;
} ) ;
//user enter the less than cart value
//user enter the less than cart value
@ -409,45 +396,49 @@ test.skip('complete AppConfig page to check API',async ({page,request})=>{
const login = new LoginPage ( page ) ;
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
await login . loginWithCrtPassword ( ) ;
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
} ) ;
} ) ;
//user enter the zero as cart value and delivary charge
//user enter the zero as cart value and delivary charge
test ( 'enter the zero as cart value and delivary charge' , async ( { page } ) => {
test . skip ( 'enter the zero as cart value and delivary charge' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
await login . loginWithCrtPassword ( ) ;
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '0' , '0' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '0' , '0' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
} ) ;
} ) ;
//user enter sound loop as 0
//user enter sound loop as 0
test ( ' enter sound loop as 0' , async ( { page } ) => {
test . skip ( ' enter sound loop as 0' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
await login . loginWithCrtPassword ( ) ;
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '0' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '0' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
} ) ;
} ) ;
//user enter sound loop as 100
//user enter sound loop as 100
test ( ' enter sound loop as 100' , async ( { page } ) => {
test . skip ( ' enter sound loop as 100' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
await login . loginWithCrtPassword ( ) ;
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '100' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '100' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
@ -456,11 +447,12 @@ test.skip('complete AppConfig page to check API',async ({page,request})=>{
} ) ;
} ) ;
//user enter sound loop as 10
//user enter sound loop as 10
test ( ' enter sound loop as 10' , async ( { page } ) => {
test . skip ( ' enter sound loop as 10' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
await login . loginWithCrtPassword ( ) ;
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '10' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '10' , '5' , '400' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
@ -469,16 +461,17 @@ test.skip('complete AppConfig page to check API',async ({page,request})=>{
} ) ;
} ) ;
//user enter cart value to max 999999
//user enter cart value to max 999999
test ( 'enter cart value to max 999999' , async ( { page } ) => {
test . skip ( 'enter cart value to max 999999' , async ( { page } ) => {
const login = new LoginPage ( page ) ;
const login = new LoginPage ( page ) ;
await login . gotoLoginPage ( ) ;
await login . gotoLoginPage ( ) ;
await login . loginWithCrtPassword ( ) ;
await login . loginWithCrtPassword ( ) ;
const config = new AppConfig ( page ) ;
const config = new AppConfig ( page ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '999999' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await config . functionalityAppConfig ( 'Indonesian rupiah (Rp)' , '7' , '5' , '999999' , '35' , '9565456737' , 'City' , 'Tamil Nadu' ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
await page . waitForTimeout ( 3000 ) ;
await page . close ( ) ;
} ) ;
} ) ;