diff options
author | Christopher Ng <chrng8@gmail.com> | 2022-07-30 00:32:16 +0000 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2022-09-02 02:22:57 +0000 |
commit | f44d2586b174991002d210efa9568e0b96d92304 (patch) | |
tree | 66ad3d1781cf45fc5a04a3c6303c1d31905aeb1b /build/integration/features/bootstrap | |
parent | f167fe0ceb7179ef8ae705bb47c44e596196b5d8 (diff) | |
download | nextcloud-server-f44d2586b174991002d210efa9568e0b96d92304.tar.gz nextcloud-server-f44d2586b174991002d210efa9568e0b96d92304.zip |
Remake profile picture saving with Vue
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'build/integration/features/bootstrap')
-rw-r--r-- | build/integration/features/bootstrap/Avatar.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/build/integration/features/bootstrap/Avatar.php b/build/integration/features/bootstrap/Avatar.php index 6e59beeb7de..6f8b98ad605 100644 --- a/build/integration/features/bootstrap/Avatar.php +++ b/build/integration/features/bootstrap/Avatar.php @@ -174,11 +174,20 @@ trait Avatar { public function lastAvatarIsASquareOfSize(string $size) { [$width, $height] = getimagesizefromstring($this->lastAvatar); - Assert::assertEquals($width, $height, 'Avatar is not a square'); + Assert::assertEquals($width, $height, 'Expected avatar to be a square'); Assert::assertEquals($size, $width); } /** + * @Then last avatar is not a square + */ + public function lastAvatarIsNotASquare() { + [$width, $height] = getimagesizefromstring($this->lastAvatar); + + Assert::assertNotEquals($width, $height, 'Expected avatar to not be a square'); + } + + /** * @Then last avatar is not a single color */ public function lastAvatarIsNotASingleColor() { |