Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 11528bc

Browse files
authored
fix: test-fix-back-button (#316)
fix: test-fix-back-button
1 parent 9b5645e commit 11528bc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/test/specs/BackBrowserSpec.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,15 @@ import { expect } from 'chai';
22
import { BrowserUtils, Reporter } from '../..';
33
import { describeCommon, sampleAppUrl } from '../TestHelper';
44

5-
const navigationButton: string = "//button[@data-test='navigate-to-cloudinary']";
6-
75
describeCommon('BackSpec', () => {
86
it('back browser', async () => {
97
await Reporter.step('Click navigation button');
10-
await BrowserUtils.click(navigationButton);
8+
await BrowserUtils.url('https://cloudinary.com/');
119

1210
await Reporter.step('Click back button');
1311
await BrowserUtils.back();
1412

1513
await Reporter.step(`Validate url is ${sampleAppUrl}`);
16-
expect(await browser.getUrl()).to.equal(sampleAppUrl);
14+
expect(await BrowserUtils.getUrl()).to.equal(sampleAppUrl);
1715
});
1816
});

0 commit comments

Comments
 (0)