Merge branch 'develop' into cypress-13

This commit is contained in:
Jamie Rees 2025-01-03 16:21:00 +00:00 committed by GitHub
commit fefc768aa5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 659 additions and 185 deletions

View file

@ -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');
});
});

View file

@ -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,

View file

@ -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>;