1
0
Fork 0

Fix E2E tests

This commit is contained in:
Chocobozzz 2020-07-21 09:38:26 +02:00
parent 2170f1db6e
commit 2e03d65032
No known key found for this signature in database
GPG key ID: 583A612D890159BE
4 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@ exports.config = {
capabilities: { capabilities: {
'browserName': 'firefox', 'browserName': 'firefox',
'moz:firefoxOptions': { 'moz:firefoxOptions': {
binary: '/usr/bin/firefox-esr', binary: '/usr/bin/firefox-developer-edition',
// args: ["-headless"], // args: ["-headless"],
log: { log: {
"level": "info" // default is "info" "level": "info" // default is "info"

View file

@ -15,6 +15,6 @@ export class VideoUpdatePage {
} }
private getSubmitButton () { private getSubmitButton () {
return element(by.css('.submit-button:not(.disabled) input')) return element(by.css('.submit-container .action-button'))
} }
} }

View file

@ -40,6 +40,6 @@ export class VideoUploadPage {
} }
private getSecondStepSubmitButton () { private getSecondStepSubmitButton () {
return element(by.css('.submit-button:not(.disabled) input')) return element(by.css('.submit-button:not(.disabled)'))
} }
} }

View file

@ -79,7 +79,7 @@
<div class="submit-container"> <div class="submit-container">
<div i18n *ngIf="videoUploaded === false" class="message-submit">Publish will be available when upload is finished</div> <div i18n *ngIf="videoUploaded === false" class="message-submit">Publish will be available when upload is finished</div>
<my-button className="orange-button" i18n-label label="Publish" icon="circle-tick" <my-button className="submit-button orange-button" i18n-label label="Publish" icon="circle-tick"
(click)="updateSecondStep()" (keydown.enter)="updateSecondStep()" (click)="updateSecondStep()" (keydown.enter)="updateSecondStep()"
[disabled]="isPublishingButtonDisabled()" [disabled]="isPublishingButtonDisabled()"
></my-button> ></my-button>