Skip to content

Test removing email addresses from public link share - #32831

Merged
phil-davis merged 1 commit into
owncloud:masterfrom
skshetry:test-email-remove
Sep 25, 2018
Merged

phil-davis merged 1 commit into
owncloud:masterfrom
skshetry:test-email-remove

Conversation

@skshetry

@skshetry skshetry commented Sep 25, 2018 •

Copy link
Copy Markdown
Contributor

Description

This adds a test for removing email addresses from the email input box of the public link share dialog.

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

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

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • Backport (if applicable set "backport-request" label and remove when the backport was done)

@skshetry skshetry changed the title Test removing email addresses from public link share [WIP] Test removing email addresses from public link share Sep 25, 2018
@codecov

codecov Bot commented Sep 25, 2018 •

Copy link
Copy Markdown

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff            @@
##             master   #32831   +/-   ##
=========================================
  Coverage     64.12%   64.12%           
  Complexity    18684    18684           
=========================================
  Files          1177     1177           
  Lines         70309    70309           
  Branches       1270     1270           
=========================================
  Hits          45089    45089           
  Misses        24850    24850           
  Partials        370      370
Flag Coverage Δ Complexity Δ
#javascript 52.89% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 65.4% <ø> (ø) 18684 <ø> (ø) ⬇️

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 ae53049...723e157. Read the comment docs.

@skshetry skshetry changed the title [WIP] Test removing email addresses from public link share Test removing email addresses from public link share Sep 25, 2018
}

/**
* @When creates the public link using the webUI

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.

When the user creates...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@phil-davis I added this. Please review.

);
}
$closeButton->click();
\sleep(1); // wait for a while to close the popup

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.

Do we really need to sleep?
With the new loops in the email checking, I guess that this will work without a sleep?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

For other tests (in future that might run after closing the popup dialog), it might require them to close the popup. Si, i think we need some way to wait for the popup to disappear. This tests however doesn't use that however. It's kind of a future proofing.

Should i check that the popup is not there? That should remove the sleep.

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.

Yes, a small loop or similar that checks if the popup is gone (not visible or something).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I removed the sleep. Please review again

@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. See comments.
We want to avoid putting sleep() in real code, if we can.

@skshetry

Copy link
Copy Markdown
Contributor Author

Backport on #32841

@skshetry
skshetry deleted the test-email-remove branch September 26, 2018 03:43
@lock lock Bot locked as resolved and limited conversation to collaborators Sep 26, 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.

Automated UI tests for email-address style fields

2 participants