From 43e737be9f31485a970945d40033ded98f835426 Mon Sep 17 00:00:00 2001 From: Bayheck Date: Fri, 10 May 2024 14:00:15 +0500 Subject: [PATCH] update: tests added --- .../regression/gh-8179/pages/index.html | 18 ++++++++++++++++++ .../regression/gh-8179/pages/success.html | 10 ++++++++++ .../fixtures/regression/gh-8179/test.js | 5 +++++ .../gh-8179/testcafe-fixtures/index.js | 10 ++++++++++ 4 files changed, 43 insertions(+) create mode 100644 test/functional/fixtures/regression/gh-8179/pages/index.html create mode 100644 test/functional/fixtures/regression/gh-8179/pages/success.html create mode 100644 test/functional/fixtures/regression/gh-8179/test.js create mode 100644 test/functional/fixtures/regression/gh-8179/testcafe-fixtures/index.js diff --git a/test/functional/fixtures/regression/gh-8179/pages/index.html b/test/functional/fixtures/regression/gh-8179/pages/index.html new file mode 100644 index 0000000000..8cfd96aad1 --- /dev/null +++ b/test/functional/fixtures/regression/gh-8179/pages/index.html @@ -0,0 +1,18 @@ + + + + + gh-8179 + + + +
+ This here link will take you to the + success page. +
+ + diff --git a/test/functional/fixtures/regression/gh-8179/pages/success.html b/test/functional/fixtures/regression/gh-8179/pages/success.html new file mode 100644 index 0000000000..417a8198a8 --- /dev/null +++ b/test/functional/fixtures/regression/gh-8179/pages/success.html @@ -0,0 +1,10 @@ + + + + + Title + + +

success

+ + diff --git a/test/functional/fixtures/regression/gh-8179/test.js b/test/functional/fixtures/regression/gh-8179/test.js new file mode 100644 index 0000000000..192a0cc79c --- /dev/null +++ b/test/functional/fixtures/regression/gh-8179/test.js @@ -0,0 +1,5 @@ +describe('[Regression](GH-8179)', function () { + it('Should click on a two-word link split over two lines', function () { + return runTests('testcafe-fixtures/index.js'); + }); +}); diff --git a/test/functional/fixtures/regression/gh-8179/testcafe-fixtures/index.js b/test/functional/fixtures/regression/gh-8179/testcafe-fixtures/index.js new file mode 100644 index 0000000000..25f0c603d3 --- /dev/null +++ b/test/functional/fixtures/regression/gh-8179/testcafe-fixtures/index.js @@ -0,0 +1,10 @@ +import { Selector } from 'testcafe'; + +fixture`GH-8179 - Should click on a two-word link split over two lines` + .page`http://localhost:3000/fixtures/regression/gh-8179/pages/index.html`; + +test('Click on a split link', async t => { + await t + .click('.main a') + .expect(Selector('h1').innerText).eql('success'); +});