Skip to content

possibility to modify app settings through TestHelpers#29388

Merged
phil-davis merged 2 commits into
masterfrom
ui-tests-modify-app-settings
Nov 4, 2017
Merged

possibility to modify app settings through TestHelpers#29388
phil-davis merged 2 commits into
masterfrom
ui-tests-modify-app-settings

Conversation

@individual-it

Copy link
Copy Markdown
Member

Description

preparation for tests that need a specific set of preferences set. E.g. to test #29241

Motivation and Context

for some tests we need to change preferences of owncloud or specific apps

How Has This Been Tested?

run tests 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)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@phil-davis phil-davis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good now. This will share some code between integration and UI tests for setting capabilities.

@codecov

codecov Bot commented Oct 30, 2017

Copy link
Copy Markdown

Codecov Report

Merging #29388 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #29388   +/-   ##
=========================================
  Coverage     60.45%   60.45%           
  Complexity    17222    17222           
=========================================
  Files          1032     1032           
  Lines         57360    57360           
=========================================
  Hits          34677    34677           
  Misses        22683    22683

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7af32cd...04622df. Read the comment docs.

@individual-it
individual-it force-pushed the ui-tests-modify-app-settings branch from 1cc2d4d to 1d2b994 Compare October 30, 2017 15:55
@individual-it individual-it changed the title possibility to modify app settings from through TestHelpers possibility to modify app settings through TestHelpers Oct 31, 2017
@individual-it
individual-it force-pushed the ui-tests-modify-app-settings branch from 1d2b994 to 72e9a91 Compare October 31, 2017 08:59
@phil-davis

Copy link
Copy Markdown
Contributor

@SergioBertolinSG @davitol any comments on this?
It is another step in sharing more common methods between integration (API) and UI tests.

@individual-it
individual-it force-pushed the ui-tests-modify-app-settings branch 2 times, most recently from fc8d964 to 44d05e2 Compare November 1, 2017 10:35
} catch (ElementNotFoundException $e) {
PHPUnit_Framework_Assert::assertContains(
'could not find share-with-field',
'could not find shar',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@individual-it I guess you did not intend to modify this.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I did because it can be "could not find share-with-field" or "could not find sharing button in fileRow"

it gets a further edit in #29406

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

OK - I will look there for the final thing.

$fullUrl = $this->baseUrl . "v{$this->apiVersion}.php" . $url;
$client = new Client();
$options = [];
$fd = [];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What means fd? Can it have a more descriptive name?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

changed the name, made a comment and moved the data conversion to a more logical plan

@individual-it
individual-it force-pushed the ui-tests-modify-app-settings branch from 44d05e2 to 6754281 Compare November 3, 2017 08:55

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/send/sent

@individual-it
individual-it force-pushed the ui-tests-modify-app-settings branch from 6754281 to 3c6a62d Compare November 3, 2017 09:03
@phil-davis

Copy link
Copy Markdown
Contributor

@individual-it make the backport PR already so it can run CI over the weekend...

@individual-it

Copy link
Copy Markdown
Member Author

backport in #29443

@phil-davis
phil-davis force-pushed the ui-tests-modify-app-settings branch from dd543da to 04622df Compare November 4, 2017 01:19
@phil-davis

Copy link
Copy Markdown
Contributor

Rebased and resolved conflicts

@phil-davis
phil-davis merged commit 3ac3f18 into master Nov 4, 2017
@phil-davis
phil-davis deleted the ui-tests-modify-app-settings branch November 4, 2017 09:16
@phil-davis phil-davis mentioned this pull request Nov 7, 2017
9 tasks
@lock

lock Bot commented Aug 2, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants