UNPKG

tlc-core-automation-framework-v3-wdio-v9

Version:

Background: - We are following multi-layer automation framework architecture using webdriver.io + cucumber + typescript This core framework has been implemented with generic utility functions and cucumber steps, which can be easily consumed by another fra

18 lines (15 loc) 778 B
import {describe} from "mocha"; import {StringHelper} from "../e2e/helpers/common-helpers/string-helper"; import {expect} from "chai"; describe('Check Common-helpers > string-helpers.ts > generateCustomFrameworkNames()', () => { it('should generate correct framework names', () => { const modifiedName = StringHelper.generateCustomFrameworkNames(' sample Framework Names '); expect(modifiedName).to.equal('sample-framework-names'); }) }) describe('Check Common-helpers > string-helpers.ts > replaceLineBreaks()', () => { it('should handle line breaks correctly', () => { const modifiedName = StringHelper.replaceLineBreaks('This is line 1\nThis is line 2'); expect(modifiedName).to.equal('This is line 1 This is line 2'); }) })