testcafe: Roles do not work (show blank page between tests and fail) on M1 Airbook

What is your Scenario?

I’m attempting to run tests that use Roles on an M1 airbook; 2020; Big Sur 11.2

What is the Current behavior?

Tests login then get stuck on a blank page and fail further tests in the fixture.

Occurs on latest chrome (96.0.4664.55 ) and safari (14.0.3 ) Does not occur on coworkers Windows machine, nor our linux pipeline

What is the Expected behavior?

Should work. Running the same code without Roles work just fine.

What is your public website URL? (or attach your complete example)

See code…

What is your TestCafe test code?

import { Role, Selector as $, t } from 'testcafe';

const user = Role('http://automationpractice.com/index.php?controller=authentication', async t => {
  await t
    .typeText($('#email'), 'roles@fail.test')
    .typeText($('#passwd'), 'test123')
    .click($('#SubmitLogin'))
});

fixture `MyFixture`
  .beforeEach(async t => {
    await t.useRole(user)
  })

test('Test1', async t => {
  await t
    .click($('.logout'))
    .expect($('.logout').exists).notOk()
})

test('Test2', async t => {
  await t
    .click($('.logout'))
    .expect($('.logout').exists).notOk()
})

Your complete configuration file

No response

Your complete test report

No response

Screenshots

boog

Steps to Reproduce

TestCafe version

1.17.1

Node.js version

v14.17.4

Command-line arguments

testcafe chrome test.js

Browser name(s) and version(s)

No response

Platform(s) and version(s)

No response

Other

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 27 (6 by maintainers)

Most upvoted comments

Just checking the status of this ticket, as this is also affecting.

Hello @qualityshepherd ,

Thank you for the updated example. We will revisit this issue priority.

Hi,

Thank you for your input. We have reproduced the problem. Please stay tuned.