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

[full-ci] [tests-only] Fixed failure in lock test - #10886

Merged
grgprarup merged 3 commits into
masterfrom
fix/app-provider-test
May 8, 2024
Merged

grgprarup merged 3 commits into
masterfrom
fix/app-provider-test

Conversation

@grgprarup

@grgprarup grgprarup commented May 8, 2024 •

Copy link
Copy Markdown
Contributor

Description

The file is opened with Collabora and then step is checked with OnlyOffice so the selector of OnlyOffice is not found in collabora editor.
The failure arose after this PR #10873 .

Related Issue

Motivation and Context

How Has This Been Tested?

  • Locally
  • 🤖

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests
  • Documentation
  • Maintenance (e.g. dependency updates or tooling)

@grgprarup grgprarup self-assigned this May 8, 2024
@grgprarup
grgprarup requested review from S-Panta, saw-jan and v-scharf May 8, 2024 04:20
@saw-jan

saw-jan commented May 8, 2024

Copy link
Copy Markdown
Member

The failure arose after this PR #10873 .

Ah, PR doesn't have full-ci in the title so we didn't catch it.

@grgprarup

Copy link
Copy Markdown
Contributor Author

The failure is due to incomplete implementation of step And "Alice" should be able to manage share with user "Brian", the sidebar panel of share is not open.

Then(
  /^"([^"]*)" (should|should not) be able to manage share with user "([^"]*)"$/,
  async function (
    this: World,
    stepUser: any,
    actionType: string,
    recipient: string
  ): Promise<void> {
    const { page } = this.actorsEnvironment.getActor({ key: stepUser })
    const shareObject = new objects.applicationFiles.Share({ page })
    const changeRole = shareObject.changeRoleLocator(
      this.usersEnvironment.getUser({ key: recipient })
    )
    const changeShare = shareObject.changeShareLocator(
      this.usersEnvironment.getUser({ key: recipient })
    )

    if (actionType === 'should') {
      await expect(changeRole).not.toBeDisabled()
      await expect(changeShare).not.toBeDisabled()
    } else {
      await expect(changeRole).toBeDisabled()
      await expect(changeShare).toBeDisabled()
    }
  }
)

@saw-jan saw-jan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@sonarqubecloud

sonarqubecloud Bot commented May 8, 2024

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@grgprarup
grgprarup merged commit ae71fa0 into master May 8, 2024
@delete-merged-branch
delete-merged-branch Bot deleted the fix/app-provider-test branch May 8, 2024 08:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App provider tests failing in nightly while waiting for locator

2 participants