-
Notifications
You must be signed in to change notification settings - Fork 676
Description
What is your Scenario?
We are using testcafe application to test the scenarios. But it keeps failing at the same step. We are running the testcafe using Azure pipelines and console. But its failing at both places.
Unless functionality is working in manual testing.
What is the Current behavior?
Failing
What is the Expected behavior?
Should be passed and working through out the functions
What is the public URL of the test page? (attach your complete example)
Dummy URL https://www.xx.com/sites/testcafe
What is your TestCafe test code?
Connect for this
Your complete configuration file
Yes
Your complete test report
- Chrome 145.0.0.0 / Windows Server 2019
TeamLink US - Validate admin actions
√ TeamLink US - Add Document workspace
√ TeamLink US - Add Meeting workspace
√ TeamLink US - Add Project workspace
TeamLink US - Create Meeting Pack
√ TeamLink US - Create Meeting Pack
TeamLink US - Create/Delete Meeting
√ TeamLink US - Delete Meeting item
√ TeamLink US - Create Meeting item
TeamLink US - Add/Remove file
AssertionError: expected false to be truthy
× TeamLink US - Upload file
-
AssertionError: expected false to be truthy
Browser: Chrome 145.0.0.0 / Windows Server 2019
170 |};
171 |
172 |// wait for selector with text
173 |const waitForSelectorWithText = async function (a, selectorValue, text) {
174 | await a175 | .expect(Selector(selectorValue).withText(text).with({ visibilityCheck: true }).exists).ok('',
{ timeout: 60000 })
176 | return 'OK';
177 |};
178 |
179 |// wait for selector with given attribute
180 |const waitForSelectorWithattr = async function (a, selectorValue, attrName, attrValue) {at Object. (F:\TestCafe\OnePlace\TestCafe\SmokeTest\Helper\CommonFunctions.js:175:96)
at asyncGeneratorStep (F:\TestCafe\OnePlace\TestCafe\SmokeTest\Helper\CommonFunctions.js:1:43)
at _next (F:\TestCafe\OnePlace\TestCafe\SmokeTest\Helper\CommonFunctions.js:1:43)
at (F:\TestCafe\OnePlace\TestCafe\SmokeTest\Helper\CommonFunctions.js:1:43)
at Object. (F:\TestCafe\OnePlace\TestCafe\SmokeTest\Helper\CommonFunctions.js:1:43)
at Object.waitForSelectorWithText [as WaitForSelectorWithText]
(F:\TestCafe\OnePlace\TestCafe\SmokeTest\Helper\CommonFunctions.js:173:30)
at
(F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:40:41)
at asyncGeneratorStep
(F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:1:37)
at _next (F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:1:37) -
A call to an async function is not awaited. Use the "await" keyword before actions, assertions or chains of
them to ensure that they run in the right sequence.Browser: Chrome 145.0.0.0 / Windows Server 2019
34 | .click(Selector('input').withAttribute('id',
/ctl\d+_PlaceHolderMain_UploadDocumentSection_ctl\d+_InputFile/))
35 | .setFilesToUpload(Selector('input').withAttribute('id',
/ctl\d+_PlaceHolderMain_UploadDocumentSection_ctl\d+_InputFile/), [filePath])
36 | .click(Selector('input').withAttribute('value', 'OK'))
37 | // .expect(Selector('span.ms-cui-ctl-largelabel').with({ visibilityCheck: true
}).exists).ok('', { timeout: 600000 })
38 | // .click(Selector('span.ms-cui-ctl-largelabel').withText('Cancel')).wait(5000)39 | .switchToMainWindow()
40 | .expect(await Helper.UI.WaitForSelectorWithText(await t, 'a', fileName)).eql('OK')
41 |
42 | // Restore timeouts
43 | // DestinationRequest.XHR_TIMEOUT = 2 * 60 * 1000;
44 | //DestinationRequest.TIMEOUT = 25 * 1000;at
(F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:39:18)
at asyncGeneratorStep
(F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:1:37)
at _next (F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:1:37)
√ TeamLink US - Create Category and assign document
√ TeamLink US - Edit file
TeamLink US - File Ribbon
√ TeamLink US - File Ribbon: Bulk and Large file upload
√ TeamLink US - File Ribbon: File upload
√ TeamLink US - File Ribbon: New folder
√ TeamLink US - File Ribbon: Edit
AssertionError: expected false to be truthy
× TeamLink US - File Ribbon: Check Out and Check In
-
AssertionError: expected false to be truthy
Browser: Chrome 145.0.0.0 / Windows Server 2019
163 |};
164 |
165 |// wait for selector
166 |const waitForSelector = async function (a, selectorValue) {
167 | await a168 | .expect(Selector(selectorValue).with({ visibilityCheck: true }).exists).ok('', { timeout:
60000 })
169 | return 'OK';
170 |};
171 |
172 |// wait for selector with text
173 |const waitForSelectorWithText = async function (a, selectorValue, text) {at Object. (F:\TestCafe\OnePlace\TestCafe\SmokeTest\Helper\CommonFunctions.js:168:81)
at asyncGeneratorStep (F:\TestCafe\OnePlace\TestCafe\SmokeTest\Helper\CommonFunctions.js:1:43)
at _next (F:\TestCafe\OnePlace\TestCafe\SmokeTest\Helper\CommonFunctions.js:1:43)
at (F:\TestCafe\OnePlace\TestCafe\SmokeTest\Helper\CommonFunctions.js:1:43)
at Object. (F:\TestCafe\OnePlace\TestCafe\SmokeTest\Helper\CommonFunctions.js:1:43)
at Object.waitForSelector [as WaitForSelector]
(F:\TestCafe\OnePlace\TestCafe\SmokeTest\Helper\CommonFunctions.js:166:22)
at
(F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:217:37)
at asyncGeneratorStep
(F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:1:37)
at _next (F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:1:37) -
A call to an async function is not awaited. Use the "await" keyword before actions, assertions or chains of
them to ensure that they run in the right sequence.Browser: Chrome 145.0.0.0 / Windows Server 2019
211 | try {
212 | await t
213 | .click(Selector('.ms-cellstyle.ms-vb2').nth(1))
214 | .click(Selector('#Ribbon\.Documents\.EditCheckout\.CheckOut-Medium
span').withText('Check Out'))
215 | .click(Selector('.ms-cellstyle.ms-vb2').nth(1))216 | .click(Selector('#Ribbon\.Documents\.EditCheckout\.CheckIn-Medium
span').withText('Check In'))
217 | .expect(await Helper.UI.WaitForSelector(await t, '.ms-dlgFrameContainer
.ms-dlgFrame')).eql('OK')
218 | .switchToIframe('.ms-dlgFrameContainer .ms-dlgFrame')
219 | .click('#CheckinOk')
220 | .switchToMainWindow()
221 | }at
(F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:216:14)
at asyncGeneratorStep
(F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:1:37)
at _next (F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:1:37)
at
(F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:1:37)
at
(F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:1:37)
at
(F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:225:2)
√ TeamLink US - File Ribbon: View Properties and Edit Properties
√ TeamLink US - File Ribbon: Version History
√ TeamLink US - File Ribbon: Download a Copy
√ TeamLink US - Delete file
TeamLink US - Usermenu Dropdown
√ TeamLink US - Usermenu Dropdown - Security Overview
√ TeamLink US - Usermenu Dropdown - Terms of Use
√ TeamLink US - Usermenu Dropdown - EditTime Zone
TeamLink US - Add-Remove Int/Ext user
√ TeamLink US - Search External user by email
√ TeamLink US - Search External user by username
√ TeamLink US - Search Internal user by email
√ TeamLink US - Search Internal user by username
√ TeamLink US - Add External user as Other Advisor
√ TeamLink US - Add Internal user as Colleague
√ TeamLink US - Remove External user
√ TeamLink US - Remove Internal user
√ TeamLink US - Create Permission Report
√ TeamLink US - Change History Report
TeamLink US - Site attestation
√ TeamLink US - Check site attestation
TeamLink US - Create Alert
√ TeamLink US - Create Alert
TeamLink US - Meeting Video
√ TeamLink US - Check Meeting Video
TeamLink US - Library Ribbon
√ TeamLink US - Library Ribbon - Create View
√ TeamLink US - Library Ribbon - Email a Link
√ TeamLink US - Library Ribbon - Library settings
√ TeamLink US - Library Ribbon - Modify View
√ TeamLink US - Library Ribbon - Create Column
√ TeamLink US - Library Ribbon - Most Popular item
√ TeamLink US - Library Ribbon - QuickEdit
2/41 failed (9m 54s)
Warnings (3):
TestCafe cannot interact with the 740 KB element because another
element obstructs it.
When something overlaps the action target, TestCafe performs the action with the topmost element at the original
target's location.
The following element with a greater z-order replaced the original action target:
fil...
Review your code to prevent this behavior.
210 |test('TeamLink US - File Ribbon: Check Out and Check In', async t => {
211 | try {
212 | await t
213 | .click(Selector('.ms-cellstyle.ms-vb2').nth(1))
214 | .click(Selector('#Ribbon\\.Documents\\.EditCheckout\\.CheckOut-Medium span').withText('Check
Out'))
215 | .click(Selector('.ms-cellstyle.ms-vb2').nth(1))
216 | .click(Selector('#Ribbon\.Documents\.EditCheckout\.CheckIn-Medium span').withText('Check In'))
217 | .expect(await Helper.UI.WaitForSelector(await t, '.ms-dlgFrameContainer .ms-dlgFrame')).eql('OK')
218 | .switchToIframe('.ms-dlgFrameContainer .ms-dlgFrame')
219 | .click('#CheckinOk')
220 | .switchToMainWindow()
at <anonymous>
(F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:215:14)
at asyncGeneratorStep
(F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:1:37)
at _next (F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:1:37)
at (F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:1:37)
at (F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:1:37)
at (F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:225:2)
TestCafe cannot interact with the Check In element
because another element obstructs it.
When something overlaps the action target, TestCafe performs the action with the topmost element at the original
target's location.
The following element with a greater z-order replaced the original action target:
Review your code to prevent this behavior.
211 | try {
212 | await t
213 | .click(Selector('.ms-cellstyle.ms-vb2').nth(1))
214 | .click(Selector('#Ribbon\\.Documents\\.EditCheckout\\.CheckOut-Medium span').withText('Check
Out'))
215 | .click(Selector('.ms-cellstyle.ms-vb2').nth(1))
216 | .click(Selector('#Ribbon\.Documents\.EditCheckout\.CheckIn-Medium span').withText('Check In'))
217 | .expect(await Helper.UI.WaitForSelector(await t, '.ms-dlgFrameContainer .ms-dlgFrame')).eql('OK')
218 | .switchToIframe('.ms-dlgFrameContainer .ms-dlgFrame')
219 | .click('#CheckinOk')
220 | .switchToMainWindow()
221 | }
at <anonymous>
(F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:216:14)
at asyncGeneratorStep
(F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:1:37)
at _next (F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:1:37)
at (F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:1:37)
at (F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:1:37)
at (F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_3_FileOperation_CategoryField.js:225:2)
TestCafe cannot interact with the Set ale... element
because another element obstructs it.
When something overlaps the action target, TestCafe performs the action with the topmost element at the original
target's location.
The following element with a greater z-order replaced the original action target: .
Review your code to prevent this behavior.
16 | await t
17 | .navigateTo(Helper.Config.env_URL + Helper.Config.teamLinkUS + '/TestCafeD')
18 | .click(Selector('#WebPartTitleWPQ2 h2').withText('Documents'))
19 | .click(Selector('#Ribbon\\.Library-title span').withText('LIBRARY'))
20 | .click(Selector('#Ribbon\\.Library\\.Share\\.AlertMe-Large span').withText('Alert'))
21 | .click(Selector('.ms-cui-ctl-mediumlabel').withText('Set alert on this library'))
22 | .switchToIframe('.ms-dlgFrameContainer iframe')
23 | //.hover(Selector('.ms-entity-resolved').withText('oneplacetest1'))
24 | .click(Selector('input').withAttribute('id',
/ctl\d+_PlaceHolderMain_ctl\d+_RptControls_BtnCreateAlerttop/))
25 | .switchToMainWindow()
26 | }
at <anonymous> (F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_7_CreateAlert.js:21:14)
at asyncGeneratorStep (F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_7_CreateAlert.js:1:37)
at _next (F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_7_CreateAlert.js:1:37)
at <anonymous> (F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_7_CreateAlert.js:1:37)
at <anonymous> (F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_7_CreateAlert.js:1:37)
at <anonymous> (F:\TestCafe\OnePlace\TestCafe\SmokeTest\2.xLink\TeamLinkUS_7_CreateAlert.js:30:2)
Screenshots
No response
Steps to Reproduce
1.Please connect once to check this
2.
3.
TestCafe version
3.7.4
Node.js version
v22.16.0
Command-line arguments
testcafe chrome SmokeTest -e --disable-http2
Browser name(s) and version(s)
Edge
Platform(s) and version(s)
Windows
Other
No response