mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 05:13:18 -07:00
fixed tests
This commit is contained in:
parent
cbb22b9bc1
commit
4cb131d600
5 changed files with 16 additions and 33 deletions
33
src/.idea/.idea.Ombi/.idea/workspace.xml
generated
33
src/.idea/.idea.Ombi/.idea/workspace.xml
generated
|
@ -6,9 +6,8 @@
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="57001998-efde-494a-80b3-d7acfc91f770" name="Default Changelist" comment="">
|
<list default="true" id="57001998-efde-494a-80b3-d7acfc91f770" name="Default Changelist" comment="">
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/.idea.Ombi/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.Ombi/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/.idea.Ombi/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.Ombi/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/Ombi.Core/Services/DatabaseConfigurationService.cs" beforeDir="false" afterPath="$PROJECT_DIR$/Ombi.Core/Services/DatabaseConfigurationService.cs" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/Ombi/ClientApp/src/app/wizard/welcome/welcome.component.html" beforeDir="false" afterPath="$PROJECT_DIR$/Ombi/ClientApp/src/app/wizard/welcome/welcome.component.html" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/Ombi/ClientApp/src/app/wizard/database/database.component.html" beforeDir="false" afterPath="$PROJECT_DIR$/Ombi/ClientApp/src/app/wizard/database/database.component.html" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/Ombi/Controllers/V2/WizardController.cs" beforeDir="false" afterPath="$PROJECT_DIR$/Ombi/Controllers/V2/WizardController.cs" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/Ombi/ClientApp/src/app/wizard/database/database.component.ts" beforeDir="false" afterPath="$PROJECT_DIR$/Ombi/ClientApp/src/app/wizard/database/database.component.ts" afterDir="false" />
|
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
|
@ -379,7 +378,7 @@
|
||||||
</component>
|
</component>
|
||||||
<component name="PropertiesComponent"><![CDATA[{
|
<component name="PropertiesComponent"><![CDATA[{
|
||||||
"keyToString": {
|
"keyToString": {
|
||||||
".NET Launch Settings Profile.Ombi.executor": "Debug",
|
".NET Launch Settings Profile.Ombi.executor": "Run",
|
||||||
"git-widget-placeholder": "#5208 on wizard-database",
|
"git-widget-placeholder": "#5208 on wizard-database",
|
||||||
"node.js.selected.package.tslint": "(autodetect)"
|
"node.js.selected.package.tslint": "(autodetect)"
|
||||||
}
|
}
|
||||||
|
@ -573,32 +572,6 @@
|
||||||
</properties>
|
</properties>
|
||||||
<option name="timeStamp" value="7" />
|
<option name="timeStamp" value="7" />
|
||||||
</line-breakpoint>
|
</line-breakpoint>
|
||||||
<line-breakpoint enabled="true" type="DotNet Breakpoints">
|
|
||||||
<url>file://$PROJECT_DIR$/Ombi/Controllers/V2/WizardController.cs</url>
|
|
||||||
<line>112</line>
|
|
||||||
<properties documentPath="C:\git\Ombi\src\Ombi\Controllers\V2\WizardController.cs" containingFunctionPresentation="Method 'DatabaseConfig'">
|
|
||||||
<startOffsets>
|
|
||||||
<option value="3846" />
|
|
||||||
</startOffsets>
|
|
||||||
<endOffsets>
|
|
||||||
<option value="3907" />
|
|
||||||
</endOffsets>
|
|
||||||
</properties>
|
|
||||||
<option name="timeStamp" value="10" />
|
|
||||||
</line-breakpoint>
|
|
||||||
<line-breakpoint enabled="true" type="DotNet Breakpoints">
|
|
||||||
<url>file://$PROJECT_DIR$/Ombi/Controllers/V2/WizardController.cs</url>
|
|
||||||
<line>121</line>
|
|
||||||
<properties documentPath="C:\git\Ombi\src\Ombi\Controllers\V2\WizardController.cs" containingFunctionPresentation="Method 'DatabaseConfig'">
|
|
||||||
<startOffsets>
|
|
||||||
<option value="4240" />
|
|
||||||
</startOffsets>
|
|
||||||
<endOffsets>
|
|
||||||
<option value="4278" />
|
|
||||||
</endOffsets>
|
|
||||||
</properties>
|
|
||||||
<option name="timeStamp" value="11" />
|
|
||||||
</line-breakpoint>
|
|
||||||
</breakpoints>
|
</breakpoints>
|
||||||
</breakpoint-manager>
|
</breakpoint-manager>
|
||||||
<watches-manager>
|
<watches-manager>
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
<ng-template matStepLabel>Database</ng-template>
|
<ng-template matStepLabel>Database</ng-template>
|
||||||
<wizard-database-selector (configuredDatabase)="databaseConfigured()"></wizard-database-selector>
|
<wizard-database-selector (configuredDatabase)="databaseConfigured()"></wizard-database-selector>
|
||||||
<button mat-button matStepperPrevious class="mat-raised-button mat-error left">Back</button>
|
<button mat-button matStepperPrevious class="mat-raised-button mat-error left">Back</button>
|
||||||
<button mat-button matStepperNext class="mat-raised-button mat-accent right" data-test="nextMediaServer">Next</button>
|
<button mat-button matStepperNext class="mat-raised-button mat-accent right" data-test="nextDatabase">Next</button>
|
||||||
</mat-step>
|
</mat-step>
|
||||||
|
|
||||||
<mat-step [optional]="true">
|
<mat-step [optional]="true">
|
||||||
|
|
|
@ -89,7 +89,7 @@ namespace Ombi.Controllers.V2
|
||||||
_logger.LogError("Wizard has already been completed");
|
_logger.LogError("Wizard has already been completed");
|
||||||
return BadRequest();
|
return BadRequest();
|
||||||
}
|
}
|
||||||
|
var sanitizedType = config.Type.Replace(Environment.NewLine, "").Replace("\n", "").Replace("\r", "");
|
||||||
_logger.LogInformation("Setting up database type: {0}", config.Type);
|
_logger.LogInformation("Setting up database type: {0}", config.Type);
|
||||||
|
|
||||||
var connectionString = string.Empty;
|
var connectionString = string.Empty;
|
||||||
|
|
|
@ -11,6 +11,7 @@ When("I visit Ombi", () => {
|
||||||
|
|
||||||
When("I click through all of the pages", () => {
|
When("I click through all of the pages", () => {
|
||||||
Page.welcomeTab.next.click();
|
Page.welcomeTab.next.click();
|
||||||
|
Page.databaseTab.next.click();
|
||||||
Page.mediaServerTab.next.click();
|
Page.mediaServerTab.next.click();
|
||||||
Page.localUserTab.next.click();
|
Page.localUserTab.next.click();
|
||||||
Page.ombiConfigTab.next.click();
|
Page.ombiConfigTab.next.click();
|
||||||
|
@ -22,6 +23,7 @@ When("I click through all of the pages", () => {
|
||||||
|
|
||||||
When("I click through to the user page", () => {
|
When("I click through to the user page", () => {
|
||||||
Page.welcomeTab.next.click();
|
Page.welcomeTab.next.click();
|
||||||
|
Page.databaseTab.next.click();
|
||||||
Page.mediaServerTab.next.click();
|
Page.mediaServerTab.next.click();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -48,6 +50,6 @@ Then("I should get a notification {string}", (string) => {
|
||||||
|
|
||||||
Then("I should be on the User tab", () => {
|
Then("I should be on the User tab", () => {
|
||||||
Page.matStepsHeader.then((_) => {
|
Page.matStepsHeader.then((_) => {
|
||||||
cy.get('#cdk-step-label-0-2').should('have.attr', 'aria-selected', 'true');
|
cy.get('#cdk-step-label-0-3').should('have.attr', 'aria-selected', 'true');
|
||||||
});
|
});
|
||||||
});
|
});
|
|
@ -20,6 +20,12 @@ class WelcomeTab {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class DatabaseTab {
|
||||||
|
get next(): Cypress.Chainable<any> {
|
||||||
|
return cy.getByData('nextDatabase');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class MediaServerTab {
|
class MediaServerTab {
|
||||||
get next(): Cypress.Chainable<any> {
|
get next(): Cypress.Chainable<any> {
|
||||||
return cy.getByData('nextMediaServer');
|
return cy.getByData('nextMediaServer');
|
||||||
|
@ -35,6 +41,7 @@ class OmbiConfigTab {
|
||||||
|
|
||||||
class WizardPage extends BasePage {
|
class WizardPage extends BasePage {
|
||||||
|
|
||||||
|
databaseTab: DatabaseTab;
|
||||||
localUserTab: LocalUserTab;
|
localUserTab: LocalUserTab;
|
||||||
welcomeTab: WelcomeTab;
|
welcomeTab: WelcomeTab;
|
||||||
mediaServerTab: MediaServerTab;
|
mediaServerTab: MediaServerTab;
|
||||||
|
@ -54,6 +61,7 @@ class WizardPage extends BasePage {
|
||||||
this.welcomeTab = new WelcomeTab();
|
this.welcomeTab = new WelcomeTab();
|
||||||
this.mediaServerTab = new MediaServerTab();
|
this.mediaServerTab = new MediaServerTab();
|
||||||
this.ombiConfigTab = new OmbiConfigTab();
|
this.ombiConfigTab = new OmbiConfigTab();
|
||||||
|
this.databaseTab = new DatabaseTab();
|
||||||
}
|
}
|
||||||
|
|
||||||
visit(options: Cypress.VisitOptions): Cypress.Chainable<Cypress.AUTWindow>;
|
visit(options: Cypress.VisitOptions): Cypress.Chainable<Cypress.AUTWindow>;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue