Skip to content

Commit

Permalink
removed amigo_ips and amigo_tft from devices list
Browse files Browse the repository at this point in the history
  • Loading branch information
qlrd committed Mar 12, 2024
1 parent bf7e4cd commit 4a53e68
Show file tree
Hide file tree
Showing 35 changed files with 19 additions and 94 deletions.
2 changes: 0 additions & 2 deletions src/pages/SelectDevice.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ import { Ref, ref } from 'vue'
const devices: Ref<string[]> = ref([
'maixpy_m5stickv',
'maixpy_amigo',
'maixpy_amigo_ips',
'maixpy_amigo_tft',
'maixpy_bit',
'maixpy_dock',
'maixpy_yahboom',
Expand Down
28 changes: 8 additions & 20 deletions test/e2e/pageobjects/app.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,12 @@ class App {

private __select_device_page__: string;
private __select_device_page_maixpy_m5stickv_button__: string;
private __select_device_page_maixpy_amigo_ips_button__: string;
private __select_device_page_maixpy_amigo_tft_button__: string;
private __select_device_page_maixpy_amigo_button__: string;
private __select_device_page_maixpy_bit_button__: string;
private __select_device_page_maixpy_dock_button__: string;
private __select_device_page_maixpy_back_button__: string;
private __select_device_page_maixpy_m5stickv_text__: string;
private __select_device_page_maixpy_amigo_ips_text__: string;
private __select_device_page_maixpy_amigo_tft_text__: string;
private __select_device_page_maixpy_amigo_text__: string;
private __select_device_page_maixpy_bit_text__: string;
private __select_device_page_maixpy_dock_text__: string;
private __select_device_page_maixpy_back_text__: string;
Expand Down Expand Up @@ -135,14 +133,12 @@ class App {

this.__select_device_page__ = 'div#select-device-page';
this.__select_device_page_maixpy_m5stickv_button__ = 'div#select-device-page-maixpy_m5stickv-button'
this.__select_device_page_maixpy_amigo_ips_button__ = 'div#select-device-page-maixpy_amigo_ips-button'
this.__select_device_page_maixpy_amigo_tft_button__ = 'div#select-device-page-maixpy_amigo_tft-button'
this.__select_device_page_maixpy_amigo_button__ = 'div#select-device-page-maixpy_amigo-button'
this.__select_device_page_maixpy_bit_button__ = 'div#select-device-page-maixpy_bit-button'
this.__select_device_page_maixpy_dock_button__ = 'div#select-device-page-maixpy_dock-button'
this.__select_device_page_maixpy_back_button__ = 'div#select-device-page-back-button'
this.__select_device_page_maixpy_m5stickv_text__ = 'div#select-device-page-maixpy_m5stickv-text'
this.__select_device_page_maixpy_amigo_ips_text__ = 'div#select-device-page-maixpy_amigo_ips-text'
this.__select_device_page_maixpy_amigo_tft_text__ = 'div#select-device-page-maixpy_amigo_tft-text'
this.__select_device_page_maixpy_amigo_text__ = 'div#select-device-page-maixpy_amigo-text'
this.__select_device_page_maixpy_bit_text__ = 'div#select-device-page-maixpy_bit-text'
this.__select_device_page_maixpy_dock_text__ = 'div#select-device-page-maixpy_dock-text'
this.__select_device_page_maixpy_back_text__ = 'div#select-device-page-back-text'
Expand Down Expand Up @@ -300,12 +296,8 @@ class App {
return $(this.__select_device_page_maixpy_m5stickv_button__)
}

get selectMaixpyAmigoIpsButton () {
return $(this.__select_device_page_maixpy_amigo_ips_button__)
}

get selectMaixpyAmigoTftButton () {
return $(this.__select_device_page_maixpy_amigo_tft_button__)
get selectMaixpyAmigoButton () {
return $(this.__select_device_page_maixpy_amigo_button__)
}

get selectMaixpyBitButton () {
Expand All @@ -324,12 +316,8 @@ class App {
return $(this.__select_device_page_maixpy_m5stickv_text__)
}

get selectMaixpyAmigoIpsText () {
return $(this.__select_device_page_maixpy_amigo_ips_text__)
}

get selectMaixpyAmigoTftText () {
return $(this.__select_device_page_maixpy_amigo_tft_text__)
get selectMaixpyAmigoText () {
return $(this.__select_device_page_maixpy_amigo_text__)
}

get selectMaixpyBitText () {
Expand Down
22 changes: 6 additions & 16 deletions test/e2e/specs/006.select-device-show-only.spec.mts
Original file line number Diff line number Diff line change
Expand Up @@ -48,24 +48,14 @@ describe('KruxInstaller SelectDevice page (show only)', () => {
await expect(instance.selectMaixpyM5StickVText).toHaveText('maixpy_m5stickv')
})

it('should \'maixpy_amigo_ips\' button be displayed', async () => {
await instance.selectMaixpyAmigoIpsButton.waitForExist()
await expect(instance.selectMaixpyAmigoIpsButton).toBeDisplayed()
it('should \'maixpy_amigo\' button be displayed', async () => {
await instance.selectMaixpyAmigoButton.waitForExist()
await expect(instance.selectMaixpyAmigoButton).toBeDisplayed()
})

it('should \'maixpy_amigo_ips\' button have \'maixpy_amigo_ips\' text', async () => {
await instance.selectMaixpyAmigoIpsText.waitForExist()
await expect(instance.selectMaixpyAmigoIpsText).toHaveText('maixpy_amigo_ips')
})

it('should \'maixpy_amigo_tft\' button be displayed', async () => {
await instance.selectMaixpyAmigoTftButton.waitForExist()
await expect(instance.selectMaixpyAmigoTftButton).toBeDisplayed()
})

it('should \'maixpy_amigo_tft\' button have \'maixpy_amigo_tft\' text', async () => {
await instance.selectMaixpyAmigoTftText.waitForExist()
await expect(instance.selectMaixpyAmigoTftText).toHaveText('maixpy_amigo_tft')
it('should \'maixpy_amigo\' button have \'maixpy_amigo\' text', async () => {
await instance.selectMaixpyAmigoText.waitForExist()
await expect(instance.selectMaixpyAmigoText).toHaveText('maixpy_amigo')
})

it('should \'maixpy_bit\' button be displayed', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { createRequire } from 'module'

const App = createRequire(import.meta.url)('../pageobjects/app.page')

describe('KruxInstaller SelectDevice page selects \'maixpy_amigo_ips\' device', () => {
describe('KruxInstaller SelectDevice page selects \'maixpy_amigo\' device', () => {

let instance: any;

Expand Down Expand Up @@ -32,8 +32,8 @@ describe('KruxInstaller SelectDevice page selects \'maixpy_amigo_ips\' device',
await instance.mainSelectDeviceButton.click()
await instance.mainPage.waitForExist({ reverse: true })
await instance.selectDevicePage.waitForExist()
await instance.selectMaixpyAmigoIpsButton.waitForExist()
await instance.selectMaixpyAmigoIpsButton.click()
await instance.selectMaixpyAmigoButton.waitForExist()
await instance.selectMaixpyAmigoButton.click()
})

it('should change to Main page', async () => {
Expand All @@ -43,8 +43,8 @@ describe('KruxInstaller SelectDevice page selects \'maixpy_amigo_ips\' device',
await expect(instance.mainPage).toBeDisplayed()
})

it('should \'Select device\' button changed its text to \'Device: maixpy_amigo_ips\'', async () => {
await expect(instance.mainSelectDeviceText).toHaveText('Device: maixpy_amigo_ips')
it('should \'Select device\' button changed its text to \'Device: maixpy_amigo\'', async () => {
await expect(instance.mainSelectDeviceText).toHaveText('Device: maixpy_amigo')
})

})
51 changes: 0 additions & 51 deletions test/e2e/specs/009.select-device-amigo-tft.spec.mts

This file was deleted.

0 comments on commit 4a53e68

Please sign in to comment.