mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 10:36:54 -07:00
feat(wizard): ✨ Added the ability to start with a different database (#5208)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
parent
579d048ba1
commit
cc98fc6aca
24 changed files with 649 additions and 168 deletions
|
@ -11,6 +11,7 @@ When("I visit Ombi", () => {
|
|||
|
||||
When("I click through all of the pages", () => {
|
||||
Page.welcomeTab.next.click();
|
||||
Page.databaseTab.next.click();
|
||||
Page.mediaServerTab.next.click();
|
||||
Page.localUserTab.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", () => {
|
||||
Page.welcomeTab.next.click();
|
||||
Page.databaseTab.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", () => {
|
||||
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');
|
||||
});
|
||||
});
|
|
@ -25,7 +25,7 @@
|
|||
{
|
||||
"episodeNumber": 1,
|
||||
"title": "Our Cup Runneth Over",
|
||||
"airDate": "2015-01-13T00:00:00",
|
||||
"airDate": "2015-01-13T00:00:00Z",
|
||||
"url": "https://www.tvmaze.com/episodes/153107/schitts-creek-1x01-our-cup-runneth-over",
|
||||
"available": false,
|
||||
"approved": false,
|
||||
|
|
|
@ -20,6 +20,12 @@ class WelcomeTab {
|
|||
}
|
||||
}
|
||||
|
||||
class DatabaseTab {
|
||||
get next(): Cypress.Chainable<any> {
|
||||
return cy.getByData('nextDatabase');
|
||||
}
|
||||
}
|
||||
|
||||
class MediaServerTab {
|
||||
get next(): Cypress.Chainable<any> {
|
||||
return cy.getByData('nextMediaServer');
|
||||
|
@ -35,6 +41,7 @@ class OmbiConfigTab {
|
|||
|
||||
class WizardPage extends BasePage {
|
||||
|
||||
databaseTab: DatabaseTab;
|
||||
localUserTab: LocalUserTab;
|
||||
welcomeTab: WelcomeTab;
|
||||
mediaServerTab: MediaServerTab;
|
||||
|
@ -54,6 +61,7 @@ class WizardPage extends BasePage {
|
|||
this.welcomeTab = new WelcomeTab();
|
||||
this.mediaServerTab = new MediaServerTab();
|
||||
this.ombiConfigTab = new OmbiConfigTab();
|
||||
this.databaseTab = new DatabaseTab();
|
||||
}
|
||||
|
||||
visit(options: Cypress.VisitOptions): Cypress.Chainable<Cypress.AUTWindow>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue